Rotate a webhook signing secret
curl --request POST \
--url https://api.usenexio.com/webhooks/{endpointID}/rotate-secret \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usenexio.com/webhooks/{endpointID}/rotate-secret"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usenexio.com/webhooks/{endpointID}/rotate-secret', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"rotation_policy_id": "<string>",
"secret": "<string>",
"previous_secret_expires_at": "<string>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Webhooks
Rotate webhook secret
Issue a new signing secret while the previous one stays valid for the environment’s overlap.
POST
/
webhooks
/
{endpointID}
/
rotate-secret
Rotate a webhook signing secret
curl --request POST \
--url https://api.usenexio.com/webhooks/{endpointID}/rotate-secret \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usenexio.com/webhooks/{endpointID}/rotate-secret"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usenexio.com/webhooks/{endpointID}/rotate-secret', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"rotation_policy_id": "<string>",
"secret": "<string>",
"previous_secret_expires_at": "<string>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Last modified on November 30, 2026