# webhook.delivery

How an event reaches your webhook, and what happens when your endpoint does not answer.

- **Starts when:** Something happens in the project
- **Involved:** Dispra, your endpoint
- **Ends with:** Your endpoint answered 2xx, or the delivery is given up after an hour
- **Takes:** Under a second, up to an hour with retries

## Steps

| Step | Who | What | Calls / logs |
|---|---|---|---|
| 1 | Dispra | Builds the event (id, type, created_at, project, data) and signs the body with the project's webhook secret. |  |
| 2 | Dispra | POSTs it to every webhook subscribed to that event, with X-Dispra-Signature. |  |
| 3 | Your endpoint | Verifies the signature and answers 2xx within a few seconds, then does the work. |  |
| 4 | Dispra | No 2xx: retries 1, 5, 10, 20 and 24 minutes later, then marks the delivery failed. | calls [List deliveries](https://docs.dispralabs.com/api/list-deliveries.md) |

## Related

- [Webhooks](https://docs.dispralabs.com/features/webhooks.md)
