API reference · Webhooks

Get webhook deliveries

GET/v1/webhook-events

Find deliveries for your application, including failures that you can request again.

PermissionNone
AuthenticationSigned read
Anis’s answerNot signed
Staff-set limits it counts towardAll requests
.NET SDKanis.WebhookEvents.GetWebhookEventsAsync(query)

Parameters

NameInTypeNotes
statusoptionalqueryWebhookDeliveryStatusOptional delivery state: pending, delivering, delivered, retrying, failed, waitingForProjection, waitingForEndpoint or cancelled. Omit it for all states.
sinceoptionalquerystringOptional inclusive UTC lower bound on when the event occurred.
cursoroptionalquerystringThe nextCursor of the previous page, passed back exactly as received. Leave it out for the first page.

Request

Signed with your key. No body, no nonce.

Headers: Signature-Input, Signature, X-Anis-Date, Accept-Language (optional). The SDKs set all of them for you.

Body: none.

Responses

StatusMeaningBody
200Success.WebhookEventCollection
400Refused: the signed request is badly built.Problem
401Refused: not authenticated.Problem
403Refused: not allowed.Problem
404Refused: not found, or not yours.Problem
422Refused: the request breaks a rule.Problem
429Refused: a limit was reached.Problem
503No decision: a dependency was unavailable.Problem

The answers of this call are not signed — no Signature or Signature-Input header, success or refusal. There is nothing to verify; TLS protects them. Content-Digest and X-Request-Id are still present.

Refusals

A refusal of this call is a problem without a signature. 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
Not foundresource_not_found404

Types

WebhookEventCollection

FieldTypeNotes
itemsalways presentlist of WebhookEventThe records on this page.
nextCursoralways presentstringPass this opaque value unchanged as cursor; null marks the last page.

WebhookEvent

FieldTypeNotes
idalways presentUUIDThe identifier returned for this record. Keep it unchanged when reading it again.
typealways presentstringThe notification type describing what happened.
statusalways presentWebhookDeliveryStatusThe delivery state, not the purchase state.
attemptsalways presentintegerThe number of delivery attempts recorded.
lastAttemptAtalways presentstring (date-time)The previous or next scheduled attempt time, null when none is known.
nextAttemptAtalways presentstring (date-time)The previous or next scheduled attempt time, null when none is known.
lastResponseCodealways presentintegerThe last destination HTTP status, null before one is received.
lastFailureKindalways presentstringThe recorded delivery failure category, null before a failure. Values: httpStatus, timeout, connect, tls, targetRefused, responseTooLarge, challengeMismatch, projectionUnavailable, endpointDisabled, signingUnavailable

WebhookDeliveryStatus