This endpoint allows you to search for existing chats within your tenant.

Note:
The /chats/search endpoint is applicable only for v3.0 rest APIs. So, please consider the below base URL:
https://refer-base-url-sub-domains.imi.chat/v3.0

Supported Params and Operators

Param NameOperator
statuseq,not_eq
created_ateq,lt,gt,lte,gte
updated_ateq,lt,gt,lte,gte
channeleq
tageq
assigneeeq
facebook_psideq
twitter_ideq
email_ideq
mobileeq
livechat_ideq
abc_user_ideq
whatsapp_mobile_numbereq
intent (Applicable to ABC channel)eq
group (Applicable to ABC channel)eq

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
3114400Request body not provided

Check Content-Type header
3115400Request is invalid
3445400Provided filtration parameter: <param_name> is not valid
3446400Provided operator for filtration parameter: <param_name> is not valid
3447400Provided condition is not valid
3451400Search query request format is not valid
4303400Invalid input value:'{0}' provided for filtration parameter:'{1}'
3454500Chat list could not be retrieved
Language