# Get webhook

Tool: `veryfront__get_webhook`

Read one webhook by its ID to inspect its target, prompt template, event filter and status; returns the webhook with its public URL and never its secret. Requires project.agents.read.

## Arguments

| Name                | Type          | Required | Description                                                                                             |
| ------------------- | ------------- | -------- | ------------------------------------------------------------------------------------------------------- |
| `project_reference` | string        |          | Project ID or slug.                                                                                     |
| `webhook_id`        | string · uuid | Yes      | The webhook id (`id` on the webhook, formerly `webhook_definition_id`). A missing webhook is not found. |

## 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__get_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\",\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"name\":\"string\",\"source\":\"webhook\",\"target\":{\"kind\":\"agent\",\"id\":\"string\",\"conversation_mode\":\"create_new\",\"conversation_id\":\"00000000-0000-0000-0000-000000000000\"},\"prompt_template\":\"string\",\"event_filter\":{\"mode\":\"all\",\"conditions\":[{\"path\":\"string\",\"operator\":\"equals\",\"value\":null}]},\"status\":\"draft\",\"runtime_target_kind\":\"main_branch\",\"runtime_target_environment_id\":\"00000000-0000-0000-0000-000000000000\",\"runtime_target_branch_id\":\"00000000-0000-0000-0000-000000000000\",\"definition_source\":\"manual\",\"source_trigger_id\":\"string\",\"source_path\":\"string\",\"source_hash\":\"string\",\"ingress_id\":\"string\",\"webhook_url\":\"string\",\"created_by_user_id\":\"00000000-0000-0000-0000-000000000000\",\"enabled_at\":\"string\",\"disabled_at\":\"string\",\"disabled_reason\":\"string\",\"created_at\":\"string\",\"updated_at\":\"string\"}"
      }
    ],
    "structuredContent": {
      "id": "00000000-0000-0000-0000-000000000000",
      "project_id": "00000000-0000-0000-0000-000000000000",
      "name": "string",
      "source": "webhook",
      "target": {
        "kind": "agent",
        "id": "string",
        "conversation_mode": "create_new",
        "conversation_id": "00000000-0000-0000-0000-000000000000"
      },
      "prompt_template": "string",
      "event_filter": {
        "mode": "all",
        "conditions": [
          {
            "path": "string",
            "operator": "equals",
            "value": null
          }
        ]
      },
      "status": "draft",
      "runtime_target_kind": "main_branch",
      "runtime_target_environment_id": "00000000-0000-0000-0000-000000000000",
      "runtime_target_branch_id": "00000000-0000-0000-0000-000000000000",
      "definition_source": "manual",
      "source_trigger_id": "string",
      "source_path": "string",
      "source_hash": "string",
      "ingress_id": "string",
      "webhook_url": "string",
      "created_by_user_id": "00000000-0000-0000-0000-000000000000",
      "enabled_at": "string",
      "disabled_at": "string",
      "disabled_reason": "string",
      "created_at": "string",
      "updated_at": "string"
    }
  }
}
```
