Group chats and 1-on-1 chats both work in the same way. TalkJS uses the same underlying concept, the conversation, for both, so you can add more users to a 1-on-1 chat and it will become a group chat.

To add users to a chat, you can use the setParticipant method in the JavaScript SDK, or on mobile you can use the corresponding methods in the React Native or Flutter SDKs.

Alternatively, you can call the Join conversation endpoint in the REST API. You will need your app ID and secret key, which you can find in the Settings tab of the TalkJS dashboard. You'll need to call the REST API from a backend server to avoid exposing the secret key.

You’ve successfully subscribed to TalkJS
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Your link has expired
Success! Check your email for magic link to sign-in.