API reference · Webhooks
Test your webhook endpoint
POST
/v1/webhook-endpoint/testAsk Anis to send a signed test delivery to your verified endpoint. This creates no purchase.
PermissionNone
AuthenticationSigned change
Anis’s answerSigned
Staff-set limits it counts towardAll requests
.NET SDK
anis.WebhookEndpoint.TestAsync()- Sign the body digest with a fresh nonce, without an
Idempotency-Key. This change creates no purchase.
Request
Signed with your key, with a one-time nonce and a digest of the body.
Headers: Signature-Input, Signature, Content-Digest, Nonce, X-Anis-Date, Accept-Language (optional). The SDKs set all of them for you.
Body: Exactly the two bytes {}.
Responses
| Status | Meaning | Body |
|---|---|---|
| 202 | Accepted — no outcome yet. | WebhookEventAccepted |
| 400 | Refused: the signed request is badly built. | Problem |
| 401 | Refused: not authenticated. | Problem |
| 403 | Refused: not allowed. | Problem |
| 404 | Refused: not found, or not yours. | Problem |
| 409 | Refused: conflicts with the current state. | Problem |
| 422 | Refused: the request breaks a rule. | Problem |
| 429 | Refused: a limit was reached. | Problem |
| 503 | No decision: a dependency was unavailable. | Problem |
Every answer of this call is signed by Anis — success and every refusal. Require the signature and verify it before you act on the answer; an answer without one is a failure, never an answer (how).
Refusals
Every refusal of this call is a signed problem. Branch on its code; each links to what it means and what to do.
| Error | Code | Status |
|---|---|---|
| Invalid credentials | invalid_credentials | 401 |
| Malformed signed request | malformed_signed_request | 400 |
| Insufficient scope | insufficient_scope | 403 |
| Source address not allowed | source_ip_not_allowed | 403 |
| Rate limited | rate_limited | 429 |
| Validation failed | validation_failed | 422 |
| Service unavailable | dependency_unavailable | 503 |
| Request timeout | request_timeout | 504 |
| Internal error | internal_error | 500 |
| Replay detected | replay_detected | 409 |
| Not found | resource_not_found | 404 |
| Endpoint not verified | webhook_endpoint_unverified | 409 |
Types
WebhookEventAccepted
| Field | Type | Notes |
|---|---|---|
idalways present | UUID | The identifier returned for this record. Keep it unchanged when reading it again. |
type | string | The notification type; on a test acknowledgment it is webhook_endpoint.test, and on a redelivery acknowledgment it is omitted. |
statusalways present | WebhookDeliveryStatus | The delivery state, not the purchase state. |
queuedAtalways present | string (date-time) | When this delivery request was queued in UTC. |