cURL
curl --request POST \ --url https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/webhook-subscriptions/{subscriptionId}/rotate-secret \ --header 'x-client-key: <api-key>' \ --header 'x-client-secret: <api-key>'
{ "status": true, "code": 200, "data": { "secret": "new_secret_64_character_hex_string_here_1234567890abcdef12345678", "previousSecretValidUntil": "2024-12-24T10:00:00Z" } }
Generates a new webhook secret. The old secret remains valid for 24 hours to allow seamless migration.
Workspace ID
Subscription ID
Secret rotated successfully
Show child attributes