Notifications
Notifications are the messages in a person’s notification bell in OneSuite, such as “tagged you on a task” or “assigned you to manage a lead”. Through the API a person reads their own notifications and unread count, marks one or all of them as read, and reads their notification preferences.
Who can use it
Section titled “Who can use it”Notifications are personal. Every team member, whether a member, a manager or an administrator, can read and mark as read their own notifications in the business the token belongs to; nobody, administrators included, can read or mark anyone else’s. Everyone can read their own notification preferences. Reading another team member’s needs the permission to see team members (view-team-member).
The notification object
Section titled “The notification object”One notification in a person’s notification list.
| Field | Type | Description |
|---|---|---|
id |
string | The notification’s id. Read only. |
type |
string | action (something someone did that involves you) or message. Read only. |
sender |
object | Who caused it, { id, name }, where id is the team member id. id is null when the sender is not a person in this business (for example an automatic notice); the whole object is null when there is no sender at all. Read only. Can be null. |
action |
string | What happened, worded as in the notification list, for example “tagged you on a task:”. null when the notification has no action text. Read only. Can be null. |
subject |
string | The name of the thing it happened to, shown after the action, for example the task’s name. null when there is none. Read only. Can be null. |
link |
string | Where the notification leads in the OneSuite app: a path starting with /business/, to be added to the app’s address. null when it leads nowhere. Read only. Can be null. |
isRead |
boolean | true once the person has read it. Read only. |
createdAt |
datetime | When the notification was sent. Read only. |
updatedAt |
datetime | When the notification last changed; marking it as read changes it. Read only. |
The unread count object
Section titled “The unread count object”How many of the person’s notifications are unread.
| Field | Type | Description |
|---|---|---|
unreadCount |
integer | Number of unread notifications: the number on the bell. Read only. |
The notification preference object
Section titled “The notification preference object”Whether a person is told about one kind of event, by email and in the app.
| Field | Type | Description |
|---|---|---|
event |
string | The event: timesheetSubmitted (a timesheet is submitted for review) or timesheetSentBack (the person’s own timesheet is sent back to them). Read only. |
label |
string | The event’s name as shown in the app’s notification settings. Read only. |
description |
string | Who receives it and when. Read only. |
isEmailEnabled |
boolean | Whether the person is told by email. true unless it has been turned off in the app. Read only. |
isInAppEnabled |
boolean | Whether the person is told in the app. true unless it has been turned off in the app. Read only. |
Endpoints
Section titled “Endpoints”List my notifications
Section titled “List my notifications”Returns the notifications sent to the token’s person in this business, newest first. Read notifications are removed after 30 days, so this is a recent inbox rather than a permanent history. Reading the list never marks anything as read.
GET /v1/notificationsParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page, 1 to 1000. Default 20. |
isRead |
query | boolean | No | false for unread notifications only, true for read ones only. Leave it out for both. |
updatedSince |
query | datetime | No | Only notifications sent or marked as read at or after this moment. Records deleted since then are not reported. |
Rules
- Only notifications sent to the token’s person in this business are listed.
Example request
curl "https://api.onesuite.io/v1/notifications?limit=2" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/notifications?limit=2", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm3f1q8h20091", "type": "action", "sender": { "id": "cl9x2k4m10007", "name": "Tom Becker" }, "action": "tagged you on a task:", "subject": "Homepage copy review", "link": "/business/northwind-studio/project/prj_cl9z1a2b30004?tab=project-kanban&taskId=tsk_cm3f1p0d10002", "isRead": false, "createdAt": "2026-11-19T14:22:05.118Z", "updatedAt": "2026-11-19T14:22:05.118Z" }, { "id": "cm3e8w2k60077", "type": "action", "sender": { "id": "cl9x2k4m10011", "name": "Ana Silva" }, "action": "assigned you to manage a lead:", "subject": "Harbor Logistics", "link": "/business/northwind-studio/crm/lead/led_cm3e8v9q40001?tab=reminders", "isRead": true, "createdAt": "2026-11-18T09:03:41.502Z", "updatedAt": "2026-11-18T10:15:00.927Z" } ], "totalCount": 14, "page": 1, "limit": 2}Get my unread count
Section titled “Get my unread count”Returns how many of the token’s person’s notifications in this business are unread: the number on the notification bell.
GET /v1/notifications/unread-countRules
- Counts only notifications sent to the token’s person in this business.
Example request
curl "https://api.onesuite.io/v1/notifications/unread-count" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/notifications/unread-count", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "unreadCount": 3 }}Get notification preferences
Section titled “Get notification preferences”Returns, for every event a person can be told about, whether they are told by email and in the app, one row per event in the order the app shows them. Without memberId it returns the token’s own preferences. An event nobody has turned off reads as on.
GET /v1/notifications/preferencesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
memberId |
query | string | No | The team member whose preferences to read. Default: the token’s own person. |
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page. Default 20, at most 1000. |
Rules
403whenmemberIdnames another team member and the token’s person does not have the permission to see team members (view-team-member). Reading your own preferences needs no permission.404whenmemberIdis not a team member of this business.
Example request
curl "https://api.onesuite.io/v1/notifications/preferences" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/notifications/preferences", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "event": "timesheetSubmitted", "label": "A timesheet is submitted for review", "description": "Sent to reviewers when someone submits a week of tracked time.", "isEmailEnabled": true, "isInAppEnabled": true }, { "event": "timesheetSentBack", "label": "My timesheet is sent back", "description": "Sent to you when a reviewer returns your week with a reason.", "isEmailEnabled": false, "isInAppEnabled": true } ], "totalCount": 2, "page": 1, "limit": 20}Get a notification
Section titled “Get a notification”Returns one of the token’s person’s notifications. Reading it does not mark it as read; use Mark a notification as read for that.
GET /v1/notifications/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The notification’s id. |
Rules
- Only the token’s person’s own notifications in this business can be read or changed; any other id answers 404, including the same person’s notification in another business.
Example request
curl "https://api.onesuite.io/v1/notifications/cm3e8w2k60077" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/notifications/cm3e8w2k60077", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm3e8w2k60077", "type": "action", "sender": { "id": "cl9x2k4m10011", "name": "Ana Silva" }, "action": "assigned you to manage a lead:", "subject": "Harbor Logistics", "link": "/business/northwind-studio/crm/lead/led_cm3e8v9q40001?tab=reminders", "isRead": true, "createdAt": "2026-11-18T09:03:41.502Z", "updatedAt": "2026-11-18T10:15:00.927Z" }}Mark a notification as read
Section titled “Mark a notification as read”Marks one of the token’s person’s notifications as read and returns it. Marking a notification that is already read is not an error: it is returned unchanged.
POST /v1/notifications/:id/mark-readParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The notification’s id. |
Rules
- Only the token’s person’s own notifications in this business can be read or changed; any other id answers 404, including the same person’s notification in another business.
Example request
curl "https://api.onesuite.io/v1/notifications/cm3f1q8h20091/mark-read" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/notifications/cm3f1q8h20091/mark-read", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm3f1q8h20091", "type": "action", "sender": { "id": "cl9x2k4m10007", "name": "Tom Becker" }, "action": "tagged you on a task:", "subject": "Homepage copy review", "link": "/business/northwind-studio/project/prj_cl9z1a2b30004?tab=project-kanban&taskId=tsk_cm3f1p0d10002", "isRead": true, "createdAt": "2026-11-19T14:22:05.118Z", "updatedAt": "2026-11-20T08:01:12.440Z" }}Mark all notifications as read
Section titled “Mark all notifications as read”Marks every unread notification of the token’s person in this business as read, like “Mark all as read” in the app. Returns the unread count afterwards, which is 0 unless a new notification arrived in the meantime.
POST /v1/notifications/mark-all-readRules
- Having nothing unread is not an error: the answer is 200 with
unreadCount0. - Only the token’s person’s notifications in this business are changed.
Example request
curl "https://api.onesuite.io/v1/notifications/mark-all-read" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/notifications/mark-all-read", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "unreadCount": 0 }}