Get Notification Preferences
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
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}Notifications
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.
GET
/
notification-preferences
Get Notification Preferences
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
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}Authorizations
Your API key (ta_live_…) from Settings → API keys, sent as Authorization: Bearer <key>. Keep it on a server: it can message every customer you have. A key is full, build or read-only; a request its level does not allow is refused with 403.
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.
Example:
"org_3fKq9TzQ1mN8vB2xR7cLpA"