Skip to main content
POST
/
v1
/
webhooks
/
{subscriptionId}
/
deliveries
/
{deliveryId}
/
replay
Replay a delivery
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch('https://sandbox.api.enfinitos.com/v1/webhooks/{subscriptionId}/deliveries/{deliveryId}/replay', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "ok": true,
  "data": {
    "replay": {
      "ok": true,
      "errorMessage": "<string>"
    },
    "delivery": {
      "deliveryId": "<string>",
      "subscriptionId": "<string>",
      "developerId": "<string>",
      "payload": "<string>",
      "firstAttemptedAt": "2023-11-07T05:31:56Z",
      "lastAttemptedAt": "2023-11-07T05:31:56Z",
      "attemptCount": 123,
      "httpStatus": 123,
      "responseBodyExcerpt": "<string>",
      "errorMessage": "<string>",
      "nextRetryAt": "2023-11-07T05:31:56Z",
      "deliveredAt": "2023-11-07T05:31:56Z",
      "signatureHeader": "<string>"
    }
  },
  "contractVersion": "<string>"
}

Authorizations

Authorization
string
header
required

API key sent as Authorization: Bearer <api-key>.

Path Parameters

subscriptionId
string
required

Webhook subscription id.

deliveryId
string
required

Webhook delivery id (prefixed dlv_).

Response

The replay result and the updated delivery row.

ok
boolean
required
data
object
required

Route-specific payload. Operation responses refine this.

contractVersion
string
required
Allowed value: "v1.0"