Webhooks
Rotate your webhook's signing secret
Changed onReplace your webhook's signing secret, without missing an event or failing a delivery.
The new secret is returned, once. For the next 24 hours each delivery is signed with both the new and the previous secret, so you can switch at your own pace; after that, only with the new one. Rotating again within those 24 hours stops the oldest secret being used straight away.
post/webhook/secret/rotate
Request
- Base URLhttps://api.treasuryspring.com/api/v1
- AuthHTTP bearer
Response
The webhook, with its new signing secret
Example response
{
"secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw",
"types": [
"EVENT"
],
"url": "https://example.com/webhooks"
}Changes
- info
endpoint added
- info