Webhooks
Rotate a Webhook Signing Secret
Changed onReplaces the signing secret and returns the new one once. The old secret stops working immediately, and a delivery already in flight was signed with it, so accept both signatures on the receiver until traffic has settled.
Error codes
| error.code | HTTP | Cause | What to do |
|---|---|---|---|
| not_found | 422 | No subscription with this id exists in the calling org. | Check the id; a deleted subscription is never returned. |
post/v1/webhooks/subscriptions/{subscription_id}/rotate-secret
Request
- Base URLhttps://api.monaco.com
- URLhttps://api.monaco.com/v1/webhooks/subscriptions/{subscription_id}/rotate-secret
- Authnone declared
Path parameters
subscription_idstring uuid required
Response
Successful Response
Example response
{
"data": {
"secret": "whsec_..."
}
}Changes
- info
endpoint added
- info