Rotate a webhook signing secret
POST
/notifications/channels/{id}/rotate-secret
const url = 'https://api.krakenkey.io/notifications/channels/example/rotate-secret';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.krakenkey.io/notifications/channels/example/rotate-secret \ --header 'Authorization: Bearer <token>'Returns the new secret once. The old secret stops working immediately.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Channel UUID
Responses
Section titled “Responses”{ secret }
Not a webhook channel
Channel not found