JavaScript
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" }
Generate a new secret. The previous secret remains valid for 24 hours to allow for a graceful rollover.
Auth0 JWT access token. See Authentication for details.
Successful Response