Add Participants
Add one or more members to an existing conversation. A direct conversation is promoted to a group conversation the first time someone new is added.
Authentication: Required — Bearer token; the caller must already be a participant of the conversation.
Request body:
recipient_ids(optional) — Array of user IDs to addrecipient_id(optional) — Single user ID; only used whenrecipient_idsis absent or empty
One of the two is required. Ids are de-duplicated and the caller’s own id is always stripped from the list.
Behavior:
- A
directconversation is promoted togroupwhen a participant is added - Recipients who are already participants are skipped, so repeat calls are idempotent
- Segment conversations cannot be modified — their membership follows the segment
- Every recipient must pass the app’s direct-message policy
Message history: Governed by the app setting chat_history_for_new_participants (full by default, or from_join). When it is from_join — and also whenever a direct conversation is promoted to group — each new participant is stamped with metadata.history_from, and only sees messages created at or after that timestamp. Under full, new participants see the entire backlog.
Response: data — The conversation list item (same shape as the segment conversation response), reloaded after the change.
Side effects: Creates a ConversationParticipant for each added recipient; may change conversation_type from direct to group.
Errors:
403—Adding people to chats is turned off for this community(the app settingchat_add_participants_enabledis off)403—Segment chats follow their segment membership403—Not authorized(the caller is not a participant)403—Direct messages are not allowed in this community(a recipient fails the direct-message policy)404—Conversation not found404—Recipient not found(one or more ids do not resolve to a user in this app)422—recipient_id is required(no usable recipient ids in the body)
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.