Skip to content
v1

Reference Notifications

Notifications

Read your team's business alerts, including requests to call a lead, and keep them in sync with your CRM.

Overview

A notification is a business alert for the team, such as a request to call a lead. It carries the alert's summary, its status and source, and links to a lead, call or conversation when available. Its id starts with ntf_.

Use GET /v1/notifications to list a team's notifications and GET /v1/notifications/{id} to fetch one. Lists take limit and cursor, plus at most one filter: lead or status. status is new, read or archived, or null for an unknown stored value. Without a status filter the list includes every exported status, including archived alerts. The status is the shared state in Totem, not an acknowledgement from your integration. The API cannot mark a notification as read or archived.

The existing crm:read permission covers notifications; existing keys need no extra permission. A key has the same administrator-level team access as for leads, including business alerts addressed to a department or person. Personal private notes, technical alerts and errors are excluded. A linked source that has disappeared or been erased makes its notification unavailable, even if the alert remains in Totem's history. Apply notification removals from the changes feed to your copy.

Notification fields

  • summary is the business alert text. It is null when empty and is limited to 10,000 characters. Treat it as personal data and untrusted plain text. It is the API's explicit exception for free-text content: the stored alert text can include a source summary already copied into the card, such as an existing call summary added to a missed-transfer alert. The API does not independently retrieve messages, transcripts, call summaries or lead notes to compose it.
  • source is call, chat, reminder, task or manual. Older records with no source read as manual; unsupported sources are not exported.
  • lead, call and conversation are public ids or null. Resolve the lead to obtain its contact details; do not infer them from the summary. Older notifications can lack links.
  • handoff_reason is missed_team_appointment when Totem recorded that reason, otherwise null. A general request to speak to a person has no guaranteed reason code: the alert's summary states what the person asked.
  • created_at is when the alert was created, or null when not recorded. version and updated_at follow the usual record rules.

Send a callback request to your CRM

Configure the assistant to notify the team when someone asks to speak to a person. Your server reads the notification, follows lead to the contact, and creates a task or alert through your CRM's API. Totem does not create that external task for you.

For a lookup of alerts that are currently new:

cURL
curl "https://api.totemstudio.ai/v1/notifications?status=new&limit=100" \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID"

For reliable ongoing delivery, poll GET /v1/sync/changes every 1 to 5 minutes and handle kind: "notification", including updates and removals. Polling only status=new can miss an alert that somebody reads before your next request. The feed includes its current state even when that state is already read or archived.

Keep a mapping from the notification's id to the task in your CRM, so a replay or a higher version updates the same task instead of creating another. Apply the page before saving its cursor, and handle removals as Keep a copy in sync explains. Use your own stored processing state; the Totem status cannot acknowledge your CRM's work. A notification does not override the lead's contact permissions.

List notifications

GET /v1/notifications

Returns a page of business notifications with their summary and linked records; pass either lead or status to filter. Personal notes, technical alerts and notices whose linked source was erased are excluded. Reading never marks notices read; use the changes feed for updates and removals.

Scopes
crm:read
Rate limit
Sync

Query parameters

  • limit integer Range 1–100 Default 25

    Items per page, 1–100. Defaults to 25.

  • cursor string 1–512 chars

    The next_cursor of the previous page. Omit it for the first page.

  • lead string ID prefix lead_…

    Only the notifications linked to this lead: every item's lead is this id. A lead of another team, or one that does not exist, matches nothing.

  • status string

    Only notices with this status. At most one of lead and status.

    Possible values
    • new
    • read
    • archived

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

Returns

Returns a list of Notification objects.

  • object string

    Always list.

  • data Array<Notification>

    The items of this page.

  • has_more boolean

    true when another page follows: fetch it with next_cursor, even if this page holds fewer items than limit.

  • next_cursor string Nullable

    Opaque cursor for the next page, or null on the last page. Never parse it.

Errors

+ 12 common errors

