Rotate a webhook signing secret
curl --request POST \
--url https://beta.creatorcore.co/api/v2/utilities/notifications/destinations/{id}/rotate-secret \
--header 'Authorization: Bearer <token>' \
--header 'X-CreatorCore-Organization-Id: <api-key>'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'X-CreatorCore-Organization-Id': '<api-key>'}
};
fetch('https://beta.creatorcore.co/api/v2/utilities/notifications/destinations/{id}/rotate-secret', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/utilities/notifications/destinations/{id}/rotate-secret"
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text){
"success": true,
"destination": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "slack_webhook",
"label": "<string>",
"config": {},
"enabled": true,
"createdByApiKeyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"updatedAt": "<string>"
},
"signingSecret": "<string>"
}Notification destinations
Rotate a webhook signing secret
Replaces the signing secret of a webhook destination and returns the new secret once. Deliveries signed after the call use the new secret. Returns 400 for destinations that are not webhooks. If the webhook has a subscription that can match payout events, rotating its secret requires permission to read payouts; otherwise 403. Signed-in organization members (admin or member role) can manage every destination type. Organization API keys can manage webhook destinations and their subscriptions only, and only when the key is granted this operation by name (a key granted all operations does not include it). Connected-app (OAuth) tokens are not accepted.
POST
/
api
/
v2
/
utilities
/
notifications
/
destinations
/
{id}
/
rotate-secret
Rotate a webhook signing secret
curl --request POST \
--url https://beta.creatorcore.co/api/v2/utilities/notifications/destinations/{id}/rotate-secret \
--header 'Authorization: Bearer <token>' \
--header 'X-CreatorCore-Organization-Id: <api-key>'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'X-CreatorCore-Organization-Id': '<api-key>'}
};
fetch('https://beta.creatorcore.co/api/v2/utilities/notifications/destinations/{id}/rotate-secret', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/utilities/notifications/destinations/{id}/rotate-secret"
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text){
"success": true,
"destination": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "slack_webhook",
"label": "<string>",
"config": {},
"enabled": true,
"createdByApiKeyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"updatedAt": "<string>"
},
"signingSecret": "<string>"
}Authorizations
Was this page helpful?