POST
/
webhooks
/
{id}
/
rotate-secret
curl -X POST https://api.stableyard.fi/v2/webhooks/wh_abc123/rotate-secret \
  -H "Authorization: Bearer sy_secret_*"
{
  "object": "webhook",
  "id": "wh_abc123",
  "secret": "whsec_new_secret",
  "requestId": "req_abc123"
}
Generate a new signing secret for the webhook. The old secret is immediately invalidated. Auth: sy_secret_*
id
string
required
Webhook ID
curl -X POST https://api.stableyard.fi/v2/webhooks/wh_abc123/rotate-secret \
  -H "Authorization: Bearer sy_secret_*"
{
  "object": "webhook",
  "id": "wh_abc123",
  "secret": "whsec_new_secret",
  "requestId": "req_abc123"
}
Update your webhook verification code with the new secret immediately after rotating.