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

Returns

WebhookSecret

Example request

curl -X POST "https://api.hilus.ai/Platform/jobs/webhooks/{webhook_id}/rotate-secret" \
  -H "Authorization: Bearer $HILUS_API_KEY"