Skip to main content
List Conversations
Returns a cursor-paginated list of ConversationPreview objects for the acting user. Only active memberships are included. A space chat is included only while the acting user is an active member of its space and can see it (visibility); a pending, rejected or banned member, or someone who left the space, doesn’t get it even while they still hold a conversation membership. Results are ordered by lastMessageAt descending (conversations with no messages appear last), then by createdAt descending, then by id, so every conversation has one place in the order and no page skips or repeats one.
A direct conversation stays out of both parties’ lists until it has a first message, so an opened-but-never-sent DM is invisible to the other side. A DM whose messages were later deleted or removed stays listed, its last message the placeholder. group and space conversations appear from creation.
To fetch a single conversation in this same shape — one that was paginated out, or just created — use Fetch Conversation Preview. Both endpoints are served by the same query, so the shapes stay identical.

Query Parameters

string
Only conversations of these types. Allowed values: direct, group, space, matched exactly (lowercase). Send a comma-separated list (types=direct,group) or repeat the parameter (types=direct&types=group). Omitted or empty, all types are returned. Any other value, such as DIRECT or dm, returns 400 chat/invalid-query.
string
Continue after the last conversation of a previous response. Leave it out on the first request, then pass pagination.nextCursor from the previous response, unchanged. The cursor is opaque: don’t build or parse it. One that can’t be read returns 400 chat/invalid-cursor. Keep types the same across the pages of one list.
number
Number of conversations to return per page. Defaults to 20. Maximum 50.
string
Service key only, and required with one: the user this request acts as. Their conversations are listed. A user token always acts as its own user and must not send it (400 chat/acting-user-not-allowed).

Response

ConversationPreview[]
Array of conversation preview objects. Each item is a Conversation extended with the following fields:
object

Error Responses

A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
Returned when a service key names an actingUserId that isn’t a user in this project.
The request sent userId. On this route the user a service key acts as is actingUserId.With a service key:
With a user token, or with no credentials:
A service key sent no actingUserId.
cursor isn’t a pagination.nextCursor the server gave out.
For example a types value other than direct, group or space, a limit above 50, or cursorCreatedAt (not accepted; pass pagination.nextCursor as cursor). error starts with the field name.