List inbox conversations
GET/api/partner-gateway/inbox/conversations
Returns the two-way conversations of one inbox section: ACTIVE (the main inbox, the default), ARCHIVED or TRASHED.
- What a conversation is: every message exchanged with one contact on one channel (WhatsApp, RCS and so on), grouped in one thread. It is created automatically when a contact sends an inbound message.
- Sections: without
sectiononly theACTIVEconversations are returned. List the archived ones withsection=ARCHIVEDand the trashed ones withsection=TRASHED. - Filters:
dateFromkeeps the conversations whose last message is at or after an instant,channelIdsrestricts to one or more channels, andunreadOnly=truereturns only the conversations with unread messages. - Sorting:
orderBytakes a field name with a-prefix for descending or+for ascending, such as-lastMessageDatefor newest first. - Unread counter: each conversation carries one. It is cleared by
PATCH /inbox/conversations/{chatId}/read, and also byGET /inbox/conversations/{chatId}/messagescalled withoutidFromandidTo. - Tidying up: move a conversation out of the default list with
PATCH /inbox/conversations/{chatId}/archiveand bring it back withPATCH /inbox/conversations/{chatId}/unarchive.
How conversations change on their own
- After 7 days with no new message the conversation is closed: its
statusbecomesCLOSEDand it stays inACTIVE. - After 30 days closed it is moved to
ARCHIVED. An untouched conversation therefore leaves the default list about 37 days after its last message. - A new inbound message brings an archived or trashed conversation back to
ACTIVE, withstatusOPEN.
Request
Responses
- 200
- 400
- 401
The conversations of the section.
section is not ACTIVE, ARCHIVED or TRASHED, or dateFrom is in none of the accepted formats. The response body names the parameter and the accepted values.
The API key is missing, invalid, or lacks the INBOX operation.