Skip to main content
GET
List threads

Query Parameters

Threads of these account links. Repeat the key to match any of several.

Pattern: ^[0-9a-z]+$
platform
string[]

Repeat the key to match any of several.

The platform. Every team can use twitter, linkedin, whatsapp; a team may have others enabled.

contactId
string[]

Threads with these contacts. With accountLinkId, finds the thread between an account and a contact. Repeat the key to match any of several.

Pattern: ^[0-9a-z]+$
view
string

A view's id from List views: lists the threads that view lists, in place of folder. Every other filter narrows it, except includeArchived. A cursor issued for a saved view is invalidCursor once the view changes.

Minimum string length: 1
folder
enum<string>

Defaults to inbox, threads that are neither archived nor requests, leaving out conversations a platform keeps outside the inbox, such as chats with bots. noReply is inbox with awaitingReply=true. requests holds unarchived threads where isRequest is true. archived includes requests. all spans every thread, including chats kept out of the inbox. Every other filter narrows the folder, except includeArchived. Each folder is also a view: inbox, awaitingReply for noReply, requests, archived and all.

Available options:
inbox,
noReply,
requests,
archived,
all
tag
string[]

Threads whose contact has one of these tags. Repeat the key to match any of several.

A tag, by ID or by name. Names match ignoring case and accents. When a value is one tag's ID and another's name, the ID wins.

status
string[]

Threads whose contact has one of these statuses. Repeat the key to match any of several.

A status, by ID or by name. Names match ignoring case and accents. When a value is one status's ID and another's name, the ID wins.

assigneeId
string[]

Threads whose assigneeId, the thread's own assignee or else its contact's, is one of these members. Repeat the key to match any of several.

Pattern: ^[0-9a-z]+$
unassigned
boolean

true keeps threads with no assignee, including through their contact. Not combinable with assigneeId.

campaignId
string[]

Threads these campaigns sent a message in. Campaign sends archive the thread, so pair it with folder=archived, folder=all or includeArchived=true. Repeat the key to match any of several.

Pattern: ^[0-9a-z]+$
unread
boolean

true keeps threads unread for the agent's member, as unread shows them. A thread marked read moments ago may still be listed, with its current unread. Agents only: an API token has no member and gets memberRequired.

awaitingReply
boolean

true keeps threads whose latest activity is inbound, the inbox's No reply.

includeArchived
boolean

true adds the view's or folder's archived threads back, the inbox's With archived. A view that tests archived inside an any-of or a not-group keeps that test. No effect when the scope already includes archived threads.

q
string

Searches profile display names and usernames, the contact's name and the activity preview, with typo tolerance. Lists the best 1,000 matches, following order, not relevance.

Minimum string length: 1
order
enum<string>

Sort direction by inbox order: activity.at, or createdAt for a thread with no activity. A reminder or an accepted message request moves a thread up until its next message, without changing activity.at. Defaults to desc, newest first.

Available options:
desc,
asc
expand
enum<string>[]

Related resources to embed next to their ID field, one path per key, at most 4.

Maximum array length: 4
Available options:
profile,
contact,
accountLink,
assignee
limit
integer

Page size, from 1 to 100. Defaults to 50.

Required range: 1 <= x <= 100
cursor
string

The previous page's nextCursor. Opaque, and valid only with the filters it was issued for.

Response

OK

In inbox order, newest first unless order is asc.

data
object[]
required
nextCursor
string | null
required

Pass it back as cursor, with the same filters, to read the next page. Null on the last page.