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

# Webhooks

> Register webhook endpoints and read their Standard Webhooks signing keys with lago v2 webhook-endpoints.

| Command | Description |
| - | - |
| `v2 webhook-endpoints create` | Register an endpoint. At most ten per organization, each with a distinct URL. |
| `v2 webhook-endpoints get <lago_id>` | Retrieve an endpoint. `--expands signing_keys` includes its signing keys. |
| `v2 webhook-endpoints list` | List endpoints. |
| `v2 webhook-endpoints update <lago_id>` | Partial update. Also `patch`. |
| `v2 webhook-endpoints delete <lago_id>` | Delete an endpoint. Confirmation-gated. |

## create

| Flag | Description |
| - | - |
| `--webhook-url` | Public URL receiving deliveries. Private addresses are rejected. |
| `--name` | Endpoint name. |
| `--event-types` | JSON array of event types. `null` or `["*"]` selects every event. An empty array selects none. |
| `--signature-algo` | Only `standard_webhooks`, the default. |

Endpoints created through v2 sign deliveries with Standard Webhooks. Reading `signing_keys` requires `webhook_endpoint` write permission on the API key. The array is ordered oldest first, so use the last key. See [webhooks](https://getlago.com/docs/v2/guide/webhooks.md).

```bash create theme={"dark"}
lago v2 webhook-endpoints create --name "Billing service" \
  --webhook-url https://billing.acme.example/lago/webhooks \
  --event-types '["*"]'
```

```bash signing key theme={"dark"}
lago v2 webhook-endpoints get 1a901a90-1a90-1a90-1a90-1a901a901a90 \
  --expands signing_keys --query 'webhook_endpoint.signing_keys[-1].secret_key'
```

```bash delete theme={"dark"}
lago v2 webhook-endpoints delete 1a901a90-1a90-1a90-1a90-1a901a901a90 \
  --confirm 1a901a90-1a90-1a90-1a90-1a901a901a90
```

```text create theme={"dark"}
LAGO_ID  1a901a90-1a90-1a90-1a90-1a901a901a90
NAME     Billing service
```


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