API reference · WebhooksPOST /api/v1/webhooks/{id}/secret/rotate
Rotate webhook secret Generates a new 32-byte base64url signing secret, persists it via webhookModel.update, and returns the secret in the response. The secret is only available at rotation time.
Path parameters id string <uuid> Required
Webhook UUID from webhooks.webhook_id.
Response body Success response 200 · schema WebhookSecretRotationEnvelopeV1
webhook_id string <uuid> Required
signing_secret string Required
32-byte base64url secret; only returned at rotation time.
Response codes 400
Invalid request payload, query, or webhook id format.
401
API key missing/invalid or key user missing.
403
Webhook RBAC permission denied.
404
Webhook, delivery, template, or signing secret not found.
500
Unexpected webhook operation failure.