Update Notification Preferences

Notifications

Update Notification Preferences

Changes any categories at once, keyed by category: muted hides it from the feed and the bell (a critical notice shows regardless), email chooses what is emailed. A field you leave out keeps its value. Emails go only through the email sender connected in the console's notification settings; until one is connected nothing is emailed, whatever this says, and that connection is not available by API. Answers with every category. A build key may do this.

PATCH/notification-preferences

Headers

Katexs-Workspacestring
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.

Request body

metaobject
Send muted, email or both; the other keeps its value.
meta.mutedboolean
Hide the category from the feed and the bell.
meta.emailstring
What is emailed: off nothing, critical only critical notices, all every notice. One of: off, critical, all.
templatesobject
Send muted, email or both; the other keeps its value.
templates.mutedboolean
Hide the category from the feed and the bell.
templates.emailstring
What is emailed: off nothing, critical only critical notices, all every notice. One of: off, critical, all.
campaignsobject
Send muted, email or both; the other keeps its value.
campaigns.mutedboolean
Hide the category from the feed and the bell.
campaigns.emailstring
What is emailed: off nothing, critical only critical notices, all every notice. One of: off, critical, all.
callsobject
Send muted, email or both; the other keeps its value.
calls.mutedboolean
Hide the category from the feed and the bell.
calls.emailstring
What is emailed: off nothing, critical only critical notices, all every notice. One of: off, critical, all.
inboxobject
Send muted, email or both; the other keeps its value.
inbox.mutedboolean
Hide the category from the feed and the bell.
inbox.emailstring
What is emailed: off nothing, critical only critical notices, all every notice. One of: off, critical, all.
knowledgeobject
Send muted, email or both; the other keeps its value.
knowledge.mutedboolean
Hide the category from the feed and the bell.
knowledge.emailstring
What is emailed: off nothing, critical only critical notices, all every notice. One of: off, critical, all.
billingobject
Send muted, email or both; the other keeps its value.
billing.mutedboolean
Hide the category from the feed and the bell.
billing.emailstring
What is emailed: off nothing, critical only critical notices, all every notice. One of: off, critical, all.
systemobject
Send muted, email or both; the other keeps its value.
system.mutedboolean
Hide the category from the feed and the bell.
system.emailstring
What is emailed: off nothing, critical only critical notices, all every notice. One of: off, critical, all.
membersobject
Send muted, email or both; the other keeps its value.
members.mutedboolean
Hide the category from the feed and the bell.
members.emailstring
What is emailed: off nothing, critical only critical notices, all every notice. One of: off, critical, all.

Example request

bash
curl -X PATCH "https://app.katexs.com/api/v1/notification-preferences" \
  -H "Authorization: Bearer $KATEXS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "calls": {
    "email": "all"
  },
  "knowledge": {
    "muted": true
  }
}'

Responses

StatusDescription
200Every category, as they now are.
400A key is not a category, or a value is not { muted?, email? } with valid values.
401The key is missing, wrong or revoked. The answer is always the same, whichever it is.
403The key's access level (read-only or build) does not allow this request, the plan does not include it, or a customer's key named another workspace in Katexs-Workspace. code says which: key_scope_read, key_scope_build, workspace_header_forbidden, or forbidden.
404The Katexs-Workspace header names a workspace that is unknown, is not one of your customers, or is not an org_… id. Always this one sentence, so a key cannot learn which ids exist in other accounts.
410The customer named in Katexs-Workspace was deleted. POST /customers/{id}/restore brings it back until its erase date.
429Over a per-minute limit. Wait for Retry-After seconds. code and limit say which limit: rate_limit_resources (240 requests a minute for the workspace), rate_limit_family (2,400 across a developer's customers), rate_limit_calls, rate_limit_messages, rate_limit_codes, rate_limit_code_recipient, concurrent_calls or number_daily_limit.

Response fields

itemsobject[]required
nextCursornullrequired
Always null: every category is in one answer.
200 response
{
  "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
}

Last updated November 2026 · Found a problem? Email support@katexs.com