> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vozagent.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Webhooks

> Retrieve a list of all webhook subscriptions.

<Note>
  Retrieve your API Key from your [VozAgent Dashboard](https://app.vozagent.ai/settings/api).
</Note>

## Response

Returns an array of webhook subscription objects.

<ResponseField name="id" type="string">
  Unique webhook identifier.
</ResponseField>

<ResponseField name="url" type="string">
  Endpoint URL to receive events.
</ResponseField>

<ResponseField name="events" type="string[]">
  Events this webhook is subscribed to.
</ResponseField>

<ResponseField name="is_active" type="boolean">
  Whether the webhook is active.
</ResponseField>

<ResponseField name="secret" type="string">
  Signing secret (masked).
</ResponseField>

## Available Events

| Event             | Description                          |
| ----------------- | ------------------------------------ |
| `contact.created` | Fired when a new contact is created. |
| `contact.updated` | Fired when a contact is updated.     |
| `call.started`    | Fired when a call begins.            |
| `call.completed`  | Fired when a call ends.              |

<RequestExample>
  ```bash theme={null}
  curl https://api.vozagent.ai/v1/webhooks \
    -H "Authorization: Bearer <token>"
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  [
    {
      "id": "wh-a1b2c3d4-e5f6-a7b8-c9d0",
      "url": "https://yourapp.com/webhooks/vozagent",
      "events": ["contact.created", "call.completed"],
      "is_active": true,
      "secret": "whsec_*****",
      "created_at": "2024-01-10T09:00:00Z"
    },
    {
      "id": "wh-b2c3d4e5-f6a7-b8c9-d0e1",
      "url": "https://zapier.com/hooks/catch/123456",
      "events": ["call.started", "call.completed"],
      "is_active": true,
      "secret": "whsec_*****",
      "created_at": "2024-01-12T14:30:00Z"
    }
  ]
  ```
</ResponseExample>
