Enqueue a notification
curl --request POST \
--url https://beta.creatorcore.co/api/v2/utilities/notifications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"topic": "<string>",
"payload": {
"format": "text",
"text": "<string>"
}
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({topic: '<string>', payload: {format: 'text', text: '<string>'}})
};
fetch('https://beta.creatorcore.co/api/v2/utilities/notifications', 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"
payload = {
"topic": "<string>",
"payload": {
"format": "text",
"text": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"queued": 123,
"skipped": 123,
"errors": [
"<string>"
],
"immediate": {
"ok": true,
"mode": "immediate",
"detail": "<string>"
}
}{
"success": true,
"queued": 123,
"skipped": 123,
"errors": [
"<string>"
],
"immediate": {
"ok": true,
"mode": "immediate",
"detail": "<string>"
}
}Notifications
Enqueue a notification
Queues a notification for delivery. Returns 202 when one or more outbox rows were created, or 200 when nothing was queued (recipients skipped and/or the send completed immediately — see immediate).
POST
/
api
/
v2
/
utilities
/
notifications
Enqueue a notification
curl --request POST \
--url https://beta.creatorcore.co/api/v2/utilities/notifications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"topic": "<string>",
"payload": {
"format": "text",
"text": "<string>"
}
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({topic: '<string>', payload: {format: 'text', text: '<string>'}})
};
fetch('https://beta.creatorcore.co/api/v2/utilities/notifications', 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"
payload = {
"topic": "<string>",
"payload": {
"format": "text",
"text": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"queued": 123,
"skipped": 123,
"errors": [
"<string>"
],
"immediate": {
"ok": true,
"mode": "immediate",
"detail": "<string>"
}
}{
"success": true,
"queued": 123,
"skipped": 123,
"errors": [
"<string>"
],
"immediate": {
"ok": true,
"mode": "immediate",
"detail": "<string>"
}
}Authorizations
Body
application/json
Was this page helpful?