Skip to content

Analytics

This API exposes Unleash live read-only endpoints, allowing developers and users to retrieve AI-generated analytics data.

API access is currently an optional add-on. Please contact your account manager to request a demo or for more information.

Base URL

https://api.unleashlive.com

All endpoints require a Bearer token in the Authorization header. We recommend using a Personal Access Token (PAT). See the Authentication section for how to create one.

Authorization: Bearer <YOUR_PAT>

Legacy: The x-api-key header is still accepted for backwards compatibility. For new integrations, use a PAT. See Legacy: API Key for details.


GET /v1/analytics/version

Retrieves the current API version number. This endpoint is useful for testing and confirming that your API key is valid.

"1.0.1"

GET /v1/analytics/devices

Returns a list of all valid devices for the authenticated API key and account.

["Wb8fabc31378ce07", "W022abc5be35bb72", "Weea288bc1faaddd"]

Each item corresponds to an Unleash live Device ID.


GET /v1/analytics/sessions

Returns a list of all sessions for the authenticated API key and account.

["1595418530512", "1595452859625", "1595492155987"]

Each item corresponds to an Unleash live Session ID.


GET /v1/analytics/{deviceId}/{unixUTCTimeStampFrom}/{unixUTCTimeStampTo}/{pageNumber}

Retrieves raw analytics data generated between two given dates for a specific device.

This endpoint is size-optimized — returning a list of keys and an array of data values that map to those keys. See the Analytics Data Object reference for the response structure.

See Path Parameters in the reference section for full descriptions.

GET /v1/analytics/Wabcdb35be35bb72/1597630156000/1597630156000/1

GET /v1/analytics/tableau/{deviceId}/{unixUTCTimeStampFrom}/{unixUTCTimeStampTo}/{pageNumber}

Retrieves Tableau-formatted analytics data generated between two given dates for a specific device.

This endpoint is descriptive, structuring the data as an array of JSON objects, allowing it to be read natively by services such as Tableau and Salesforce easily. See the Tableau Data Object reference for the response structure.

See Path Parameters in the reference section for full descriptions.

GET /v1/analytics/tableau/Wabcdb35be35bb72/1597630156000/1597630156000/1

The data retrieval endpoints use the following path parameters:

ParameterTypeDescription
deviceIdStringrequired Unique Device ID
unixUTCTimeStampFromIntegerrequired Unix epoch start, milliseconds
unixUTCTimeStampToIntegerrequired Unix epoch end, milliseconds
pageNumberIntegerrequired Page number (starts at 1)

Note: Payload is paginated starting with page number 1.

The compact response format for GET /v1/analytics/{deviceId}/...:

FieldTypeDescription
keysString[]A list of all keys used in the data field, in order of use
total_num_pagesIntegerThe total number of pages available for the requested data
dataArray[]List containing all requested data values, mapping to keys

The descriptive response format for GET /v1/analytics/tableau/{deviceId}/...:

FieldTypeDescription
total_num_pagesIntegerThe total number of pages available for the requested data
dataObject[]List of JSON objects containing all requested data