Open a Direct Message Between Two Users
A 2-step recipe with Sendbird. We can help you get access.
Recipe · 2 steps
Open a Direct Message Between Two Users
with Sendbird
Start or reuse a 1:1 channel and post the first message.
- Create a distinct group channel for the two users so the same pair always maps to one conversation.
- Send the first text message from the sender into the channel.
What you'll need to have ready
- apiToken: Sendbird Api-Token from the dashboard.
- senderId: User ID of the message sender.
- recipientId: User ID of the message recipient.
- message: Text content of the first message.
For your developer
Arazzo workflow sendbird:direct-message-between-users, 2 operations: createGroupChannel → sendMessage. Specs on APIs.io.