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
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
| Field | Type | Description |
|---|---|---|
id required | string |
Headers
| Field | Type | Description |
|---|---|---|
Idempotency-Key | string | Up 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
| Field | Type | Description |
|---|---|---|
event_id required | string | Up to 40 characters. |
{ "event_id": "evt_01JBXA4C7E9G1H3J5K7M9N1P3Q"}Responses
200 OK
The attempt
| Field | Type | Description |
|---|---|---|
id | string | |
endpoint_id | string | null | |
event_id | string | |
event_type | "job.completed" | "job.failed" | "job.canceled" | |
job_id | string | |
mode | "live" | "test" | |
attempt | number | |
replay | boolean | |
succeeded | boolean | |
status_code | number | null | |
error | string | null | timeout, unreachable, refused_url, redirect or http_status |
duration_ms | number | |
next_attempt_at | string | null | |
created_at | string |
{ "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.
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | The body failed validation. |
| 401 | unauthorized | No API key, or one that’s unknown or revoked. |
| 403 | forbidden | The key lacks the webhooks scope, or the plan has no API. |
| 404 | not_found | No such endpoint, or it wasn’t sent that event in the last 7 days. |
| 409 | idempotency_conflict | The Idempotency-Key was used for a different request in the last 24 hours, or its first request is still running. |
| 429 | rate_limited | More requests than the plan allows in 10 seconds: wait Retry-After seconds. |