---
title: "deleteWebhook"
---

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

# deleteWebhook

Path: agenthold API › triggers

`DELETE /webhooks/{webhookId}`

URL: `/api/v1/webhooks/{webhookId}`

## Authentication

Requires one of the following:

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

## Path parameters

- `webhookId` (`deleteWebhook.path.webhookId`; string, required)

## Code samples

### cURL

```bash
curl --request DELETE \
  --url '<base-url>/api/v1/webhooks/<webhookId>' \
  --cookie 'agenthold_session=<agenthold_session>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/webhooks/<webhookId>';
const options = {
  method: 'DELETE',
  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/webhooks/<webhookId>"

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

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

print(response.text)
```

## Responses

### 204

Deleted.

### 403

Error.

#### Example

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

- `error` (`deleteWebhook.response.403.error`; string, required)

### 404

Error.

#### Example

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

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


Source: https://agenthold.dev/api/webhook/delete/index.md
