Skip to main content
GET
Get agent analytics

Authorizations

Authorization
string
header
required

API key from your account settings

Path Parameters

agentId
string
required

The agent ID

Minimum string length: 1
Example:

"5QHA6VB-DIAbBhxwqxfdi"

Query Parameters

startDate
string

Range start (YYYY-MM-DD or ISO 8601). Defaults to 7 days before endDate.

endDate
string

Range end (YYYY-MM-DD, inclusive, or ISO 8601). Defaults to now; a later end is capped to now.

timeZone
string
default:UTC

IANA time zone for conversationsByHour, e.g. America/New_York. Defaults to UTC.

Example:

"UTC"

Response

Agent analytics for the range

buckets
object[]
required

The range split into 7 equal buckets, oldest first

sources
object[]
required

Conversations in the range by source

toolsUsed
object[]
required

Conversations in the range by tool used

countries
object[]
required

Conversations in the range by country code

confidence
number[]
required

Conversations in the range by their lowest answer confidence score, in 10 bins of 0.1: index 0 is 0–0.1, index 9 is 0.9–1. A conversation with no scored answers counts as 1.

conversationsByHour
number[]
required

Conversations in the range by the hour they started in timeZone: 24 counts, index 0 is 00:00–01:00. Counts come from whole UTC hours, so zones with a 30- or 45-minute offset are approximate.

creditsByDay
object[]
required

Credits the agent used per UTC day that overlaps the range. Days with no usage are omitted.