# Webhooks

A webhook endpoint is a URL that Soosh sends your workspace's events to. Create endpoints, change them and rotate their signing secrets.

## Endpoints

- [List webhook endpoints](https://docs.soosh.io/reference/api/webhooks/list-webhooks/): `GET /v1/webhooks`
- [Create a webhook endpoint](https://docs.soosh.io/reference/api/webhooks/create-webhook/): `POST /v1/webhooks`
- [Get a webhook endpoint](https://docs.soosh.io/reference/api/webhooks/get-webhook/): `GET /v1/webhooks/{id}`
- [Change a webhook endpoint](https://docs.soosh.io/reference/api/webhooks/update-webhook/): `PATCH /v1/webhooks/{id}`
- [Delete a webhook endpoint](https://docs.soosh.io/reference/api/webhooks/delete-webhook/): `DELETE /v1/webhooks/{id}`
- [Rotate a webhook endpoint's secret](https://docs.soosh.io/reference/api/webhooks/rotate-webhook-secret/): `POST /v1/webhooks/{id}/rotate-secret`

## The Webhook object

- `id` (string, uuid)
- `url` (string): Where Soosh sends the events.
- `description` (string): Up to 500 characters.
- `events` (array of strings): One of `message.received`, `message.sent`, `message.status`, `contact.created`, `contact.updated`, `contact.deleted`, `contact.erased`, `template.status`, `chat.assigned`, `chat.closed`, `chat.reopened`, `broadcast.status`.
- `headers` (object): Custom headers sent with every request, by name. Values are never returned: each reads `********`. A map; each value is a string. Up to 10 keys.
- `status` (string): `active`; `paused` while the endpoint keeps failing (Soosh tries again by itself at `paused_until`, and events wait meanwhile); or `disabled` when it's turned off.
- `disabled_reason` (nullable string): Why the endpoint is turned off, or `null`. `failing`: a day of nothing but failures. `no_secret`: it has no signing secret. `key_revoked`, `key_expired` and `key_scopes`: the key that made it was revoked, expired or lost a scope. A person turning it off leaves `null`. Turn it back on with `enabled: true`: deliveries waiting for less than a day are still sent.
- `paused_until` (nullable string, date-time): When a paused endpoint is tried again; `null` unless `status` is `paused`.
- `previous_secret_expires_at` (nullable string, date-time): During a rotation, when the old secret stops signing; `null` otherwise.
- `created_at` (string, date-time)
- `updated_at` (string, date-time)

```json
{
  "id": "4c6e8a0c-2e4b-4d6f-b8a0-1c3e5a7c9e4b",
  "url": "https://hooks.example.com/soosh",
  "description": "Order updates",
  "events": [
    "message.status",
    "contact.created"
  ],
  "headers": {
    "X-Api-Token": "********"
  },
  "status": "active",
  "disabled_reason": null,
  "paused_until": null,
  "previous_secret_expires_at": null,
  "created_at": "2026-10-14T09:20:05.631Z",
  "updated_at": "2026-10-14T09:20:05.631Z"
}
```