Chats
Manage chats
Retrieve chat details
client.chats.retrieve(stringchatID, ChatRetrieveParams { maxParticipantCount } query?, RequestOptionsoptions?): Chat { id, accountID, participants, 9 more }
GET/v1/chats/{chatID}
Create or start a chat
client.chats.create(ChatCreateParams { accountID, allowInvite, messageText, 5 more } body, RequestOptionsoptions?): ChatCreateResponse { chatID, status }
POST/v1/chats
List chats
client.chats.list(ChatListParams { accountIDs, cursor, direction } query?, RequestOptionsoptions?): CursorNoLimit<ChatListResponse { preview } >
GET/v1/chats
Search chats
client.chats.search(ChatSearchParams { accountIDs, cursor, direction, 9 more } query?, RequestOptionsoptions?): CursorSearch<Chat { id, accountID, participants, 9 more } >
GET/v1/chats/search
Archive or unarchive a chat
client.chats.archive(stringchatID, ChatArchiveParams { archived } body?, RequestOptionsoptions?): void
POST/v1/chats/{chatID}/archive
Models
ChatsReminders
Manage reminders for chats
Create a chat reminder
client.chats.reminders.create(stringchatID, ReminderCreateParams { reminder } body, RequestOptionsoptions?): void
POST/v1/chats/{chatID}/reminders
Delete a chat reminder
client.chats.reminders.delete(stringchatID, RequestOptionsoptions?): void
DELETE/v1/chats/{chatID}/reminders
ChatsMessages
Manage chat messages
ChatsMessagesReactions
Manage message reactions
Add a reaction
client.chats.messages.reactions.add(stringmessageID, ReactionAddParams { chatID, reactionKey, transactionID } params, RequestOptionsoptions?): ReactionAddResponse { chatID, messageID, reactionKey, 2 more }
POST/v1/chats/{chatID}/messages/{messageID}/reactions
Remove a reaction
client.chats.messages.reactions.delete(stringmessageID, ReactionDeleteParams { chatID, reactionKey } params, RequestOptionsoptions?): ReactionDeleteResponse { chatID, messageID, reactionKey, success }
DELETE/v1/chats/{chatID}/messages/{messageID}/reactions