Skip to main content
POST
/
v1
/
platforms
/
me
/
webhooks
/
{endpoint_id}
/
rotate-secret
Rotate webhook secret
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.keystoneos.xyz/v1/platforms/me/webhooks/{endpoint_id}/rotate-secret', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "new_secret": "<string>",
  "previous_secret_valid_until": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Auth0 JWT access token. See Authentication for details.

Path Parameters

endpoint_id
string<uuid>
required

Response

Successful Response

new_secret
string
required
previous_secret_valid_until
string<date-time>
required