<!-- source: https://secondlayer.tools/docs/api-reference#requeue-dead-webhook-events -->

## Requeue dead events in bulk

`POST /api/webhooks/{id}/dead/requeue` (self-hosted instances only)

Moves dead events back to pending with their attempt counts reset, at live priority. With no body it requeues every dead event of the webhook; `replayId` narrows it to one replay and `since` to events that failed at or after that time. A replay that gets events back returns to running, so its progress tracks the retry.

### Path parameters

| Name | Type | Description |
| --- | --- | --- |
| `id` | string, required | Webhook id (UUID), as returned by create or list. |

### Body

| Field | Type | Description |
| --- | --- | --- |
| `replayId` | string | Only dead events created by this replay. |
| `since` | string · date-time | Only dead events that failed at or after this time. |

### Responses

- `200` Events requeued
- `400` A parameter, filter, cursor or body field was refused; `code` says which
- `401` This bind requires the instance token, and it was missing or wrong
- `404` No webhook with this id
- `415` Missing or non-JSON `Content-Type` (`UNSUPPORTED_MEDIA_TYPE`) — writes must send `Content-Type: application/json`

### Example

```bash
curl -X POST http://127.0.0.1:3800/api/webhooks/{id}/dead/requeue \
  -H "Authorization: Bearer $INSTANCE_TOKEN" \
  --json '{
  "replayId": "a41f09c3d27e8b65"
}'
```

```json
{
  "requeued": 14
}
```
