# Retrieve a webhook event

Takes the event's `token`, as returned by the list, not its `event_id`.

Endpoint: GET /webhook-events/{token}
Security: ClientKey, SecretKey

## Security:

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

  - `SecretKey` (unknown)
    http bearer

## Path parameters:

  - `token` (string, required)
    The event's `token`, not its `event_id`.

## Response 200:

  - `200` (unknown)
    The event.

## Response 200 fields (application/json):

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

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

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

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

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

  - `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

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

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

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

  - `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"

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

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

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

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

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

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

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

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

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

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

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

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

## 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 404:

  - `404` (unknown)
    No event matches the token.

## Response 404 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:

  - `A delivery being retried` (unknown)

## Response 401 examples:

  - `unauthorized` (unknown)

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

## Response 404 examples:

  - `Unknown event` (unknown)

