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

# Webhook client

> Manage webhook endpoints with the Paubox Python SDK.

Webhook methods are on the same `PauboxApiClient` you use to send email.

```python theme={null}
from paubox.paubox import PauboxApiClient

client = PauboxApiClient()
```

## List webhook endpoints

```python theme={null}
endpoints = client.list_webhook_endpoints()
```

## Create a webhook endpoint

```python theme={null}
endpoint = client.create_webhook_endpoint(
    target_url="https://example.com/webhooks/paubox",
    events=["inbound_mail_received", "api_mail_log_delivered"],
    signing_key="whsec_abc123",
)
```

## Get a webhook endpoint

```python theme={null}
endpoint = client.get_webhook_endpoint(42)
```

## Update a webhook endpoint

```python theme={null}
endpoint = client.update_webhook_endpoint(42, active=False)
```

## Delete a webhook endpoint

```python theme={null}
endpoint = client.delete_webhook_endpoint(42)
```
