# Webhook events and payloads

**URL:** https://furcata.com/en/docs/webhook-events  
**Type:** doc

A webhook subscription binds one message state transition on one account to one HTTPS endpoint. When the transition happens, Furcata posts a JSON body to your endpoint.

Subscriptions are created, listed and deleted with the hooks endpoints. Each subscription names exactly one event.

### Available events

- message.delivered — a message reached its recipient.
- message.failed — a message could not be delivered.
- message.inbound — a message was received on one of your numbers.

### Subscribe to an event

POST /account/{account_id}/hooks registers an endpoint for one event and returns the subscription, including the server-assigned id you use to delete it later.

#### Subscription fields

- target_url — required. The HTTPS endpoint to notify. It must begin with https:// and is at most 2048 characters.
- event — required. One of message.delivered, message.failed, message.inbound.
- id — server-assigned identifier for the subscription. Read it from the create response and use it to delete the subscription.

## Note

##### One event per subscription

A subscription carries a single event value. To receive more than one transition, create one subscription per event.

### List subscriptions

GET /account/{account_id}/hooks returns every subscription on the account.

### Delete a subscription

DELETE /account/{account_id}/hooks/{hook_id} permanently removes a subscription. Deleting a subscription requires the account owner role.

### Errors

- 400 — target_url is missing, does not start with https://, or event is not one of the three supported values.
- 401 — the Authorization header is missing or the token is not valid.
- 403 — the caller is not permitted to manage hooks on this account, or is not the owner when deleting.
- 404 — the hook id does not exist on this account.

Every error uses the envelope described in Errors and idempotency.
