Events
Rotate an event destination's signing secret
Mints a new signing secret and returns it in secret. This is the only response other than create that carries the plaintext, so store it on receipt. The outgoing secret keeps signing for previous_secret_expires_in_seconds (24 hours by default, 0 for an immediate cutover), and during that overlap each delivery carries one v1= signature per active secret, so either one verifies while you roll out the new one.
post/event-destinations/{id}/rotate-secret
Path parameters
idstring required
Example:whe_a1b2c3d4e5f6
Request body
Example request
{
"previous_secret_expires_in_seconds": 3600
}Response
The signing secret was rotated.
Example response
{
"data": {
"id": "whe_a1b2c3d4e5f6",
"api_version": "v1",
"secret": "whsec_4f1d…"
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.