API Reference

Retrieve Webhook Event

GET /webhooks/:id/events/:event_id — one event, with the payload that was sent.

GET/webhooks/:id/events/:event_id

Reads one event sent to a webhook endpoint. It has the same fields as in the list, plus payload: the exact JSON body SendDart posted. Use it to see what your handler was given when something went wrong.

Needs an API key with read access.
Path parameters
idstringrequired

The webhook id.

event_idstringrequired

The event id (msg_…), the same value as the svix-id header.

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

Response

{
  "object": "webhook_event",
  "id": "msg_5c1e9a0f3b7d2e84a6c1",
  "webhook_id": "17",
  "type": "email.delivered",
  "status": "delivered",
  "attempts": 1,
  "response_status": 200,
  "error": null,
  "created_at": "2026-11-21T10:15:32.118Z",
  "last_attempt_at": "2026-11-21T10:15:32.118Z",
  "payload": {
    "type": "email.delivered",
    "created_at": "2026-11-21T10:15:32.118Z",
    "data": { "email_id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c" }
  }
}

An unknown webhook or event id returns 404 not_found.