API Reference

Replay Webhook Event

POST /webhooks/:id/events/:event_id/replay — send one event to its endpoint again, now.

POST/webhooks/:id/events/:event_id/replay

Sends an event to its endpoint once more, right away, with the original payload and the same svix-id, freshly signed. Handy once you have fixed a handler that failed. The replay is a single try: if it fails, SendDart does not retry it on its own.

Because the svix-id does not change, a handler that drops duplicates by that id (see How to store webhooks data) ignores a replay of an event it already processed.

Needs a full-access API key. A sending-only key gets 401 restricted_api_key.
Path parameters
idstringrequired

The webhook id.

event_idstringrequired

The event id (msg_…).

const res = await fetch('https://www.senddart.com/api/webhooks/17/events/msg_5c1e9a0f3b7d2e84a6c1/replay', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer mb_xxxxxxxxx' },
});
const data = await res.json();
console.log(data);

Response

The new attempt, and the event as it stands after it.

{
  "object": "webhook_event_replay",
  "id": "msg_5c1e9a0f3b7d2e84a6c1",
  "attempt": {
    "object": "webhook_event_attempt",
    "id": "90533",
    "event_id": "msg_5c1e9a0f3b7d2e84a6c1",
    "attempt": 6,
    "status": "succeeded",
    "response_status": 200,
    "error": null,
    "created_at": "2026-11-21T14:02:10.551Z"
  },
  "event": {
    "object": "webhook_event",
    "id": "msg_5c1e9a0f3b7d2e84a6c1",
    "webhook_id": "17",
    "type": "email.bounced",
    "status": "delivered",
    "attempts": 6,
    "response_status": 200,
    "error": null,
    "created_at": "2026-11-21T10:15:32.118Z",
    "last_attempt_at": "2026-11-21T14:02:10.551Z",
    "payload": { "type": "email.bounced", "created_at": "2026-11-21T10:15:32.118Z", "data": { "email_id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c" } }
  }
}

When a replay is refused

ErrorWhy
404 not_foundNo such webhook or event on your account.
422 validation_errorThe endpoint is disabled (enable it first), the endpoint no longer subscribes to this event type (add the type back first), or the event was a test delivery (send a new test instead).