# Replay webhook event

```http
POST /projects/{project_reference}/webhooks/{webhook_id}/events/{webhook_event_id}/replay
```

Send the stored payload of a webhook event to the current target of the webhook again, for example after a failed run; returns the new webhook event that the replay created.

## Parameters

| Name                | In   | Required | Description                                                                                                                                                                                                                                                                                                                                                                                |
| ------------------- | ---- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project_reference` | path | Yes      |                                                                                                                                                                                                                                                                                                                                                                                            |
| `webhook_id`        | path | Yes      | The webhook id. Task and workflow targets accept a project-execution credential that carries native source authority from project.runs.write instead of project.agents.write. Agent targets require project.agents.write, plus project.conversations.write for conversation-backed targets.                                                                                                |
| `webhook_event_id`  | path | Yes      | Stored delivery to replay: a new webhook event is created from its payload and run through the webhook target. Task and workflow targets accept a project-execution credential that carries native source authority from project.runs.write instead of project.agents.write. Agent targets require project.agents.write, plus project.conversations.write for conversation-backed targets. |

## Responses

| Status | Description                                                                                                                                                                |
| ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 202    | Replay accepted: a new webhook event created from the stored payload and run through the webhook target.                                                                   |
| 400    | invalid\_input: invalid body or parameters                                                                                                                                 |
| 401    | unauthenticated                                                                                                                                                            |
| 403    | forbidden: a project member without the required capability                                                                                                                |
| 404    | not\_found: project or webhook not found or not visible                                                                                                                    |
| 412    | conflict: project automation is on hold                                                                                                                                    |
| 500    | internal                                                                                                                                                                   |
| 503    | internal: authentication state is temporarily unavailable, or run admission is fenced and no run was admitted; retry shortly, after the Retry-After delay when one is sent |
