# Replay an event to an endpoint (/docs/api/webhook-endpoints/replay-webhook-event)

## Replay an event to an endpoint

`POST https://runepay.co/api/v1/webhook_endpoints/{id}/replay`

Queues the event for the enabled endpoint and resets its delivery attempts and retry window.

Scope: `webhook_endpoints:write`

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` (required) | path | string | The object id. |
| `Idempotency-Key` | header | string | Makes a retry safe: the same key and body within 24 hours does not repeat the request. |

Body:

| Field | Type | Description |
| --- | --- | --- |
| `event_id` (required) | string | The event to deliver again. |

Example request body:

```json
{
  "event_id": "evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"
}
```

Response `200`:

```json
{
  "id": "0f9e8d7c-6b5a-4c3d-8e2f-1a0b9c8d7e6f",
  "event_id": "evt_01KA8E5F7G9H1J3K5M7N9P1Q3R",
  "status": "pending"
}
```

Errors: 400, 401, 403, 404, 409, 413, 422, 500, 503, with the [error shape](/docs/api/errors).
