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
summaryis the business alert text. It isnullwhen 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.sourceiscall,chat,reminder,taskormanual. Older records with no source read asmanual; unsupported sources are not exported.lead,callandconversationare public ids ornull. Resolve the lead to obtain its contact details; do not infer them from the summary. Older notifications can lack links.handoff_reasonismissed_team_appointmentwhen Totem recorded that reason, otherwisenull. A general request to speak to a person has no guaranteed reason code: the alert's summary states what the person asked.created_atis when the alert was created, ornullwhen not recorded.versionandupdated_atfollow 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 "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.
GET /
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.
Query parameters
limitinteger Range 1–100 Default25Items per page, 1–100. Defaults to 25.
cursorstring 1–512 charsThe
next_cursorof the previous page. Omit it for the first page.leadstring ID prefixlead_…Only the notifications linked to this lead: every item's
leadis this id. A lead of another team, or one that does not exist, matches nothing.statusstringOnly notices with this status. At most one of
leadandstatus.Possible valuesnewreadarchived
Headers
Totem-Teamstring Conditional ID prefixteam_…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 gets400 invalid_request, and a team outside the key gets404 team_not_accessible, as does a request without it once the key reads no team at all.
Returns
Returns a list of Notification objects.
objectstringAlways
list.dataArray<Notification>The items of this page.
has_morebooleantruewhen another page follows: fetch it withnext_cursor, even if this page holds fewer items thanlimit.next_cursorstring NullableOpaque cursor for the next page, or null on the last page. Never parse it.
Errors
- 400
team_requiredTeam required - 403
team_state_restrictedTeam restricted - 403
sector_restrictedSector restricted - 404
team_not_accessibleTeam not accessible - 409
capture_not_readyTeam data is still being prepared - 429
quota_exceededDaily quota exceeded
curl 'https://api.totemstudio.ai/v1/notifications?limit=25' \
-H "Authorization: Bearer $TOTEM_API_KEY" \
-H "Totem-Team: $TOTEM_TEAM_ID"{
"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
}POST /
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.
Headers
Totem-Teamstring Conditional ID prefixteam_…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 gets400 invalid_request, and a team outside the key gets404 team_not_accessible, as does a request without it once the key reads no team at all.Idempotency-Keystring 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.
notestring Required 1–5000 charsBusiness notification text, up to 5,000 characters; it must not be blank.
titlestring 1–200 charsOptional notification delivery title.
lead_idstring ID prefixlead_…Optional current lead belonging to the selected team.
department_idstring 1–128 charsExisting business department routing key. An unavailable department follows the team’s current fallback route.
notifybooleanQueue the team’s configured delivery plan; defaults to true. Delivery is not promised by acceptance.
handoff_reasonstringExplicit 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.
Valuemissed_team_appointment
statusstringInitial inbox status; defaults to new.
Possible valuesnewarchived
Returns
Returns an Operation object.
objectstringAlways operation.
idstring ID prefixop_…Opaque durable operation id.
statusstringDurable operation state; outcome_unknown must be reconciled before repeating the effect.
Possible valuesqueuedrunningsucceededfailedcancelledoutcome_unknown
endpointstringThe original endpoint executed by this operation.
Possible valuestasks.createtasks.completenotifications.createdecision_requests.createdecision_requests.cancelbookings.createbookings.cancelbookings.reschedulebookingPayments.sendLinkmessages.sendmessages.requestInfomessages.prepareReplycalls.startlibrary.sendcatalog.sendquotes.recordOutcomeassistants.run
created_atstring Formatdate-timeWhen this operation was accepted, in UTC.
updated_atstring Formatdate-timeWhen its current state was recorded, in UTC.
resultTaskReceipt | NotificationReceipt | DecisionRequestReceipt | BookingReceipt | BookingPaymentReceipt | MessageReceipt | RequestedInfoReceipt | FirstReplyReceipt | CallStartReceipt | QuoteOutcomeReceipt | AssistantRunReceipt | LibraryDeliveryReceipt | CatalogSendReceipt NullableMinimal public resource receipt after success, otherwise null.
errorobject NullableSafe failure information, or null.
codestringClosed failure code without provider text, task content or credentials.
Possible valuesauthorization_failedconfiguration_missinginput_expiredinvalid_inputresource_missingexecution_failedoutcome_unknown
Errors
- 400
idempotency_key_requiredIdempotency key required - 400
team_requiredTeam required - 403
team_state_restrictedTeam restricted - 403
sector_restrictedSector restricted - 404
team_not_accessibleTeam not accessible - 409
idempotency_key_reusedIdempotency key reused - 409
idempotency_in_progressWrite in progress - 409
outcome_unknownWrite outcome unknown - 409
capture_not_readyTeam data is still being prepared - 429
quota_exceededDaily quota exceeded
# 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}'{
"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 /
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.
Path parameters
idstring Required ID prefixntf_…The notification's public id.
Returns
Returns a Notification object.
idstring ID prefixntf_…Public id of the record.
objectstringAlways
notification.livemodebooleantruefor real data;falsein example data.teamstring ID prefixteam_…The team this record belongs to.
leadstring Nullable ID prefixlead_…The associated lead, or null when none is linked or its public id is not captured yet.
callstring Nullable ID prefixcall_…The associated call, or null.
conversationstring Nullable ID prefixconv_…The associated conversation, or null.
summarystring Nullable ≤ 10000 charsThe 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.
statusstring Nullablenew,readorarchived; null for an unknown stored status. Reading the API never marks a notice read.Possible valuesnewreadarchived
sourcestringThe business source: call, chat, reminder, task or manual (also used for an absent source). Unknown and technical sources are excluded.
Possible valuescallchatremindertaskmanual
handoff_reasonstring NullableThe recorded handoff reason, or null. No reason is inferred from the summary.
Possible valuesmissed_team_appointment
created_atstring Nullable Formatdate-timeWhen the notification was created in Totem (UTC), or null.
versioninteger Range ≥ 1Increases 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_atstring Formatdate-timeWhen Totem recorded this version (UTC). It is not the time the business event happened.
Errors
- 403
team_state_restrictedTeam restricted - 403
sector_restrictedSector restricted - 404
resource_missingResource not found - 409
capture_not_readyTeam data is still being prepared
curl 'https://api.totemstudio.ai/v1/notifications/ntf_m3mtwDFyaDSKmhf9rg7Ps201S8Jc4' \
-H "Authorization: Bearer $TOTEM_API_KEY"{
"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"
}A business notification, including its summary and linked lead, call or conversation. Personal notes and technical alerts are excluded.
Attributes
idstring ID prefixntf_…Public id of the record.
objectstringAlways
notification.livemodebooleantruefor real data;falsein example data.teamstring ID prefixteam_…The team this record belongs to.
leadstring Nullable ID prefixlead_…The associated lead, or null when none is linked or its public id is not captured yet.
callstring Nullable ID prefixcall_…The associated call, or null.
conversationstring Nullable ID prefixconv_…The associated conversation, or null.
summarystring Nullable ≤ 10000 charsThe 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.
statusstring Nullablenew,readorarchived; null for an unknown stored status. Reading the API never marks a notice read.Possible valuesnewreadarchived
sourcestringThe business source: call, chat, reminder, task or manual (also used for an absent source). Unknown and technical sources are excluded.
Possible valuescallchatremindertaskmanual
handoff_reasonstring NullableThe recorded handoff reason, or null. No reason is inferred from the summary.
Possible valuesmissed_team_appointment
created_atstring Nullable Formatdate-timeWhen the notification was created in Totem (UTC), or null.
versioninteger Range ≥ 1Increases 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_atstring Formatdate-timeWhen Totem recorded this version (UTC). It is not the time the business event happened.
{
"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"
}Minimal notification receipt without its content, recipients or internal source references.
Attributes
objectstringAlways notification_receipt.
idstring ID prefixntf_…Opaque notification id bound to its team and incarnation.
handoffobject May be absentPresent only for an explicitly authorized incident report; it never asserts verified attendance or delivery.
reasonstringThe explicit customer-reported incident reason.
Valuemissed_team_appointment
incidentstringCurrent canonical state: pending human attention, already resolved by a human, or only an alert because no source-bound lead exists.
Possible valuespending_humanresolvedlead_missing
statusstringNotification status recorded by the operation.
Possible valuesnewarchived
{
"object": "notification_receipt",
"id": "ntf_m3mtwDFyaDSKmhf9rg7Ps201S8Jc4",
"status": "new"
}