GET /v1/notifications
curl 'https://api.totemstudio.ai/v1/notifications?limit=25' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID"
Response · 200JSON
{
  "object": "list",
  "data": [
    {
      "id": "ntf_m3mtwDFyaDSKmhf9rg7Ps201S8Jc4",
      "object": "notification",
      "livemode": false,
      "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
      "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
      "call": null,
      "conversation": "conv_m3GhGjRHmFbww1g10oqOp7j3gWqPJ",
      "summary": "Alex requests a call from a person about the appointment.",
      "status": "new",
      "source": "chat",
      "handoff_reason": null,
      "created_at": "2026-10-01T08:58:00.000Z",
      "version": 1,
      "updated_at": "2026-10-01T08:58:30.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Create a team notification

POST /v1/notifications

Accepts an ordinary business notification as a durable operation; the server validates current lead ownership, routing and recipient access before saving the card and its existing delivery outboxes together. Exact recent chat alerts may merge without a second delivery. Reuse the same Idempotency-Key after an uncertain acknowledgement; technical/system alerts remain private.

Scopes
notifications:write
Rate limit
write

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

  • Idempotency-Key string Required 1–255 chars Pattern ^[\x21-\x7e]+$

    One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.

Request body

Create a team notification; the optional missed-appointment report requires its separate explicit incident scope. Phone numbers, channel/source identity, recipients, technical errors and operation ids cannot be supplied.

  • note string Required 1–5000 chars

    Business notification text, up to 5,000 characters; it must not be blank.

  • title string 1–200 chars

    Optional notification delivery title.

  • lead_id string ID prefix lead_…

    Optional current lead belonging to the selected team.

  • department_id string 1–128 chars

    Existing business department routing key. An unavailable department follows the team’s current fallback route.

  • notify boolean

    Queue the team’s configured delivery plan; defaults to true. Delivery is not promised by acceptance.

  • handoff_reason string

    Explicit customer report that the team missed a promised call or appointment. Requires notifications:incidents:write; opens a canonical human incident or records an unlinked alert, never attendance or resolution.

    Value
    • missed_team_appointment
  • status string

    Initial inbox status; defaults to new.

    Possible values
    • new
    • archived

Returns

Returns an Operation object.

Errors

+ 12 common errors

POST /v1/notifications
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/notifications' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID" \
  -H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
  -H "Content-Type: application/json" \
  --data '{"note": "Please follow up on the proposal.", "notify": false}'
Response · 202JSON
{
  "object": "operation",
  "id": "op_m3yGe1tkVy6hn3m9LH9m7e640wg0O",
  "status": "queued",
  "endpoint": "notifications.create",
  "created_at": "2026-10-01T09:30:00.000Z",
  "updated_at": "2026-10-01T09:30:00.000Z",
  "result": null,
  "error": null
}

Get a notification

GET /v1/notifications/{id}

Returns one business notification by its opaque id, including its summary. A foreign, personal, excluded or removed notice answers 404 resource_missing. This endpoint never changes its status.

Scopes
crm:read
Rate limit
Read

Path parameters

  • id string Required ID prefix ntf_…

    The notification's public id.

Returns

Returns a Notification object.

Errors

+ 12 common errors

GET /v1/notifications/{id}
curl 'https://api.totemstudio.ai/v1/notifications/ntf_m3mtwDFyaDSKmhf9rg7Ps201S8Jc4' \
  -H "Authorization: Bearer $TOTEM_API_KEY"
Response · 200JSON
{
  "id": "ntf_m3mtwDFyaDSKmhf9rg7Ps201S8Jc4",
  "object": "notification",
  "livemode": false,
  "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
  "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "call": null,
  "conversation": "conv_m3GhGjRHmFbww1g10oqOp7j3gWqPJ",
  "summary": "Alex requests a call from a person about the appointment.",
  "status": "new",
  "source": "chat",
  "handoff_reason": null,
  "created_at": "2026-10-01T08:58:00.000Z",
  "version": 1,
  "updated_at": "2026-10-01T08:58:30.000Z"
}

The Notification object

A business notification, including its summary and linked lead, call or conversation. Personal notes and technical alerts are excluded.

Attributes

  • id string ID prefix ntf_…

    Public id of the record.

  • object string

    Always notification.

  • livemode boolean

    true for real data; false in example data.

  • team string ID prefix team_…

    The team this record belongs to.

  • lead string Nullable ID prefix lead_…

    The associated lead, or null when none is linked or its public id is not captured yet.

  • call string Nullable ID prefix call_…

    The associated call, or null.

  • conversation string Nullable ID prefix conv_…

    The associated conversation, or null.

  • summary string Nullable ≤ 10000 chars

    The stored business notification text, trimmed and limited to 10,000 characters; null when blank. It can contain personal data and a source summary already copied into the notice. The API does not independently read or export message content, transcripts, call summaries, lead notes or technical errors.

  • status string Nullable

    new, read or archived; null for an unknown stored status. Reading the API never marks a notice read.

    Possible values
    • new
    • read
    • archived
  • source string

    The business source: call, chat, reminder, task or manual (also used for an absent source). Unknown and technical sources are excluded.

    Possible values
    • call
    • chat
    • reminder
    • task
    • manual
  • handoff_reason string Nullable

    The recorded handoff reason, or null. No reason is inferred from the summary.

    Possible values
    • missed_team_appointment
  • created_at string Nullable Format date-time

    When the notification was created in Totem (UTC), or null.

  • version integer Range ≥ 1

    Increases every time one of the record's exported fields changes. Apply a change only when its version is greater than the one you hold.

  • updated_at string Format date-time

    When Totem recorded this version (UTC). It is not the time the business event happened.

Notification · exampleJSON
{
  "id": "ntf_m3mtwDFyaDSKmhf9rg7Ps201S8Jc4",
  "object": "notification",
  "livemode": false,
  "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
  "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "call": null,
  "conversation": "conv_m3GhGjRHmFbww1g10oqOp7j3gWqPJ",
  "summary": "Alex requests a call from a person about the appointment.",
  "status": "new",
  "source": "chat",
  "handoff_reason": null,
  "created_at": "2026-10-01T08:58:00.000Z",
  "version": 1,
  "updated_at": "2026-10-01T08:58:30.000Z"
}

The NotificationReceipt object

Minimal notification receipt without its content, recipients or internal source references.

Attributes

  • object string

    Always notification_receipt.

  • id string ID prefix ntf_…

    Opaque notification id bound to its team and incarnation.

  • handoff object May be absent

    Present only for an explicitly authorized incident report; it never asserts verified attendance or delivery.

  • status string

    Notification status recorded by the operation.

    Possible values
    • new
    • archived
NotificationReceipt · exampleJSON
{
  "object": "notification_receipt",
  "id": "ntf_m3mtwDFyaDSKmhf9rg7Ps201S8Jc4",
  "status": "new"
}

API version 1.0.0