Spunto CMS
The API

Notifications

The inbox — what notifies whom (assigned, mentioned, commented, replied), how to mention someone, and the routes that list, count and mark notifications read.

Something happened that concerns you: someone assigned you a card, mentioned you, commented on a card you follow, or replied in a discussion you wrote in. That is a notification. In the app, they are in Inbox, in the sidebar under the workspace overview, with the number of unread ones next to it. Clicking one opens its card and marks read everything about that card.

Notifications are personal and belong to a workspace: you see yours, here, and nobody else's.

What notifies whom

typeYou are notified when…
assigneda person or multi_person property of a card gains you — when it is created with you in it, edited, or bulk-edited. Being removed notifies nobody.
mentionedsomeone mentions you in a card's body, or in a comment. A mention in a body notifies you once per card: the editor saves as you type, and a mention erased then retyped does not ring twice.
repliedsomeone replies in a discussion you wrote in.
commentedsomeone comments on a card you created, or that you are in a person property of.
notifiedan automation or a button sent you a message — it is in message.
  • Never for your own actions. "You" is a person — your session, or an AI assistant acting on your behalf.
  • An API key or an installed app notifies like anyone. When the sync key assigns its own creator, the creator is notified, "key “sync” added you to “Reviewer”": a key is an identity of the workspace, not the person who created it.
  • One notification per person per change, the strongest reason wins: mentioned, then replied, then commented, then assigned. A comment that mentions you on a card you are assigned to is one mentioned.
  • What notifies nobody: an import (a source replayed is not activity), a duplicated card (the copy assigns and mentions nobody new), a reaction, and a change made by nobody (the seed).

Mentioning someone

  • In a body, a span carries the member's user id — { "text": "@Camille", "person": "<userId>" }. In the editor, @ proposes members first, then cards. Details.
  • In a comment, which is Markdown: [@Camille](user:<userId>). In the app, @ in the comment box proposes the members.

Either way the id must be a member of the workspace, or the write is refused (400). Only new mentions are checked: a text that names someone who has since left keeps saving. Member ids come from GET /workspaces/{id}/members.

Reading

GET /workspaces/{workspaceId}/notifications?unread=true&limit=30&cursor=…
GET /workspaces/{workspaceId}/notifications/count

A NotificationPage: rows, most recent first, a nextCursor (keyset — pass it back as cursor), and unread, your unread count. Each notification carries:

  • type — an open string: treat an unknown value as a generic notification, more may come;
  • actor — who, frozen at the time (kind, label, and userId when it is a person): "Camille", "key “sync”", "app “GitHub”";
  • item — the card as it is now: id, key, title, icon, homeCollectionId (where to open it);
  • commentId and excerpt — the comment and its first characters, as it reads now, for a comment notification;
  • fieldName — the property that gained you, for assigned;
  • createdAt, readAt (null while unread), and eventId, the journal event it comes from.

The count stops at 100 — show "99+". A card in the trash keeps its notifications to itself until it is restored; deleting it permanently, or deleting a comment, deletes them. Leaving the workspace deletes yours.

Marking read

PUT  /workspaces/{workspaceId}/notifications/{notificationId}/read  { "read": true }
POST /workspaces/{workspaceId}/notifications/read-all               { "itemId"?: "…" }

Both return your new unread count, { "unread": n }. read: false marks a notification unread again; marking read twice keeps the first readAt. read-all with an itemId marks read only the notifications about that card — what opening it from the inbox does.

Who can call these routes

A person. Any role — a viewer is notified and reads their inbox. A session works, and so does an AI assistant connected on someone's behalf (items:read to list, items:write to mark read). An API key or an installed app gets 403: they cause notifications, they do not receive any.

Events

Notifications are written in the same transaction as the journal event they come from: a notification exists if and only if the change was committed. They emit no event of their own, and do not go out by webhook — an integration that wants to tell someone listens to item.* and comment.* itself.

What is not there yet — email, push, reminders — is listed in limits.

On this page