# Event Replay Troubleshooting

Use the API to recover failed webhook deliveries. The billing dashboard has no inbox console or Replay button.

## Inspect before replaying

Recovery is included on every plan. Confirm your receiver verifies signatures and handles duplicate event IDs. First inspect delivery attempts and dead-letter entries:

```bash
curl "https://getmail.bot/v1/webhooks/$WEBHOOK_ID/deliveries" \
  -H "Authorization: Bearer $MAILBOT_API_KEY"

curl "https://getmail.bot/v1/webhooks/$WEBHOOK_ID/dlq" \
  -H "Authorization: Bearer $MAILBOT_API_KEY"
```

Set `EVENT_ID` to the failed entry's `event_id`, then retry it:

```bash
curl -X POST "https://getmail.bot/v1/webhooks/$WEBHOOK_ID/deliveries/$EVENT_ID/replay" \
  -H "Authorization: Bearer $MAILBOT_API_KEY"
```

Read `data.status`, `data.response_code`, and `data.error`. An HTTP 200 from the replay API does not by itself mean your receiver accepted the event.

## Recover a batch

```bash
curl -X POST "https://getmail.bot/v1/webhooks/$WEBHOOK_ID/replay-failed" \
  -H "Authorization: Bearer $MAILBOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"event_types":["message.received"]}'
```

HTTP 202 means the batch was queued. Inspect `queued`, `skipped`, and `remaining`, then check delivery records and downstream state. Queuing is not delivery confirmation.

## Common responses

| Response | Check |
|---|---|
| 403 | Check ownership, key permission and account access; recovery requires no additional purchase |
| 404 | The webhook or failed entry is not available to this account |
| 409 | The entry was already replayed |
| 429 | Wait for the rate-limit reset before trying again |
| Failed replay result | Check the receiver's status, timeout, and signature verification |

Do not disable signature verification to make a replay succeed. Signed replay uses the configured webhook URL and secret; it does not accept a target override. No universal 90-day recovery window is promised.

Engagement history and failed webhook deliveries are different records. See [Replay Mechanics](/docs/concepts/replay-mechanics) for the limited legacy engagement operation and [Webhooks](/docs/webhooks) for supported automatic events.
