Skip to main content
POST
/
webhooks
/
{webhook_id}
/
rotate-secret
Rotate webhook secret
curl --request POST \
  --url https://api.struct.to/v1/webhooks/{webhook_id}/rotate-secret
{
  "secret": "<string>",
  "rotated_at": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.struct.to/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

webhook_id
string
required

Webhook UUID

Response

New secret generated

Response for POST /v1/webhook/{id}/rotate-secret

secret
string
required

The new HMAC secret (only returned once — store it securely)

rotated_at
integer<int64>
required

Timestamp of rotation (ms since epoch)

Last modified on May 1, 2026