Redeliver an event to a webhook
POST
/event-subscriptions/{id}/deliveries/{deliveryId}/redeliver
const url = 'https://app.surveyrock.com/api/v1/event-subscriptions/example/deliveries/example/redeliver';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.surveyrock.com/api/v1/event-subscriptions/example/deliveries/example/redeliver \ --header 'Authorization: Bearer <token>'Queues another delivery of the same event to the same subscription, with the same webhook-id, for when you have fixed an endpoint and want what it missed. The new delivery says which one it redelivers (redelivery_of) and goes out within a minute. The subscription must be active, and the delivery must not already be queued.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string
deliveryId
required
string
Header Parameters
Section titled “Header Parameters”Idempotency-Key
string
1 to 128 characters, chosen by the caller. A retry with the same key replays the first response instead of queueing twice
Responses
Section titled “ Responses ”Queued: the new delivery, pending
The plan does not include webhooks (feature_locked), or the token lacks events:write
subscription_not_found or delivery_not_found
subscription_not_active, subscription_is_pull, or delivery_pending