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

# sazabi webhooks

> Command reference for sazabi webhooks.

`sazabi webhooks` — Manage webhook endpoints. Subcommands: `list`, `get`, `create`, `update`, `delete`, `rotate-secret`, `enable`, `test`, `subscribe`, `unsubscribe`, `deliveries`.

## `sazabi webhooks`

Manage webhook endpoints

```txt theme={"system"}
sazabi webhooks <subcommand>
```

```bash theme={"system"}
sazabi webhooks list  # List webhook endpoints
sazabi webhooks create "My Webhook" https://example.com/webhook  # Create an endpoint
```

### `sazabi webhooks list`

List webhook endpoints

```txt theme={"system"}
sazabi webhooks list [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi webhooks list  # List webhook endpoints
```

### `sazabi webhooks get`

Get a webhook endpoint

```txt theme={"system"}
sazabi webhooks get <webhook-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi webhooks get <webhook-id>  # Show one webhook endpoint
```

### `sazabi webhooks create`

Create a webhook endpoint

```txt theme={"system"}
sazabi webhooks create <name> <url> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--description` | string | No | Webhook description |
| `--auth-header-name` | string | No | Custom auth header name |
| `--auth-header-value` | string | No | Custom auth header value |

```bash theme={"system"}
sazabi webhooks create "My Webhook" https://example.com/webhook  # Create an endpoint
```

### `sazabi webhooks update`

Update a webhook endpoint

```txt theme={"system"}
sazabi webhooks update <webhook-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--name` | string | No | Webhook name |
| `--url` | string | No | Webhook URL |
| `--description` | string | No | Webhook description |
| `--auth-header-name` | string | No | Custom auth header name |
| `--auth-header-value` | string | No | Custom auth header value |

```bash theme={"system"}
sazabi webhooks update <webhook-id> --name "Updated Name"  # Update endpoint metadata
```

### `sazabi webhooks delete`

Delete a webhook endpoint

```txt theme={"system"}
sazabi webhooks delete <webhook-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi webhooks delete <webhook-id>  # Delete an endpoint
```

### `sazabi webhooks rotate-secret`

Rotate the signing secret for a webhook

```txt theme={"system"}
sazabi webhooks rotate-secret <webhook-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi webhooks rotate-secret <webhook-id>  # Rotate signing secret
```

### `sazabi webhooks enable`

Enable a webhook endpoint

```txt theme={"system"}
sazabi webhooks enable <webhook-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi webhooks enable <webhook-id>  # Re-enable an endpoint
```

### `sazabi webhooks test`

Send a test delivery to a webhook

```txt theme={"system"}
sazabi webhooks test <webhook-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi webhooks test <webhook-id>  # Send a test delivery
```

### `sazabi webhooks subscribe`

Subscribe a webhook to project notifications

```txt theme={"system"}
sazabi webhooks subscribe <webhook-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--project-id` | string | No | Project to subscribe |
| `--notification-type` | string | No | Notification type (repeatable) |
| `--severity` | string | No | Issue severity filter (repeatable) |
| `--component-id` | string | No | Component filter (repeatable) |
| `--team-id` | string | No | Owning-team filter (repeatable; exclusive with --component-id) |

```bash theme={"system"}
sazabi webhooks subscribe <webhook-id> --project-id <project-id> --notification-type issue_triggered  # Subscribe to issue notifications
```

### `sazabi webhooks unsubscribe`

Remove a webhook project subscription

```txt theme={"system"}
sazabi webhooks unsubscribe <webhook-id> <subscription-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi webhooks unsubscribe <webhook-id> <subscription-id>  # Remove a subscription
```

### `sazabi webhooks deliveries`

List deliveries for a webhook

```txt theme={"system"}
sazabi webhooks deliveries <webhook-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--limit` | string | No | Maximum number of deliveries to return (default: 50, max: 100) |
| `--cursor` | string | No | Pagination cursor from previous response |

```bash theme={"system"}
sazabi webhooks deliveries <webhook-id>  # List delivery history
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.