Skip to main content
This document contains a reference of data structures available in the Customer Chat API. Here, you can review the object fields, as well as sample responses for the event, user, and other common structures. The reference applies both to the Web and RTM APIs.

Events

One of the data structures are events. They are sent to a chat via the send_event method. Apart from events, there are also Properties, Users, and Other common data structures. These are the available event types:

File

File event indicates about a file being uploaded. Request Response
Sample File in response

Form

The Form event contains an empty form to be sent in the chat. It doesn’t matter how the form is configured or what fields it has — it can be any event of type form. Currently, the Form events are not supported natively in Text, but you can leverage this feature in a custom chatting solution. Request Response
Sample Form in response

Filled form

Filled form event contains data from a form (prechat or postchat survey). Request Response
Sample Filled form in response

Message

Message event contains text message to other chat users. Request Response
Sample Message in response

Rich message

Rich message event contains rich message data structure. Request Response
Sample Rich message in response

Custom

Custom event is an event with customizable payload. Request Response
Sample Custom event in response

System message

System message event is a native system event sent in specific situations. Request Response
Sample System message in response

System

System event is an extension and a future replacement for System message. Similarly, it is a native system event sent in specific situations. Request It is not possible to send a System event in API version 3.6. Response
Sample System event in response

Users

Users are another important data structure. Within this data structure type, we can distinguish:

Customer

Sample Customer data structure

Agent

Sample Agent data structure

Other common structures

Apart from Events and Users, there are also other common data structures you might work with. Those are:

Access

Sample Access data structure

Chats

Sample Chat data structure

Chat summaries

Chat summary is similar to the Chat data structure. The difference is that Chat contains a thread object, while Chat summary includes last_event_per_type.
Sample Chat summary data structure

Forms

A template of a prechat, postchat, or a ticket form.
Sample Form data structure

Form fields

A component of the Form event.
Sample Form fields

Filled form fields

A component of the Filled form event.
Sample Filled form fields

Properties

Properties are key-value storages. They can be set within a chat, a thread, or an event. You can read more about properties in the Configuration API document.
Sample Properties data structure

Threads

Sample Thread data structure