Skip to main content
List Conversations
Returns a cursor-paginated list of ConversationPreview objects for the acting user. Only active memberships are included. Results are ordered by lastMessageAt descending (conversations with no messages appear last, ordered by createdAt).
A direct conversation stays out of both parties’ lists until it has a visible last message, so an opened-but-never-sent DM is invisible to the other side. If a DM’s only message is later deleted or moderated away, it drops back out of the list and reappears when either party sends again. 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
The lastMessageAt timestamp of the last item in the previous page. Used for cursor pagination. Omit for the first page. A UTC ISO 8601 timestamp ending in Z, as the response gives it; an offset (+02:00) or no zone returns 400 chat/invalid-query.
string
The createdAt timestamp of the last item in the previous page. Required together with cursor when paginating. A UTC ISO 8601 timestamp ending in Z, as the response gives it; an offset (+02:00) or no zone returns 400 chat/invalid-query.
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:
boolean
Whether more conversations exist beyond this page.

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.
For example a types value other than direct, group or space, a cursor or cursorCreatedAt that isn’t a UTC (Z) datetime, or a limit above 50. error starts with the field name.