REST API
Object Types
Visitor
A Visitor represents a person connected through the UserView SDK who is available to co-browse with.
Attributes
Attribute name | Type | Description |
---|---|---|
| Datetime | The first time the Visitor was seen. |
| String | Your public API key. |
| String | The name of the browser used by the Visitor (e.g. |
| String | The call identification (used for the Agent's personal link). |
| String | The name or brand of the device (e.g. iPhone). |
| String | The category of device the Visitor is connecting from. It will be one of |
| String | The Visitor's email. |
| Pageview[] | If the |
| String[] | A list of |
| String | The auto integration we have performed on this Visitor. This will be set to the live chat system you have installed on the page last visited by the Visitor. |
| String | The IP address the Visitor last connected from. |
| Boolean | A boolean describing whether the Visitor is currently screen sharing with someone. |
| Boolean | A boolean describing whether the Visitor is currently connected to UserView (and available for screensharing). |
| Boolean | A boolean describing whether the Visitor's browser supports Userview. |
| Boolean | A boolean describing if the Visitor is waiting for a call from the agent. |
| Boolean | A boolean describing whether the Visitor has has configured UserView through the Javascript API in a way that could conflict with the account's general settings. |
| Datetime | A timestamp of the last time the Visitor was seen on the website |
| String | The last url the Visitor has visited. |
| String | The city the Visitor is in (according to their IP address). If the city is not known, this will be null. |
| String | The country (name) the Visitor is in (according to their IP address). If the country is not known, this will be null. |
| String | The country (code) the Visitor is in (according to their IP address). If the country is not known, this will be null. |
| String | The code your agent can search for to quickly find the Visitor in the interface. If not set, it will be null. |
| String | It will return the first |
| String | It will return the Visitor's name, the first part of the Visitor's email, or the Visitor's ID. |
| Session[] | A list of recent screen sharing sessions with this Visitor. |
| String | The UserView ID of the Visitor. |
| String[] | The value provided in the |
| String | The unique ID used to identify the Visitor. If this was not set, it will be null. |
| String | A public URL used to start a session with the Visitor. |
Pageview
A Pageview represents a page that the Visitor was at.
Attributes
Attribute name | Type | Description |
---|---|---|
| Event[] | A collection of Events. |
| String | The Pageview identification in the UUID format. |
| Screenshot | A Screenshot taken during the Pageview. |
| Datetime | The datetime of when the Pageview was collected. |
| String | The URL the Visitor was at when the Pageview was collected. |
Event
An Event represents an action taken by the Visitor during a Pageview.
Attributes
Attribute name | Type | Description |
---|---|---|
| String | A URL of an icon representing the Event. |
| String | The description of the Event (e.g. Live chat conversation started). |
| Datetime | The datetime of the event. |
| String | The event identification in the UUID format. |
Screenshot
A screenshot is a png image of the Pageview.
Attributes
The attributes of the screenshot are divided in small
, medium
and large
.
{
"small": {
"url": "https://example.com/100x100.png",
"height": 100,
"width": 100
},
"medium": {
"url": "https://example.com/200x200.png",
"height": 200,
"width": 200
},
"large": {
"url": "https://example.com/400x400.png",
"height": 400,
"width": 400
}
}
Attribute name | Type | Description |
---|---|---|
| Integer | The height of the screenshot. |
| String | The URL of the screenshot. |
| Integer | The width of the screenshot. |
Session
A Session is a co-browsing interaction between one or more Agents and a Visitor.
Call vs Session
Throughout the docs, you'll see the concept of Calls and Sessions.
Sessions can happen with or without Calls, which are the audio component of a Session.
Attributes
Attribute name | Type | Description |
---|---|---|
| Agent[] | The collection of agents that joined the Session. |
| Integer | The duration of the audio call in seconds. |
| String | The username of the Agent that initiated the Session through their personal link. |
| Datetime | The datetime of when the Session ended. |
| String[] | The collection of features used (e.g |
| String | The duration of the audio call formatted (e.g |
| String | The duration of the Session formatted (e.g |
| String | The ID of the Session. |
| Integer | The duration of the Session in seconds. |
| Boolean | A boolean describing whether the Session happened on an on-premise version of UserView. |
| String | A public URL for the recoding of the Session, if one is available, which requires the viewer to be authenticated into UserView. |
| String | A secret URL pointing directly to the video recording of the Session, if one is available. |
| Boolean | A boolean describing whether the Session was authorized by the Visitor. |
| String | A number describing the source of the Session. One of:Â |
| String | The URL the Visitor was at when the session started. |
| Datetime | The datetime of when the Session started. |
| Team | An object representing the team the Session belongs to, with the following keys:Â |
| String | The status of the Session's video recording. One of |
| String | The ID of the Visitor. |
| Boolean | A boolean describing whether the Session actually started. |
Agent
An Agent is someone who started or joined the Session as an observer.
Attributes
Attribute name | Type | Description |
---|---|---|
| String | The Agent's nickname. |
| String | The Agent's email. |
| String | If generated through the REST API, the ID provided by you. |
| String | The Agent's id. |
| String | The Agent's name. |
| Boolean | A boolean describing whether the agent is on premise. |