# Webhooks

Register signed webhook endpoints and inspect deliveries.

 - [POST /webhooks](https://developer.boyahq.com/v2/openapi/webhooks/v2createwebhookendpoint.md): Returns the signing secret (`whsec_...`) once. Each delivery carries `Boya-Signature: t=<unix>,v1=<hex HMAC-SHA256(secret, "<t>.<raw body>")>`, `Boya-Event-Id` and `Boya-Event-Type`. In live, endpoint
 - [GET /webhooks](https://developer.boyahq.com/v2/openapi/webhooks/v2listwebhookendpoints.md)
 - [GET /webhooks/{id}](https://developer.boyahq.com/v2/openapi/webhooks/v2getwebhookendpoint.md)
 - [DELETE /webhooks/{id}](https://developer.boyahq.com/v2/openapi/webhooks/v2deletewebhookendpoint.md)
 - [POST /webhooks/{id}/rotate-secret](https://developer.boyahq.com/v2/openapi/webhooks/v2rotatewebhooksecret.md): Returns the new secret once. Deliveries are signed with both secrets until `previousSecretValidUntil`.
 - [POST /webhooks/{id}/verify](https://developer.boyahq.com/v2/openapi/webhooks/v2verifywebhookendpoint.md): Boya sends `GET <url>?boya_challenge=<token>`; respond 200 with the token as the body.
 - [GET /webhooks/{id}/deliveries](https://developer.boyahq.com/v2/openapi/webhooks/v2listwebhookdeliveries.md)
 - [POST /webhooks/{id}/enable](https://developer.boyahq.com/v2/openapi/webhooks/v2enablewebhookendpoint.md): Resumes deliveries to an endpoint that was disabled (by you, or automatically after 50 consecutive failures lasting at least 24 hours) and clears its failure history. Events emitted while it was off a
 - [POST /webhooks/{id}/disable](https://developer.boyahq.com/v2/openapi/webhooks/v2disablewebhookendpoint.md): Stops deliveries without deleting the endpoint or its secret (unlike DELETE, which is final). Events emitted while it is off are recorded as `skipped` deliveries.
