# List webhook events

Tool: `veryfront__list_webhook_events`

List the events a webhook received, newest first, to check deliveries, manual runs and replays; returns one page of webhook events, each with the run it started, if any, and an event that the filter stopped has the status ignored. 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.               |
| `limit`             | integer · min 1 · max 100 |          | Maximum webhook events to return, from 1 to 100. Defaults to 50.                                                      |
| `cursor`            | string · uuid             |          | The `page_info.next` of the previous page: the id of its last webhook event. 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_webhook_events",
    "arguments": {
      "webhook_id": "00000000-0000-0000-0000-000000000000"
    }
  }
}'
```

## Example response

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