Skip to main content
Fetch Conversation
Returns a Conversation object with the caller’s membership row and active member count included. The caller must be a member of the conversation, current or former; for a space chat, an active member of the space can fetch it before opening it for the first time. A space chat answers 403 chat/not-a-member to anyone who isn’t an active member of its space or can’t see it (visibility), even if they opened it before: a pending, rejected or banned member, and someone who left or was removed from the space. Deleting their own messages, leaving the conversation and muting it stay allowed: they need the conversation membership and sight of the space, not an active space membership.

Path Parameters

string
required
The ID of the conversation to fetch.

Query Parameters

string
Service key only, and required with one: the user this request acts as. Must be a member of the conversation. A user token always acts as its own user and must not send it (400 chat/acting-user-not-allowed).

Response

Returns a Conversation with two additional fields:
ConversationMember | null
The calling user’s membership row for this conversation. null if the user has no membership record.
number
Number of currently active members.

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.