Skip to main content
Returns the contact’s visits to the chat widget, oldest first. A session holds what the browser sent: the page, the IP address, the browser and the language. The chat text itself is in the ticket’s messages, see List messages.

Authentication

Bearer token in the Authorization header. A read-only key is enough. See Authentication.

Path parameters

string
required
Contact ID, usually prefixed with con_.

Query parameters

integer
default:"20"
Number of sessions per page. Range 1 to 100.
string
Opaque cursor from the previous response’s nextCursor. See Pagination.

Response

Returns a list envelope containing Session objects. The list is empty for a contact who never used the chat widget.

The Session object

string
Unique identifier.
string
Always "session".
string
The contact’s ID.
string
The chat channel the visit was on.
string | null
The page the widget was opened on, if known.
string | null
The visitor’s IP address, if stored.
string | null
The browser’s User-Agent header, if stored.
string | null
The browser’s Accept-Language header, if stored.
string
ISO 8601 UTC timestamp of when the session started.
string
ISO 8601 UTC timestamp of the visitor’s latest activity in the session.

Examples

List a contact’s sessions

Response

Error responses

See Errors for the full error envelope reference.