cURL
curl --request POST \ --url https://api.struct.to/v1/webhooks/{webhook_id}/rotate-secret
{ "secret": "<string>", "rotated_at": 123 }
Generate a new HMAC secret for a webhook. The new secret is returned once — store it securely
Webhook UUID
New secret generated
Response for POST /v1/webhook/{id}/rotate-secret
The new HMAC secret (only returned once — store it securely)
Timestamp of rotation (ms since epoch)
Was this page helpful?