Skip to main content
POST
/
api
/
v1
/
mgt
/
workspaces
/
{workspaceId}
/
webhook-subscriptions
/
{subscriptionId}
/
rotate-secret
Rotate Webhook Secret
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"
  }
}

Authorizations

x-client-key
string
header
required
x-client-secret
string
header
required

Path Parameters

workspaceId
string<uuid>
required

Workspace ID

subscriptionId
string<uuid>
required

Subscription ID

Response

Secret rotated successfully

status
boolean
code
integer
data
object