Skip to main content
POST
/
:projectId
/
api
/
v7
/
conversations
/
:conversationId
/
members
Add Member
curl --request POST \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/members \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "<string>"
}
'
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 (their isActive is set back to true and lastReadAt is reset to now).

Path Parameters

conversationId
string
required
The ID of the conversation.

Body Parameters

userId
string
required
The ID of the user to add. Must belong to the same project.

Response

Returns the ConversationMember record for the added user.

Error Responses

{ "error": "Conversation not found.", "code": "chat/not-found" }
{ "error": "Members can only be added to group conversations.", "code": "chat/invalid-type" }
{ "error": "Only group admins can add members.", "code": "chat/not-a-member" }
{ "error": "Target user does not belong to this project.", "code": "chat/invalid-member" }