Create a notification preference
curl --request POST \
--url https://beta.creatorcore.co/api/v2/utilities/notifications/preferences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"topic": "<string>",
"channel": "slack",
"enabled": true,
"resourceType": "<string>",
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "<string>"
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
topic: '<string>',
channel: 'slack',
enabled: true,
resourceType: '<string>',
resourceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
event: '<string>'
})
};
fetch('https://beta.creatorcore.co/api/v2/utilities/notifications/preferences', 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/preferences"
payload = {
"topic": "<string>",
"channel": "slack",
"enabled": True,
"resourceType": "<string>",
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "<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,
"preference": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"topic": "<string>",
"channel": "<string>",
"enabled": true,
"createdAt": "<string>",
"updatedAt": "<string>"
}
}Notification preferences
Create a notification preference
Creates a personal preference override. Returns 409 when a preference for the same (topic, channel) already exists — use PATCH to change it.
POST
/
api
/
v2
/
utilities
/
notifications
/
preferences
Create a notification preference
curl --request POST \
--url https://beta.creatorcore.co/api/v2/utilities/notifications/preferences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"topic": "<string>",
"channel": "slack",
"enabled": true,
"resourceType": "<string>",
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "<string>"
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
topic: '<string>',
channel: 'slack',
enabled: true,
resourceType: '<string>',
resourceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
event: '<string>'
})
};
fetch('https://beta.creatorcore.co/api/v2/utilities/notifications/preferences', 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/preferences"
payload = {
"topic": "<string>",
"channel": "slack",
"enabled": True,
"resourceType": "<string>",
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "<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,
"preference": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"topic": "<string>",
"channel": "<string>",
"enabled": true,
"createdAt": "<string>",
"updatedAt": "<string>"
}
}Authorizations
Body
application/json
Was this page helpful?