List Salesforce unread chats
Retrieves a list of unread chats in Salesforce. Displays up to a maximum of one week's worth of unread chats.
HTTP headers
A typical HTTP request to the Calls API includes the following headers:
Resource representation
The following table shows the list of properties in an unread chat resource.
List of unread chat properties
Property name | Type | Description |
---|---|---|
last_agent | object | The information of the agent in the channel. |
channel_url | string | The url of the channel. |
last_agent_activity_ts | string | Return the timestamp of the last message sent by the agent in seconds (UTC). If the last message was sent by the customer, return 0. |
last_customer_activity_ts | string | Return the timestamp of the last message sent by the customer in seconds (UTC). If the last message was sent by the agent, return 0. |
created_at | string | The timestamp of when the tag was created in ISO 8601 format. |
next | string | Given the following list, return a token value if an item exists in the list; otherwise, return null. |
HTTP request
Parameters
The following table lists the parameters that this action supports.
Optional
Parameter name | Type | Description |
---|---|---|
user_type | string | Specifies whether the last user is an agent or a customer for search purposes. Acceptable values are |
no_response_duration | int | Specifies the duration in minutes for which a chat has been left unread. |
token | string | Specifies a page token that indicates the starting index of results to retrieve. If not specified, the index is set to |
limit | int | Specifies the number of bots to return per page. Acceptable values are |
Response
If successful, this action returns a list of unread chats in the response body as shown below.