Skip to navigation

List or search conversations

Returns the account’s Conversations, most recently active first. Search by the end user’s mobile number and filter with the query parameters. Use a conversation’s id to get its messages.

Authentication

apiKeystring
API Key authentication via header

Query parameters

mobile_numberstringOptional

The end user’s mobile number, or part of it (1–100 characters), e.g. 919800000001 or 0001. Also matches the contact name.

sender_idstringOptional
Your business number or sender address. Without it, conversations of every sender ID of the account.
statusstringOptionalDefaults to open

open, closed or open,closed. Default: open.

channelstringOptional
sms, whatsapp, email, facebook, instagram, ...
is_sentenumOptionalDefaults to 0

0: inbox conversations; 1: conversations with only sent messages. Default: 0.

Allowed values:
pageintegerOptionalDefaults to 0

Page number, from 0 to 99999. Default: 0 (the newest page).

page_sizeintegerOptionalDefaults to 20

Items per page, from 1 to 100. Default: 20.

user_idstringOptional
Portal user ID, user name or Salesforce user ID.

Response

Retrieved
idintegerOptional
Conversation ID. Pass it to Get conversation messages.
sender_idstringOptional
Your business number or sender address in this conversation.
mobile_numberstringOptional

The end user’s number (their address for email).

contact_namestringOptional
The contact's name when known, otherwise the number.
contact_phonestringOptional
The end user's number without the country code.
country_codestringOptional
The end user's country code, e.g. 91.
channelstringOptional
sms, whatsapp, email, ...
statusenumOptional
Allowed values:
last_message_idintegerOptional
ID of the latest message.
last_message_textstringOptional
Text of the latest message.
last_message_directionenumOptional

IN (from the end user) or OUT (from you).

Allowed values:
last_sent_textstring or nullOptional
Text of the latest outgoing message.
unread_message_countintegerOptional
Incoming messages not read yet.
modified_atstringOptional

Time of the latest activity, YYYY-MM-DD HH:MM:SS.

created_onstringOptional

When the conversation started, YYYY-MM-DD HH:MM:SS.

Errors

400
Bad Request Error
405
Method Not Allowed Error
422
Unprocessable Entity Error
502
Bad Gateway Error
504
Gateway Timeout Error