# veryfront__create_webhook

Create a webhook when an external service must start an agent, task or workflow run, or when its deliveries must only be stored as webhook events; returns the webhook and its secret, which is shown only once. Requires project.agents.write.

Risk: mutating.

## Arguments

| Name                | Type   | Required | Description                                                                                       |
| ------------------- | ------ | -------- | ------------------------------------------------------------------------------------------------- |
| `project_reference` | string |          | Project ID or slug.                                                                               |
| `name`              | string | Yes      | Webhook name, 1-120 characters.                                                                   |
| `target`            | object | Yes      | Target invoked by a webhook definition.                                                           |
| `prompt_template`   | string |          | Prompt template for run targets: required unless target.kind is event, where it is not supported. |
| `event_filter`      |        |          | Optional incoming event filter. Missing, null, or empty conditions accept every event.            |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_webhook",
    "arguments": {
      "name": "<name>",
      "target": "<target>"
    }
  }
}
```
