List chats
Returns summaries of the chats an agent has access to. Specifics
Request
<filter_type> values
<filter_type> values
There’s only one value allowed for a single property.
Request
Response
List threads
Returns threads the current agent has access to in a given chat. Specifics
Request
Response
Request
Response
Get chat
Returns a thread the current agent has access to in a given chat. Specifics
Request
Response
Request
Response
List archives
Returns a list of the chats an agent has access to. Together with a chat, the events of one thread from this chat are returned. The list classification is based on threads — one chat per thread. The same chat may appear on the list several times, each time with a different thread. The returned chat is a complete object, not only a chat summary. Specifics
Request
<properties_filter_type> values
<properties_filter_type> values
There’s only one value allowed for a single property.
<filter_type> values
<filter_type> values
| Value | Type | Notes | | --- | --- | --- | |
exists | bool | | |
values | type[] | | | exclude_values | type[] | | |
require_every_value | bool | If true, returns only chats that have all
elements passed in values or exclude_values. |<form> fields
<form> fields
| Field | Type | Notes | | --- | --- | --- | |
type | string | pre_chat
or post_chat. | | answer_id | string | |<event_type_filter_type> values
<event_type_filter_type> values
| Value | Type | Notes | | --- | --- | --- | |
values | string[] | An
array of Event types. | | exclude_values | string[] | An array of Event
types. | | require_every_value | bool | |<greetings_filter_type> values
<greetings_filter_type> values
| Value | Type | Notes | | --- | --- | --- | |
from | string | Date & time
in RFC 3339 format with microsecond precision. | | to | string | Date &
time in RFC 3339 format with microsecond precision. | | exists | bool | |
| values | int[] | An array of greeting IDs. | | exclude_values |
int[] | An array of greeting IDs. | | groups.values | int[] | An array
of group IDs. | | groups.exclude_values | int[] | An array of group IDs. |<agent_response_filter_type> values
<agent_response_filter_type> values
| Value | Type | Notes | | --- | --- | --- | |
exists | bool | | | first
| bool | Modifier that makes other agent_response filters apply only to
agents’ first response. | | agents.values | string[] | An array of agent
IDs. | | agents.exclude_values | string[] | An array of agent IDs. | |
groups.values | int[] | An array of group IDs. | | groups.exclude_values
| int[] | An array of group IDs. |Request
Response
Start chat
Starts a chat. Authors (except the requester) of all initial events must be listed in theusers field. The default visibility of both events and users is all and cannot be changed. The method updates the requester’s events_seen_up_to as if they’ve seen all chat events.
Specifics
Request
Response
Request
Response
Resume chat
Restarts an archived chat. Authors (except the requester) of all initial events must be listed in theusers field. The default visibility of both events and users is all and cannot be changed. The method updates the requester’s events_seen_up_to as if they’ve seen all chat events.
Specifics
Request
Response
Request
Response
Deactivate chat
Deactivates a chat by closing the currently open thread. Sending messages to this thread will no longer be possible. The requester must be present on the list of chat users. Override this by settingignore_requester_presence.
Specifics
Request
No response payload.
Request
Response
Follow chat
Marks a chat as followed. All changes to the chat will be sent to the requester until the chat is reactivated or unfollowed. Chat members don’t need to follow their chats — they receive all chat pushes regardless of their follower status. Specifics
* Not sent when the requester already follows the chat or is a chat member.
Request
No response payload.
Request
Response
Unfollow chat
Removes the requester from the chat followers. After that, only key changes to the chat (liketransfer_chat or close_active_thread) will be sent to the requester. Chat members cannot unfollow the chat.
Specifics
Request
Response
Request
Response