Runs examples for real against your account. Test keys only; kept in this tab, never stored on our side. Get a key
ZapSMTP / Docs / Webhooks

Retrieve an event

GET/v1/webhooks/{id}/events/{event}

One event with its payload and every delivery attempt, oldest first.

Requires a full-access key.

Path parameters

idstringrequired
Webhook id.
eventstringrequired
Event id (Zap-Event-Id).

Errors

not_foundHTTP 404
Unknown webhook, or the event is not among the last 100 attempts.
GET/v1/webhooks/{id}/events/{event}
curl 'https://zapsmtp.xyz/v1/webhooks/019a1c55-0d6e-7f21-8b3a-5e9d4c7b2a10/events/evt_5f0c2a9b7d1e4c3a8b6f2e10' \
  -H "Authorization: Bearer $ZAP_API_KEY"
Set ZAP_API_KEY in your environment.
Response 200 OK
{
  "object": "webhook_event",
  "id": "evt_5f0c2a9b7d1e4c3a8b6f2e10",
  "type": "email.delivered",
  "status": "delivered",
  "attempts": 2,
  "last_status_code": 200,
  "first_attempt_at": "2026-10-22T10:00:00Z",
  "last_attempt_at": "2026-10-22T10:05:01Z",
  "payload": {
    "id": "evt_5f0c2a9b7d1e4c3a8b6f2e10",
    "type": "email.delivered",
    "created_at": "2026-10-22T09:59:59Z",
    "data": {
      "email_id": "019a1f2e-7c3b-7d41-9a52-0c4b8e6f1a23",
      "to": "jane@example.org"
    }
  },
  "attempt_list": [
    {
      "attempt": 1,
      "status_code": 503,
      "error": "HTTP 503",
      "duration_ms": 120,
      "at": "2026-10-22T10:00:00Z"
    },
    {
      "attempt": 2,
      "status_code": 200,
      "duration_ms": 85,
      "at": "2026-10-22T10:05:01Z"
    }
  ]
}