curl --request GET \
--url https://app.thinnest.ai/api/v1/notification-preferences \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/notification-preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/notification-preferences"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"category": "meta",
"label": "WhatsApp",
"muted": false,
"email": "critical"
},
{
"category": "templates",
"label": "Templates",
"muted": false,
"email": "off"
},
{
"category": "campaigns",
"label": "Broadcasts and calling campaigns",
"muted": false,
"email": "all"
},
{
"category": "calls",
"label": "Calls",
"muted": false,
"email": "all"
},
{
"category": "inbox",
"label": "Inbox",
"muted": false,
"email": "off"
},
{
"category": "knowledge",
"label": "Knowledge",
"muted": true,
"email": "off"
},
{
"category": "billing",
"label": "Plan and usage",
"muted": false,
"email": "critical"
},
{
"category": "system",
"label": "Connections",
"muted": false,
"email": "critical"
},
{
"category": "members",
"label": "Members",
"muted": false,
"email": "off"
}
],
"nextCursor": null
}Get Notification Preferences
Every notification category, with whether it is muted and what of it is emailed. A category never changed is shown, not muted and not emailed. Not paged: nextCursor is always null.
curl --request GET \
--url https://app.thinnest.ai/api/v1/notification-preferences \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/notification-preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/notification-preferences"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"category": "meta",
"label": "WhatsApp",
"muted": false,
"email": "critical"
},
{
"category": "templates",
"label": "Templates",
"muted": false,
"email": "off"
},
{
"category": "campaigns",
"label": "Broadcasts and calling campaigns",
"muted": false,
"email": "all"
},
{
"category": "calls",
"label": "Calls",
"muted": false,
"email": "all"
},
{
"category": "inbox",
"label": "Inbox",
"muted": false,
"email": "off"
},
{
"category": "knowledge",
"label": "Knowledge",
"muted": true,
"email": "off"
},
{
"category": "billing",
"label": "Plan and usage",
"muted": false,
"email": "critical"
},
{
"category": "system",
"label": "Connections",
"muted": false,
"email": "critical"
},
{
"category": "members",
"label": "Members",
"muted": false,
"email": "off"
}
],
"nextCursor": null
}Authorizations
Headers
Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace. Refused with 404 (Workspace not found.) when the id is unknown, is not one of your customers, or is not an org_… id; 410 when that customer was deleted (restore it with POST /customers/{id}/restore until it is erased); 403 when the key belongs to one customer workspace (it cannot act as another); 400 when your workspace is not a developer workspace. /customers/* and GET /customers/usage are your own workspace's and refuse the header with 400: call them without it.
"org_3fKq9TzQ1mN8vB2xR7cLpA"