# Replay a webhook event

Sends the event again to every active endpoint subscribed to its
type. `event_id`, `event_type`, resource and `payload` are the
original's; `occurred_at` and the signature are those of the
replay. Use it after fixing an endpoint that returned an error. The
replay replaces any retries of the event still pending, and gets
its own retries if it fails. Your handler should treat
a replay like any redelivery: discard it if the `event_id` was
already processed.

Endpoint: POST /webhook-events/{token}/replay
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 replay was sent.

## Response 200 fields (application/json):

  - `token` (string)
    The replayed event's `token`.
    Example: whe_W2uMzOzd_QxAOG0la_PjxFZOhI_ryYAE1l

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

  - `replayed` (boolean)
    Enum: "true"

  - `event_id` (string)
    The original event's `event_id`, reused on the replay.
    Example: evt_V1StGXR8Z5jdHi6BmyT2

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

  - `Sent again` (unknown)

## Response 401 examples:

  - `unauthorized` (unknown)

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

## Response 404 examples:

  - `Unknown event` (unknown)

