Create
Create a chat
client.chats.create(ChatCreateParams { accountID, participantIDs, type, 2 more } body, RequestOptionsoptions?): ChatCreateResponse { chatID }
/v1/chats
Create a single or group chat on a specific account using participant IDs and optional title.
Parameters
Returns
Create a chat
import BeeperDesktop from '@beeper/desktop-api';
const client = new BeeperDesktop({
accessToken: 'My Access Token',
});
const chat = await client.chats.create({
accountID: 'accountID',
participantIDs: ['string'],
type: 'single',
});
console.log(chat.chatID);
{
"chatID": "!NCdzlIaMjZUmvmvyHU:beeper.com"
}
Returns Examples
{
"chatID": "!NCdzlIaMjZUmvmvyHU:beeper.com"
}