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"
}
Rotate the signing secret for a webhook
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"
}
sy_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"
}