Send a test webhook event
curl --request POST \
--url https://beta.creatorcore.co/api/v2/utilities/notifications/destinations/{id}/test \
--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}/test', 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}/test"
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text){
"success": true,
"notification": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"batchKey": "<string>",
"channel": "<string>",
"topic": "<string>",
"payload": {},
"status": "pending",
"error": "<string>",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"destinationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recipientUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"aggregateKey": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"sentAt": "<string>",
"attempts": 123,
"nextAttemptAt": "<string>",
"lastAttemptAt": "<string>",
"lastResponseStatus": 123
}
}Notification destinations
Send a test webhook event
Queues a signed notification.test event to a webhook destination and starts delivering it. Returns 202 with the log entry; poll GET /api/v2/utilities/notifications/{id} for the result. Returns 400 for destinations that are not webhooks. 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}
/
test
Send a test webhook event
curl --request POST \
--url https://beta.creatorcore.co/api/v2/utilities/notifications/destinations/{id}/test \
--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}/test', 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}/test"
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text){
"success": true,
"notification": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"batchKey": "<string>",
"channel": "<string>",
"topic": "<string>",
"payload": {},
"status": "pending",
"error": "<string>",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"destinationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recipientUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"aggregateKey": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"sentAt": "<string>",
"attempts": 123,
"nextAttemptAt": "<string>",
"lastAttemptAt": "<string>",
"lastResponseStatus": 123
}
}Authorizations
Was this page helpful?