API reference · Webhooks

Test your webhook endpoint

POST/v1/webhook-endpoint/test

Ask 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 SDKanis.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

StatusMeaningBody
202Accepted — no outcome yet.WebhookEventAccepted
400Refused: the signed request is badly built.Problem
401Refused: not authenticated.Problem
403Refused: not allowed.Problem
404Refused: not found, or not yours.Problem
409Refused: conflicts with the current state.Problem
422Refused: the request breaks a rule.Problem
429Refused: a limit was reached.Problem
503No 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.

ErrorCodeStatus
Invalid credentialsinvalid_credentials401
Malformed signed requestmalformed_signed_request400
Insufficient scopeinsufficient_scope403
Source address not allowedsource_ip_not_allowed403
Rate limitedrate_limited429
Validation failedvalidation_failed422
Service unavailabledependency_unavailable503
Request timeoutrequest_timeout504
Internal errorinternal_error500
Replay detectedreplay_detected409
Not foundresource_not_found404
Endpoint not verifiedwebhook_endpoint_unverified409

Types

WebhookEventAccepted

FieldTypeNotes
idalways presentUUIDThe identifier returned for this record. Keep it unchanged when reading it again.
typestringThe notification type; on a test acknowledgment it is webhook_endpoint.test, and on a redelivery acknowledgment it is omitted.
statusalways presentWebhookDeliveryStatusThe delivery state, not the purchase state.
queuedAtalways presentstring (date-time)When this delivery request was queued in UTC.

WebhookDeliveryStatus