API Reference

🐙 Intro

Welcome to the documentation for the Chat feature of our API. This feature provides functionality for accessing specific chat details and sending pre-defined template messages. You can use these endpoints to retrieve information about individual chats and send template messages to contacts.

🔒 Authentication

To access any of the contacts feature endpoint, you must provide a valid API key in all your requets.

To know more about out authentication methods you can access the Authentication document.

🌐 Endpoints

📔 Filters, Pagination and Sorting

To filter chats you can use the GET /chat endpoint with the filters based on specific search criteria and use the pagination and sort to organize your result as you wish.

📗 Available Filters

PropertyFormatDescription
numbernumberChat identification number
createdAtdateChat creation date
updatedAtdateChat last updated date
channelstringChannel where the chat was started
contact.phoneContacts.numberstringPhone number of the contact who initiated the chat
contact.namestringName of the contact who initiated the chat
contact.emailstringEmail of the contact who initiated the chat
statusstringStatus of the chat
withBotbooleanIndicator if a bot was used in the chat
group.idstringGroup identification
agent.idstringAgent identification

⚠️ When a date is not provided for filtering chats, the search will be limited to chats created one month ago.

⚠️ The dates provided in the filter cannot be greater than one year.

The GET /chat/{id}/messages works only with pagination parameter

To know more about how to use these filtering and organization tools look at these documents:

You can use the sorting (sort), pagination (page and limit), and filtering (filters) features together to tailor your API queries and retrieve precisely the data you need.