This endpoint fetches you the list of all chats within your tenant sorted in descending order of (created_at) timestamp

Response Body Params:

Param NameDescription
status_codeDenotes the status of the response. Detailed guide can be found here
descriptionStates the description of the status_code. Gives you information about the success/error
responseContains details of the current resource fetched/updated/created

📘

Note

This endpoint is paginated response and retrieves 10 records at a time. To access any page you can append page as a query param to the URL

Chat List OBJECT

ParameterData TypeDescription
chat_idstringUnique identifier of a chat
alias_idstringExternal ID that can be used to reference a chat
created_atdatetime - UTC FormatTimestamp when chat was created
updated_atdatetime -UTC FormatTimestamp when chat was last updated
statusenumCurrent status of the chat. Possible Values:
- queued

- picked

- onhold

- closed
channelenumChannel on which chat has been created:
- sms

- facebook

- twitter

- livechat

- email

- abc

- whatsapp

- api
assetAsset OBJECTAn object containing the details of the channel asset that the chat has been created on
customer_idstringUnique identifier of the end-customer
destination_idstringThe destination ID of the end-customer being addressed based on the channel

- SMS - Mobile No

- Facebook - PS ID

- Twitter - Twitter ID

- Email - Email ID

- API - User ID

- Livechat - Livechat ID

- Apple Business Chat - ABC Opaque User ID

- WhatsApp Business - WhatsApp Mobile Number
assigneestringLogin ID of the user the chat is currently assigned to
flagstringFlag currently applied on a chat
tagARRAYArray of tags currently applied on a chat
other_detailsOBJECTContains additional information linked to a chat as Key Value Pairs

Asset OBJECT

ParameterData TypeDescription
idintegerUnique identifier of the channel asset based on the channel:

- SMS - Longcode

- Facebook - Page ID

- Twitter - Owner ID

- Email - Business Email ID (From Address)

- API - Service Key

- Livechat - App ID

- Apple Business Chat - Service Key

- WhatsApp Business - Service Key
namestringName of the Asset

📘

Note

Please reach out to your Account Manager/Customer Success Representative/Support Team for asset details of the following channels:

  • Twitter

  • Livechat

  • Apple Business Chat

  • WhatsApp

Response Codes

status_codeHTTP StatusDescription
4305200The list of chats retrieved successfully
2002400Invalid header param - could not find mandatory header parameters
2003400Invalid Access Token
2004401Access Token expired
2007500Internal Server Error
2010404Could not find details of team based on the teamid passed in the header
2099405Method not allowed
3454500Chat list could not be retrieved
Language