# Run webhook

Tool: `veryfront__run_webhook`

Send a test payload to a webhook as an external sender posts it, to check its target and filter, also when the webhook is a draft or disabled; returns the webhook event that the call 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. |
| `payload`           |               |          | Payload as an external sender would post it, any JSON value, at most 64 KiB. Defaults to {}.                                                                                                                                                                                                |

## 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__run_webhook",
    "arguments": {
      "webhook_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"
    }
  }
}
```
