Skip to content

Replay an event

POST /v1/webhooks/{id}/replay

Send an event to an endpoint again, now.

For an event the endpoint was sent in the last 7 days. One attempt, outside the retry schedule; the answer is its delivery. Works on a turned-off endpoint, to test it before turning it on.

API key with the webhooks scope.

Request

Terminal window
curl -X POST "https://api.formatjet.com/v1/webhooks/wh_01JBXA6K8M0P2R4S6T8V0W2X4Y/replay" \
-H "Authorization: Bearer $FORMATJET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"event_id": "evt_01JBXA4C7E9G1H3J5K7M9N1P3Q"
}'

Path parameters

FieldTypeDescription
id requiredstring

Headers

FieldTypeDescription
Idempotency-KeystringUp to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (Idempotent-Replayed: true); the same key with a different request is a 409.

Body

application/json

FieldTypeDescription
event_id requiredstringUp to 40 characters.
Example
{
"event_id": "evt_01JBXA4C7E9G1H3J5K7M9N1P3Q"
}

Responses

200 OK

The attempt

FieldTypeDescription
idstring
endpoint_idstring | null
event_idstring
event_type"job.completed" | "job.failed" | "job.canceled"
job_idstring
mode"live" | "test"
attemptnumber
replayboolean
succeededboolean
status_codenumber | null
errorstring | nulltimeout, unreachable, refused_url, redirect or http_status
duration_msnumber
next_attempt_atstring | null
created_atstring
Example
{
"id": "dlv_01JBXA4D2F4G6H8J0K2M4N6P8Q",
"endpoint_id": "wh_01JBXA6K8M0P2R4S6T8V0W2X4Y",
"event_id": "evt_01JBXA4C7E9G1H3J5K7M9N1P3Q",
"event_type": "job.completed",
"job_id": "job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D",
"mode": "live",
"attempt": 1,
"replay": false,
"succeeded": true,
"status_code": 200,
"error": null,
"duration_ms": 182,
"next_attempt_at": null,
"created_at": "2026-10-24T10:00:06.000Z"
}

Errors

Problem documents (application/problem+json); see Errors.

StatusCodeWhen
400invalid_requestThe body failed validation.
401unauthorizedNo API key, or one that’s unknown or revoked.
403forbiddenThe key lacks the webhooks scope, or the plan has no API.
404not_foundNo such endpoint, or it wasn’t sent that event in the last 7 days.
409idempotency_conflictThe Idempotency-Key was used for a different request in the last 24 hours, or its first request is still running.
429rate_limitedMore requests than the plan allows in 10 seconds: wait Retry-After seconds.