Skip to content

List the team inbox threads

GET
/notifications/threads
Code sample: Shell / cURL
curl --request GET \
--url 'https://example.com/api/v1/notifications/threads?tab=activity&scope=all&module=tasks&sort=newest' \
--header 'Authorization: Bearer <token>'

One page of the team inbox as the web shows it: one thread per task with its recent comments and events (oldest first, the five newest notifications), how many are unread, whether it is bookmarked, and the page’s unreadCount, moduleFilter and most frequent senders. A notification about anything but a task is a thread of its own. The query takes the web inbox’s own choices: tab (activity, bookmarks, archive, mentioned), the repeatable filter (unread, mentioned, assigned, assignedByMe), from (a member id), module, sort and cursor; unknown parameters return 400. Cursor-paginated: pass nextCursor as cursor for the next page; it is null on the last. A cursor this server did not issue opens the first page, as the web does; this is deliberate and differs from GET /notifications, which answers 400. The inbox is always the caller’s own. A thread about a task the caller no longer reaches carries a null taskId and task, and only the title and text of the notifications the caller was sent. Team members only: other members get 403.

tab

Which tab to read: activity (not archived, the default), bookmarks, archive or mentioned.

string
Allowed values: activity bookmarks archive mentioned

Which tab to read: activity (not archived, the default), bookmarks, archive or mentioned.

filter

Repeatable. Quick filters that narrow the page together: unread, mentioned, assigned (to me) and assignedByMe.

Array<string>
<= 4 items
Allowed values: unread mentioned assigned assignedByMe

Repeatable. Quick filters that narrow the page together: unread, mentioned, assigned (to me) and assignedByMe.

from

Only the notifications this member caused: a member id, as in senders[].id.

string
/^[A-Za-z0-9_-]{1,64}$/

Only the notifications this member caused: a member id, as in senders[].id.

scope

Where the notifications came from: all (the default), projects (tasks and projects) or tickets (client tickets).

string
Allowed values: all projects tickets

Where the notifications came from: all (the default), projects (tasks and projects) or tickets (client tickets).

module

Limits the call to one module, which follows from the notification type: tasks, projects, tickets, sales, time, compliance, orders, invoices, estimates, commissions, team, system.

string
Allowed values: tasks projects tickets sales time compliance orders invoices estimates commissions team system

Limits the call to one module, which follows from the notification type: tasks, projects, tickets, sales, time, compliance, orders, invoices, estimates, commissions, team, system.

sort

Order by each thread’s latest notification: newest (the default) or oldest.

string
Allowed values: newest oldest

Order by each thread’s latest notification: newest (the default) or oldest.

cursor

Opaque token from nextCursor of the previous page. Omit for the first page. A token this server did not issue opens the first page.

string
>= 1 characters <= 512 characters

Opaque token from nextCursor of the previous page. Omit for the first page. A token this server did not issue opens the first page.

A page of the team inbox.

Media typeapplication/json
object
data
required

A page of the team inbox, one thread per task.

object
moduleFilter
required

The modules the caller has notifications in, with their unread counts.

object
module
required

The module the page is narrowed to.

Any of:
string
Allowed values: tasks projects tickets sales time compliance orders invoices estimates commissions team system
options
required
Array<object>
object
label
required
string
module
required
string
Allowed values: tasks projects tickets sales time compliance orders invoices estimates commissions team system
unreadCount
required
integer
>= -9007199254740991 <= 9007199254740991
nextCursor
required

Pass as cursor for the next page; null on the last.

string | null
senders
required

The people who notified the caller most in the last 30 days.

Array<object>
object
avatarUrl
required
string | null
id
required

A member id, usable as from.

string
name
required
string
threads
required
Array<object>

One card of the team inbox.

object
eventCount
required

Notifications in the thread, all of them.

integer
>= -9007199254740991 <= 9007199254740991
isBookmarked
required
boolean
items
required

The thread’s recent notifications, oldest first; not all of notificationIds.

Array<object>

A comment on the thread’s task or an event the member was notified of, oldest first within a thread.

object
actor

Who caused the event, when someone did. Present when kind is event.

Any of:

A person an inbox item names.

object
avatarUrl
required

A loadable URL of the person’s avatar, or null when there is none.

string | null
id
required
string
kind
required

TEAM, CLIENT or AGENT.

string
name
required

First and last name; empty when the person has none.

string
body

Present when kind is event.

string
comment

The comment, present when kind is comment.

object
attachments
required
Array<object>

An image attached to an inbox comment.

object
fileName
required
string
fileUrl
required

A signed URL that opens the file for a limited time.

string
id
required
string
previewUrl
required

A stable URL of an image preview.

string | null
author
required

A person an inbox item names.

object
avatarUrl
required

A loadable URL of the person’s avatar, or null when there is none.

string | null
id
required
string
kind
required

TEAM, CLIENT or AGENT.

string
name
required

First and last name; empty when the person has none.

string
content
required

Comment body as Markdown. Markdown rendering of the stored rich text: mentions appear as @Name links and embeds as plain links to their source URL. The stored HTML is returned alongside in the matching *Html field.

string
contentHtml
required

The stored sanitized HTML behind content.

string
id
required
string
reactions
required
Array<object>

One emoji reaction on an inbox comment.

object
count
required
integer
>= -9007199254740991 <= 9007199254740991
emoji
required
string
memberIds
required

Members who reacted with this emoji.

Array<string>
createdAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
isUnread
required
boolean
kind
required

comment or event. A client that reads a value it does not know shows the item without a body.

string
link

In-app link target, when applicable. Present when kind is event.

string | null
notificationId
required
string
title

Present when kind is event.

string
type

Notification type, one of the NotificationType values. Present when kind is event.

string
key
required

Stable identity of the thread: the id of its task, or of its notification when it has no task.

string
latestAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
link
required

In-app link of the newest notification; null when the thread has a reachable task.

string | null
notificationIds
required

The thread’s newest notification ids, up to 100, for the write operations that take notification ids.

Array<string>
task
required
Any of:
object
commentCount
required
integer
>= -9007199254740991 <= 9007199254740991
isCompleted
required
boolean
number
required
integer
>= -9007199254740991 <= 9007199254740991
project
required
Any of:
object
color
required
string
id
required
string
name
required
string
taskId
required

The task the thread is about. Null for a notification about anything else, and for a task the caller no longer reaches, which keeps only the text the caller was sent.

string | null
title
required

The task’s title, or the newest notification’s.

string
unreadCount
required
integer
>= -9007199254740991 <= 9007199254740991
unreadCount
required

Unread notifications of the caller, in every module.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"data": {
"moduleFilter": {
"module": "tasks",
"options": [
{
"module": "tasks"
}
]
}
}
}

Validation error. Parse failures include field paths and expectations.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.