webhook_endpoint.ping
An endpoint was pinged
Sent by POST /webhook-endpoints/{endpoint_id}/ping to the one endpoint pinged, whatever its subscriptions, and to no other. No endpoint can subscribe to it. It proves the endpoint is reachable and verifies signatures; the object it names is the endpoint itself.
Headers
- webhook-idstring <uuid>required
The event's
idon an endpoint created through/v2, its idempotency key on a legacy endpoint (x-stridge-delivery-policylegacy_delivery).Show full descriptionShow less
It stays the same across every attempt and every resend of the event, so it is the key a receiver deduplicates on, and it is part of the signed content. It is a UUID, minted once when the event is recorded.
- webhook-timestampstringrequired
When this attempt was signed, in Unix seconds. It is fresh on every attempt. A receiver refuses a delivery whose timestamp is more than 300 seconds from its own clock, which is the verifier libraries' default and stops a captured delivery from being replayed later.
- webhook-signaturestringrequired
On an endpoint created through
/v2, the Standard Webhooks signature: a space-separated list with onev1,<base64>entry per active signing secret, two while a rotated secret's 24-hour overlap runs.Show full descriptionShow less
Each entry is the base64 of HMAC-SHA256 keyed by the secret's key bytes (the base64 part of its
whsec_form) over{webhook-id}.{webhook-timestamp}.{raw body}, so a swapped id or timestamp fails verification. A receiver verifies with an official Standard Webhooks library and accepts the delivery when any one entry matches. On a legacy endpoint (one created before/v2) it is the 64 lowercase hex of HMAC-SHA256 keyed by the endpoint secret as ASCII over{webhook-timestamp}.{raw body}, asx-stridge-delivery-policylegacy_deliverystates. - stridge-signature-legacystringoptional
The hex signature beside the Standard Webhooks one, on an endpoint created through
/v2: 64 lowercase hex characters of HMAC-SHA256 keyed by the endpoint's secret as ASCII over{webhook-timestamp}.{raw body}, over the samewebhook-timestampaswebhook-signature.Show full descriptionShow less
A legacy endpoint is not sent it: its
webhook-signaturealready carries that hex form.
Event body
- idstring <uuid>required
The event's own identifier, minted once when the event is recorded. It equals the
webhook-idheader, stays the same across every attempt and resend, and is the key a receiver deduplicates on: two deliveries carrying the sameidare the same event, to act on once. - objectstringrequired
What this object is, always
event. - typestringrequired
What happened: one of the event types the root
webhooks:section names, such aspayout.confirmed. A receiver meeting a type it does not know acknowledges it with a2xxand ignores it, because types are only ever added. - createdstring <date-time>required
When the transition the event names happened, which is the object's time and not the time Stridge consumed or delivered it. RFC3339 UTC,
Zsuffixed. Delivery order is not guaranteed; a receiver orders one object's events bycreated. - livemodebooleanrequired
truewhen the event happened in aliveenvironment andfalsein a sandbox. It matches the environment of the endpoint it was delivered to and of any credential that reads it back. The one object the event is about: enough to fetch it, and nothing of its state.
- idstringrequired
The object's identifier, as its own family addresses it.
- typestringrequired
The kind of object, in snake_case and singular, as the event type's
x-stridge-related-object-typein the rootwebhooks:section names it:payout,deposit,webhook_endpoint. - urlstringrequired
The object's
/v2path. AGETof it with a credential of the same environment answers the object as it is now, in the schema the event type'sx-stridge-related-objectnames.
- idstringrequired
Your endpoint's response
- 2XX
Delivered. Any
2xxanswered within the timeout ends the event's delivery to this endpoint: it is sent no further attempt for this event.- 3XX
A failed attempt. An endpoint created through
/v2never has a redirect followed: any3xxis recorded with itsLocationand retried on schedule. A legacy endpoint keeps its own redirect behaviour.- 4XX
A failed attempt, retried on schedule. Every
4xx,410included, is a failure like any other: there is no answer that stops the retries of one event. An endpoint that keeps failing is handled as a whole by the failing-endpoint rule ofx-stridge-delivery-policy.- 5XX
A failed attempt, retried on schedule, as are a timeout and a transport error.