Auth API reference

Auth API · App-Outbound-Webhooks

get/v1/apps/{app_id}/webhook/dead-lettersAuth

Events the first endpoint never accepted and that will not be retried automatically, newest first. Each carries the original signed payload so it can be replayed once the receiver is fixed. Deprecated: use `/v1/apps/{appId}/webhooks/endpoints` (several endpoints, event descriptions, Send test, event log, replay). This route acts on the app's first endpoint. Responses carry `Deprecation: true` and `Sunset: Fri, 15 Jan 2027 00:00:00 GMT`.

A failed delivery is retried automatically 1 min, 5 min, 30 min, 2 h, 6 h and 24 h after each failure (7 attempts in all). An event is listed here when the last of those attempts fails, or when it happened while the endpoint was switched off. Events are kept for 30 days (`GET /v1/apps/{appId}/webhooks/events?status=failed` is the replacement).

Path parameters

app_id*string

Id of the app.

Query parameters

limitinteger

Page size. Defaults to 50, clamped to 200.

cursorstring

Opaque `next_cursor` from the previous page.

unreplayedenum (2)

`true` shows only events that have never been accepted by the receiver: the backlog you would replay.

Response · 200 Page of dead letters with `next_cursor` and `has_more`.

data*array
pagination*object
next_cursor*string

Opaque cursor for the next page. `null` when no more pages are available.

Example: "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQwMDowMDowMFoifQ"

has_more*boolean

True iff another page exists; if true, pass `next_cursor` on the next request.

Example: false

Example

Request

GET https://api.auth.productcraft.co/v1/apps/{app_id}/webhook/dead-letters
Authorization: Bearer YOUR_TOKEN

Response

{
  "data": [
    {
      "id": "evt_3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f",
      "app_id": "string",
      "event_id": "string",
      "event_type": "user.email_verified",
      "payload": {},
      "attempts": 0,
      "last_status_code": 0,
      "last_error": "string",
      "failed_at": "2026-01-01T00:00:00.000Z",
      "replayed_at": "2026-01-01T00:00:00.000Z",
      "replay_count": 0
    }
  ],
  "pagination": {
    "next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQwMDowMDowMFoifQ",
    "has_more": false
  }
}