Rotate a webhook signing secret
POST /Platform/jobs/webhooks/{webhook_id}/rotate-secret
Rotate a webhook signing secret.
The previous secret STAYS ACTIVE alongside the new one (deliveries
are signed with the new secret; receivers should accept either
during the window). Cut over your receiver to the new secret, then
call this route again — each rotation retires the older of the two.
Requires the admin:webhooks scope.
Path parameters
webhook_id: str. The subscription whose secret to rotate.
Returns
WebhookSecret
id: str. Webhook subscription identifier.secret: str. New signing secret; store it securely when issued.
Example request
curl -X POST "https://api.hilus.ai/Platform/jobs/webhooks/{webhook_id}/rotate-secret" \
-H "Authorization: Bearer $HILUS_API_KEY"