# List webhook events

Every event this API generated for you, newest first, with the result
of each delivery to your endpoints. Events are recorded whether or
not you had an endpoint to receive them, so this is also an audit
trail. Cursor-paginated.

Endpoint: GET /webhook-events
Security: ClientKey, SecretKey

## Security:

  - `ClientKey` (unknown)
    apiKey in header X-Dime-Client

  - `SecretKey` (unknown)
    http bearer

## Query parameters:

  - `limit` (integer)
    How many records to return, 1–100.

  - `starting_after` (string)
    Return records after this one. Pass the `token` of the last record on
the previous page to walk forward.

  - `ending_before` (string)
    Return records before this one, to walk backward. Pass the `token` of
the first record on the page you have.

  - `event_type` (string)
    Only events of this type.

## Response 200:

  - `200` (unknown)
    A page of events.

## Response 200 fields (application/json):

  - `object` (string, required)
    Enum: "list"

  - `data` (array, required)

  - `data.token` (string | null)
    Identifies the event. Used in URLs and as a pagination cursor.
    Example: whe_W2uMzOzd_QxAOG0la_PjxFZOhI_ryYAE1l

  - `data.object` (string)
    Enum: "webhook_event"

  - `data.event_id` (string)
    The `event_id` carried in the delivered body.
    Example: evt_V1StGXR8Z5jdHi6BmyT2

  - `data.event_type` (string)
    Example: payment.succeeded

  - `data.resource_type` (string)
    Enum: "payment", "refund", "chargeback", "customer", "card_request", "subscription", "order"

  - `data.resource_id` (string | null)
    The `token` of the record the event is about: a transaction's
for `payment` and `refund`, otherwise the token of the kind named
by `resource_type`.
    Example: txn_20261027_PBFpP02

  - `data.occurred_at` (string)
    Example: 2026-10-27T15:04:07.112Z

  - `data.deliveries` (array)
    One entry per endpoint the event was sent to. Empty if no endpoint was subscribed at the time.

  - `data.deliveries.endpoint_id` (string)
    The `token` of the endpoint the event was sent to.
    Example: hep_kBXRfasu_Ard5VWhe_xECb9iAV_IyX1JdD

  - `data.deliveries.status` (string)
    `PENDING` while attempts remain, `DELIVERED` once your endpoint
answered `2xx`, `FAILED` after the ninth failed attempt, a replay,
or pausing the endpoint.
    Enum: "PENDING", "DELIVERED", "FAILED"

  - `data.deliveries.attempt_count` (integer)
    Attempts made so far, at most 9.
    Example: 1

  - `data.deliveries.last_attempt_at` (string | null)
    Example: 2026-10-27T15:04:07.120Z

  - `data.deliveries.next_attempt_at` (string | null)
    When the next automatic retry is due. `null` unless `PENDING`.
    Example: null

  - `data.deliveries.attempts` (array)
    Every attempt, oldest first. Returned by `GET /webhook-events/{token}` only.

  - `data.deliveries.attempts.attempt` (integer)
    Example: 1

  - `data.deliveries.attempts.attempted_at` (string)
    Example: 2026-10-27T15:04:07.120Z

  - `data.deliveries.attempts.response_status` (integer | null)
    HTTP status your endpoint returned; `null` on a timeout or connection error.
    Example: 503

  - `data.deliveries.attempts.error` (string | null)
    Example: non-2xx (503)

  - `data.deliveries.attempts.duration_ms` (integer | null)
    Example: 412

  - `data.deliveries.last_response_status` (integer | null)
    HTTP status your endpoint last returned.
    Example: 200

  - `data.deliveries.last_error` (string | null)
    Example: null

  - `data.deliveries.delivered_at` (string | null)
    Example: 2026-10-27T15:04:07.631Z

  - `has_more` (boolean, required)
    Example: true

## Response 401:

  - `401` (unknown)
    The client key or secret key was missing, not recognized, or the two do not belong to the same key.

## Response 401 fields (application/json):

  - `error` (object, required)

  - `error.type` (string, required)
    Which kind of failure occurred. Always one of four values, so
a client can branch on `type` before reading `code`.
    Enum: "invalid_request_error", "card_error", "idempotency_error", "api_error"

  - `error.code` (string, required)
    Example: parameter_missing

  - `error.message` (string, required)
    Example: Order ID is required.

  - `error.param` (string)
    The field that caused the failure, when applicable.
    Example: id

## Response 200 examples:

  - `One delivered event` (unknown)

## Response 401 examples:

  - `unauthorized` (unknown)

  - `Client key sent without its secret key` (unknown)

