Chats
Manage chats
Retrieve chat details
client.chats.retrieve(stringchatID, ChatRetrieveParams { maxParticipantCount } query?, RequestOptionsoptions?): Chat { id, accountID, network, 21 more }
GET/v1/chats/{chatID}
Create a chat
client.chats.create(ChatCreateParams { accountID, participantIDs, type, 2 more } body, RequestOptionsoptions?): ChatCreateResponse { chatID, status }
POST/v1/chats
Start a direct chat
client.chats.start(ChatStartParams { accountID, user, allowInvite, messageText } body, RequestOptionsoptions?): ChatStartResponse { chatID, status }
POST/v1/chats/start
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, network, 21 more } >
GET/v1/chats/search
Archive or unarchive a chat
client.chats.archive(stringchatID, ChatArchiveParams { archived } body?, RequestOptionsoptions?): void
POST/v1/chats/{chatID}/archive
Update chat
client.chats.update(stringchatID, ChatUpdateParams { description, draft, imgURL, 6 more } body?, RequestOptionsoptions?): Chat { id, accountID, network, 21 more }
PATCH/v1/chats/{chatID}
Mark a chat as read
client.chats.markRead(stringchatID, ChatMarkReadParams { messageID } body?, RequestOptionsoptions?): Chat { id, accountID, network, 21 more }
POST/v1/chats/{chatID}/read
Mark a chat as unread
client.chats.markUnread(stringchatID, ChatMarkUnreadParams { messageID } body?, RequestOptionsoptions?): Chat { id, accountID, network, 21 more }
POST/v1/chats/{chatID}/unread
Notify anyway
client.chats.notifyAnyway(stringchatID, ChatNotifyAnywayParamsbody?, RequestOptionsoptions?): Chat { id, accountID, network, 21 more }
POST/v1/chats/{chatID}/notify-anyway
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(stringreactionKey, ReactionDeleteParams { chatID, messageID } params, RequestOptionsoptions?): ReactionDeleteResponse { chatID, messageID, reactionKey, success }
DELETE/v1/chats/{chatID}/messages/{messageID}/reactions/{reactionKey}