---
title: "listWebhooks"
---

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

# listWebhooks

Path: agenthold API › triggers

`GET /agents/{agentId}/webhooks`

URL: `/api/v1/agents/{agentId}/webhooks`

## Authentication

Requires one of the following:

- `session`, apiKey, in cookie
- `token`, http bearer, header `Authorization`

## Path parameters

- `agentId` (`listWebhooks.path.agentId`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/api/v1/agents/<agentId>/webhooks' \
  --cookie 'agenthold_session=<agenthold_session>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/agents/<agentId>/webhooks';
const options = {
  method: 'GET',
  headers: {cookie: 'agenthold_session=<agenthold_session>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/api/v1/agents/<agentId>/webhooks"

headers = {"cookie": "agenthold_session=<agenthold_session>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The agent's webhooks.

#### Example

```json
[
  {
    "id": "string",
    "agentId": "string",
    "sessionId": "string",
    "name": "string",
    "promptTemplate": "string",
    "signed": true,
    "signatureHeader": "string",
    "enabled": true,
    "createdBy": {
      "id": "string",
      "email": "string",
      "name": "string",
      "avatarUrl": "string"
    },
    "lastDeliveryAt": "2019-08-24T14:15:22Z",
    "lastError": "string",
    "createdAt": "2019-08-24T14:15:22Z"
  }
]
```

- `id` (`listWebhooks.response.200.id`; string, required)
- `agentId` (`listWebhooks.response.200.agentId`; string, required)
- `sessionId` (`listWebhooks.response.200.sessionId`; string, required)
- `name` (`listWebhooks.response.200.name`; string, required)
- `promptTemplate` (`listWebhooks.response.200.promptTemplate`; string, required)
- `signed` (`listWebhooks.response.200.signed`; boolean, required)
- `signatureHeader` (`listWebhooks.response.200.signatureHeader`; string, required)
- `enabled` (`listWebhooks.response.200.enabled`; boolean, required)
- `createdBy` (`listWebhooks.response.200.createdBy`; object, required)
  - `id` (`listWebhooks.response.200.createdBy.id`; string, required)
  - `email` (`listWebhooks.response.200.createdBy.email`; string, required)
  - `name` (`listWebhooks.response.200.createdBy.name`; string, required)
  - `avatarUrl` (`listWebhooks.response.200.createdBy.avatarUrl`; string, required)
- `lastError` (`listWebhooks.response.200.lastError`; string, required)
- `createdAt` (`listWebhooks.response.200.createdAt`; string, required)
  - format: `date-time`
- `lastDeliveryAt` (`listWebhooks.response.200.lastDeliveryAt`; string, optional)
  - format: `date-time`

### 404

Error.

#### Example

```json
{
  "error": "string"
}
```

- `error` (`listWebhooks.response.404.error`; string, required)


Source: https://agenthold.dev/api/list-webhooks/index.md
