Batched delivery

Webhooks created with batch: true get one POST per second with the events of that second (up to 500) in events, each as its single delivery would be. Any 2xx within 5 s is success. Otherwise the delivery is retried after 1, 5 and 25 s; after 20 failed deliveries in a row the webhook is disabled (POST /v1/webhooks/{id}/enable).

Payload

A batched delivery.

date-time
required

When the event happened.

string
enum
required

The event's name; spread.batch for a batched delivery.

Allowed:
events
array of objects
required

Webhooks created with batch: true get one POST per second with the events of that second (up to 500) in events, each as its single delivery would be.

events*
string
required

Delivery id (hex).

Headers
string
required

The event's name; spread.batch for a batched delivery.

string
required

t=<unix seconds>,v1=<hex HMAC-SHA256(secret, "<t>.<raw body>")>. Compute the HMAC over the raw body as received, compare in constant time and reject old t (replays).

Response
200

OK

LoadingLoading…