Create or start a chat
client.chats.create(ChatCreateParams { accountID, allowInvite, messageText, 5 more } body, RequestOptionsoptions?): ChatCreateResponse { chatID, status }
POST/v1/chats
Create a single/group chat (mode='create') or start a direct chat from merged user data (mode='start').
Parameters
Returns
Create or start a chat
import BeeperDesktop from '@beeper/desktop-api';
const client = new BeeperDesktop();
const chat = await client.chats.create({ accountID: 'accountID' });
console.log(chat.chatID);{
"chatID": "!NCdzlIaMjZUmvmvyHU:beeper.com",
"status": "existing"
}Returns Examples
{
"chatID": "!NCdzlIaMjZUmvmvyHU:beeper.com",
"status": "existing"
}