# Webhooks API

Register webhook endpoints, rotate signing secrets, inspect delivery attempts, retry failed payloads, and list event types in the dimmi API.

## Webhook deliveries

- `POST /webhook-deliveries/{delivery}/redeliveries` - Send a webhook delivery again: Posts a delivery to its endpoint again now, with the same payload signed afresh. Returns the delivery with the new attempt.
- `GET /webhook-deliveries/{delivery}` - Get a webhook delivery: Reads one delivery with the exact payload it sends and every attempt. Returns the delivery, its payload and its attempts with their requests and answers.

## Webhook endpoints

- `GET /webhook-endpoints` - List webhook endpoints: Lists the URLs the workspace posts its events to, with what each subscribes to and its health. Returns every endpoint with its URL, event types, whether it is on and its health.
- `GET /webhook-endpoints/{endpoint}/deliveries` - List webhook deliveries: Lists the events sent to an endpoint, newest first, and how each went. Returns a page of deliveries with their status, attempts and last answer.
- `POST /webhook-endpoints` - Add a webhook endpoint: Starts posting the workspace's events to a URL. The workspace's owners are told by email. Only add URLs the person gave you. Returns the endpoint, with its signing secret in meta.secret shown this once.
- `POST /webhook-endpoints/{endpoint}/tests` - Send a test webhook: Posts a sample event to an endpoint now and reports how it answered. Returns the test delivery and its attempt with the status, body and a hint on a signature failure.
- `POST /webhook-endpoints/{endpoint}/secret-reveals` - Reveal a webhook secret: Reads the secret an endpoint's requests are signed with. Who saw it is recorded. Returns the secret and, while a rotation overlaps, the previous one with when it stops.
- `POST /webhook-endpoints/{endpoint}/secret-rotations` - Rotate a webhook secret: Gives an endpoint a new signing secret. The old one keeps signing for overlap_seconds so the receiver can switch without dropping events. Returns the new secret and the previous one with when it stops signing.
- `GET /webhook-endpoints/{endpoint}` - Get a webhook endpoint: Reads one endpoint. Its secret is never part of it. Returns the endpoint.
- `GET /webhook-endpoints/{endpoint}/stats` - Get webhook endpoint stats: Reads how an endpoint answered over the last day. Returns the attempts, how many succeeded and the median and 95th percentile duration.
- `PATCH /webhook-endpoints/{endpoint}` - Change a webhook endpoint: Changes an endpoint's URL, events, inbox filter or notes, or turns it on or off. Returns the endpoint as it now is.
- `DELETE /webhook-endpoints/{endpoint}` - Remove a webhook endpoint: Stops posting to an endpoint and deletes its delivery log. Returns nothing once it is removed.

## Webhook event types

- `GET /webhook-event-types` - List webhook event types: Lists every event a webhook endpoint can subscribe to, grouped by area. Returns each event type with the object its payload carries, its area and what it means.

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
