Skip to main content
POST
Query analytics

Authorizations

Authorization
string
header
required

Organization-scoped Auth0 user access token issued to an approved first-party client or exchanged by a trusted OBO resource server.

Body

application/json

A bounded set of analytics projections over one shared half-open time window.

sections
enum<string>[]
required
Required array length: 1 - 4 elements

Typed projection requested from the analytics query.

Available options:
summary,
chart,
statusBreakdown,
agentPerformance
agentId
string

Opaque Arbol resource identifier; the endpoint and tenant-scoped lookup determine its resource type.

Maximum string length: 64
Pattern: ^[a-z][a-z0-9]{1,15}_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
Example:

"agt_018f47a2-4f4d-7d61-9e2c-1d7b8e9a0c31"

channelKind
enum<string>

Conversation transport family.

Available options:
voice,
whatsapp,
telegram,
slack,
email,
web
Example:

"voice"

from
string<date-time>

ISO 8601 timestamp with an explicit UTC offset.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
Example:

"2026-08-29T14:30:00Z"

granularity
enum<string>

Bucket size used for an analytics chart window.

Available options:
hour,
day,
week,
month
Example:

"day"

metric
enum<string>
default:conversations

Measure aggregated into analytics chart points.

Available options:
conversations,
messages,
duration,
success_rate
Example:

"conversations"

timezone
string
default:UTC
Allowed value: "UTC"
to
string<date-time>

ISO 8601 timestamp with an explicit UTC offset.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
Example:

"2026-08-29T14:30:00Z"

Response

OK

Only the requested analytics sections, all resolved over the same returned window.

window
object
required
agentPerformance
object[]
Maximum array length: 500
chart
object
statusBreakdown
object[]
Maximum array length: 50
summary
object