# List webhooks

Tool: `veryfront__list_webhooks`

List the webhooks stored for a project, newest first, to find a webhook or its public URL; returns one page of webhooks, or every webhook when neither a limit nor a cursor is sent. Requires project.agents.read.

## Arguments

| Name                | Type                      | Required | Description                                                                                                                                                |
| ------------------- | ------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | string                    |          | Project ID or slug.                                                                                                                                        |
| `limit`             | integer · min 1 · max 100 |          | Maximum webhooks to return, from 1 to 100. Without `limit` and `cursor` the response lists every webhook; with a `cursor` alone, the page holds up to 100. |
| `cursor`            | string · uuid             |          | The `page_info.next` of the previous page: the id of its last webhook. Keep `sort_order` the same across pages.                                            |
| `sort_order`        | string                    |          | Creation order: desc (newest first, the default) or asc. One of `asc`, `desc`.                                                                             |

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

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"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\"}],\"page_info\":{\"self\":\"string\",\"first\":null,\"next\":\"string\",\"prev\":\"string\"}}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "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"
        }
      ],
      "page_info": {
        "self": "string",
        "first": null,
        "next": "string",
        "prev": "string"
      }
    }
  }
}
```
