# Replay webhook event

Tool: `veryfront__replay_webhook_event`

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.

## Arguments

| Name                | Type          | Required | Description                                                                                                                                                                                                                                                                                                                                                                                |
| ------------------- | ------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project_reference` | string        |          | Project ID or slug.                                                                                                                                                                                                                                                                                                                                                                        |
| `webhook_id`        | string · uuid | 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`  | string · uuid | 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                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__replay_webhook_event",
    "arguments": {
      "webhook_id": "00000000-0000-0000-0000-000000000000",
      "webhook_event_id": "00000000-0000-0000-0000-000000000000"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"webhook_id\":\"00000000-0000-0000-0000-000000000000\",\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"conversation_id\":\"00000000-0000-0000-0000-000000000000\",\"message_id\":\"00000000-0000-0000-0000-000000000000\",\"run_id\":\"string\",\"canonical_run_id\":\"00000000-0000-0000-0000-000000000000\",\"latest_event_id\":0,\"status\":\"received\",\"duplicate\":false,\"payload\":null,\"error_code\":\"string\",\"error_message\":\"string\",\"invoked_by\":\"string\",\"manual_invoked_by_user_id\":\"00000000-0000-0000-0000-000000000000\",\"received_at\":\"string\",\"completed_at\":\"string\"}"
      }
    ],
    "structuredContent": {
      "id": "00000000-0000-0000-0000-000000000000",
      "webhook_id": "00000000-0000-0000-0000-000000000000",
      "project_id": "00000000-0000-0000-0000-000000000000",
      "conversation_id": "00000000-0000-0000-0000-000000000000",
      "message_id": "00000000-0000-0000-0000-000000000000",
      "run_id": "string",
      "canonical_run_id": "00000000-0000-0000-0000-000000000000",
      "latest_event_id": 0,
      "status": "received",
      "duplicate": false,
      "payload": null,
      "error_code": "string",
      "error_message": "string",
      "invoked_by": "string",
      "manual_invoked_by_user_id": "00000000-0000-0000-0000-000000000000",
      "received_at": "string",
      "completed_at": "string"
    }
  }
}
```
