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_number
The end user’s mobile number, or part of it (1–100 characters), e.g. 919800000001 or 0001. Also matches the contact name.
sender_id
Your business number or sender address. Without it, conversations of every sender ID of the account.
status
open, closed or open,closed. Default: open.
channel
sms, whatsapp, email, facebook, instagram, ...
is_sent
0: inbox conversations; 1: conversations with only sent messages. Default: 0.
Allowed values:
page
Page number, from 0 to 99999. Default: 0 (the newest page).
page_size
Items per page, from 1 to 100. Default: 20.
user_id
Portal user ID, user name or Salesforce user ID.
Response
Retrieved
id
Conversation ID. Pass it to Get conversation messages.
sender_id
Your business number or sender address in this conversation.
mobile_number
The end user’s number (their address for email).
contact_name
The contact's name when known, otherwise the number.
contact_phone
The end user's number without the country code.
country_code
The end user's country code, e.g. 91.
channel
sms, whatsapp, email, ...
status
Allowed values:
last_message_id
ID of the latest message.
last_message_text
Text of the latest message.
last_message_direction
IN (from the end user) or OUT (from you).
Allowed values:
last_sent_text
Text of the latest outgoing message.
unread_message_count
Incoming messages not read yet.
modified_at
Time of the latest activity, YYYY-MM-DD HH:MM:SS.
created_on
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
