Skip to main content

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 section only the ACTIVE conversations are returned. List the archived ones with section=ARCHIVED and the trashed ones with section=TRASHED.
  • Filters: dateFrom keeps the conversations whose last message is at or after an instant, channelIds restricts to one or more channels, and unreadOnly=true returns only the conversations with unread messages.
  • Sorting: orderBy takes a field name with a - prefix for descending or + for ascending, such as -lastMessageDate for newest first.
  • Unread counter: each conversation carries one. It is cleared by PATCH /inbox/conversations/{chatId}/read, and also by GET /inbox/conversations/{chatId}/messages called without idFrom and idTo.
  • Tidying up: move a conversation out of the default list with PATCH /inbox/conversations/{chatId}/archive and bring it back with PATCH /inbox/conversations/{chatId}/unarchive.
How conversations change on their own
  • After 7 days with no new message the conversation is closed: its status becomes CLOSED and it stays in ACTIVE.
  • 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, with status OPEN.

Request​

Responses​

The conversations of the section.