RotateEndpointSecret
POST
RotateEndpointSecret installs a fresh signing secret. For 24h deliveries are signed with both the old and the new secret so consumers can migrate.
header
X-API-Key<token>API key for protected endpoints, supplied in the X-API-Key header.
project_id*project_idLength
1 <= lengthendpoint_id*endpoint_idLength
1 <= lengthResponse Body
200application/json
Success
type: unknown
{
"$ref": "#/components/schemas/webhooks.v1.RotateEndpointSecretResponse",
"$ref-value": {
"type": "object",
"properties": {
"secret": {
"type": "string",
"examples": [
"whsec_6PJkX9sR3uVbNwYqTzLeHdCgAfMjKoQx"
],
"title": "secret"
}
},
"title": "RotateEndpointSecretResponse",
"additionalProperties": false
}
}default
curl -X POST 'https://api.rixl.com/webhooks/v1/projects/string/endpoints/string/rotate-secret'Success
application/json
{
"$ref": "#/components/schemas/webhooks.v1.RotateEndpointSecretResponse",
"$ref-value": {
"type": "object",
"properties": {
"secret": {
"type": "string",
"examples": [
"whsec_6PJkX9sR3uVbNwYqTzLeHdCgAfMjKoQx"
],
"title": "secret"
}
},
"title": "RotateEndpointSecretResponse",
"additionalProperties": false
}
}