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.

POST/v1/webhooks/{webhook_id}/replay

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

NameInTypeRequiredWhat it is
webhook_idpathstringYes
Idempotency-KeyheaderstringNoMakes a repeat of this call safe for 24 hours.

Body

FieldTypeRequiredWhat it is
sinceobjectYesThe first change to send again, within the last 7 days.
sandbox_idobjectNoOnly this sandbox's events.

Answer

202. The replay, queued.

202
{
  "replay_id": "rpl_3ahrz6dmv29gqy5ckt18fp",
  "queued": 0,
  "full": 0,
  "stale": 0
}
FieldTypeAlwaysWhat it is
replay_idstringYes
queuedintegerYesAt least 0.
fullintegerYesNot queued because the webhook's queue was full. At least 0.
staleintegerYesOlder 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

ClientCall
TypeScriptpod.webhooks.replay(id, { since })
Pythonpod.webhooks.replay(id, since=…)