Send a webhook's events again, from a time
Queues every event of the webhook's project since `since` (at most 7 days back), or of one sandbox, to be delivered again, in order per sandbox, with the ids they first had, so a receiver drops what it already has.
Queues every event of the webhook's project since since (at most 7 days back), or of one sandbox, to be delivered again, in order per sandbox, with the ids they first had, so a receiver drops what it already has. A replay runs in a lane of its own (replay_id, named in the delivery log) beside live delivery. full counts events not queued because the webhook's queue was full; stale those older than one the receiver already acknowledged for the same sandbox. A replay sends what live delivery would: only the webhook's types, and nothing while the webhook is off (queued is 0). Served by the cell's gateway.
A key with the webhooks:write scope.
Request
curl -X POST "https://api.pod.mapier.ai/v1/webhooks/whk_3ahrz6dmv29gqy5ckt18fp/replay" \
-H "Authorization: Bearer $POD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"since":{}}'Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
webhook_id | path | string | Yes | |
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Body
| Field | Type | Required | What it is |
|---|---|---|---|
since | object | Yes | The first change to send again, within the last 7 days. |
sandbox_id | object | No | Only this sandbox's events. |
Answer
202. The replay, queued.
{
"replay_id": "rpl_3ahrz6dmv29gqy5ckt18fp",
"queued": 0,
"full": 0,
"stale": 0
}| Field | Type | Always | What it is |
|---|---|---|---|
replay_id | string | Yes | |
queued | integer | Yes | At least 0. |
full | integer | Yes | Not queued because the webhook's queue was full. At least 0. |
stale | integer | Yes | Older than a change the receiver already acknowledged. At least 0. |
Errors
The refusals this call is known for: invalid, forbidden, not_found. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.
In the SDKs
| Client | Call |
|---|---|
| TypeScript | pod.webhooks.replay(id, { since }) |
| Python | pod.webhooks.replay(id, since=…) |