Skip to main content
Add Member
Adds a user to a group conversation. Only group conversations support explicit member management — this endpoint returns a 400 for direct and space conversations. The caller must be an active admin of the conversation. The target user must belong to the same project. If the user was previously a member who left or was removed, they are re-activated as a member (their isActive is set back to true, lastReadAt is reset to now, and any role they held before, such as admin, is not restored).

Path Parameters

string
required
The ID of the conversation.

Body Parameters

string
required
The ID of the user to add. Must belong to the same project.
string
Service key only, and required with one: the user this request acts as. Must be an active admin 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 the ConversationMember record for the user: HTTP 201 when this call made them a member (a first-time member, or one re-activated after leaving or being removed), 200 when they were already an active member and nothing changed.

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.
A service key sent no actingUserId.
The acting user isn’t an active member of the conversation.
The acting user is a member of the group without the admin role.