Skip to content
Documentation
Get started

Webhooks

Replay events to a webhook endpoint

POST
/v1/webhook-endpoints/{webhookEndpointId}/replays
curl --request POST \
--url https://api.timbro.do/v1/webhook-endpoints/example/replays \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: example' \
--data '{ "eventIds": [ "example" ], "occurredAfter": "2026-04-15T12:00:00Z", "occurredBefore": "2026-04-15T12:00:00Z" }'

Queues a new delivery for each selected event, up to 100. Each one repeats the original event id and is signed with a fresh webhook-timestamp, so a consumer that already applied the event does nothing.

webhookEndpointId
required
string
/^webhook_endpoint_[0-9a-hjkmnp-tv-z]{24,}$/

Webhook endpoint to operate on.

idempotency-key
required
string
>= 1 characters <= 255 characters /^[\x20-\x7e]+$/
Media typeapplication/json

Examplegenerated

{
"eventIds": [
"example"
],
"occurredAfter": "2026-04-15T12:00:00Z",
"occurredBefore": "2026-04-15T12:00:00Z"
}

The events to send again: either up to 100 event ids, or an occurredAfter and occurredBefore window of at most seven days that selects at most 100 events. A body naming both, or an incomplete window, answers webhook_replay_scope_invalid with a pointer at the property at fault.

object
eventIds
Array
>= 1 items <= 100 items unique items
occurredAfter

Selects the events that happened at or after this instant.

string format: date-time
occurredBefore

Selects the events that happened at or before this instant.

string format: date-time

A request to send stored events to one endpoint again. Each queued delivery repeats the original event id and is signed with a fresh webhook-timestamp.

Media typeapplication/json
Response fields and codes

A request to send stored events to one endpoint again. Each queued delivery repeats the original event id and is signed with a fresh webhook-timestamp.

object
id
required

Replay identifier, carried by every delivery it queued.

string
/^webhook_replay_[0-9a-hjkmnp-tv-z]{24,}$/
object
required
string
Allowed value: webhook_replay
webhookEndpointId
required

The endpoint the deliveries were queued for.

string
/^webhook_endpoint_[0-9a-hjkmnp-tv-z]{24,}$/
deliveryCount
required

How many deliveries this replay queued.

integer
<= 100
createdAt
required
string format: date-time
request-id
required
string

Identifies this request. Quote it when you contact support.

Idempotent-Replayed
string
Allowed value: true

true when this response replays the stored result of an earlier request with the same Idempotency-Key.