# Hooks

**URL:** https://furcata.com/en/docs/hooks  
**Type:** doc

A hook is a subscription that tells Furcata where to send a message event. You register an HTTPS endpoint, choose one event, and Furcata calls that endpoint when the event happens on the account.

### Create a subscription

Give the endpoint and the event you care about. The subscription id is assigned by the server and returned in the response.

Request fields:

- target_url: required, must start with https:// and be at most 2048 characters.
- event: required, one of message.delivered, message.failed or message.inbound.

The response returns the server-assigned id together with the values you sent.

### List subscriptions

Returns every hook registered on the account.

### Delete a subscription

Removes the subscription permanently. The endpoint stops receiving events immediately. This requires the account owner role.

## Note

##### One event per subscription

A subscription names a single event. If you want delivered, failed and inbound events, create three subscriptions, or point them at the same endpoint and branch on the event field.

### Errors

- 400 when target_url is missing, is not HTTPS, or event is not one of the three supported values.
- 401 when the token is missing or not accepted.
- 403 when deleting is attempted by someone who is not the account owner.
- 404 when the hook id does not exist on this account.

### Next steps

Read Webhook events and payloads for what arrives at your endpoint, and the Webhooks overview for delivery behaviour.
