Skip to main content
GET
Returns one section of the analytics summary for one agent. The accepted section values are summary, trends, knowledge, rules, and escalations. Use this route when you only need part of the analytics payload. Use Get agent analytics when you need the full summary object. For the analytics endpoint family, see Analytics.

Headers

string
required
Bearer token containing your Fini workspace API key. Format: Bearer fini_... The key needs read scope.

Path parameters

string
required
Agent ID whose analytics you want to read. Use List agents to get the botId.
string
required
Analytics section to return. Accepted values are summary, trends, knowledge, rules, and escalations.

Query parameters

number
required
Inclusive start of the analytics window as a Unix epoch timestamp in milliseconds.
number
required
Exclusive end of the analytics window as a Unix epoch timestamp in milliseconds.
string | string[]
Conversation source filter. Pass all to include all supported sources, or pass one or more source values accepted by Fini.
string | string[]
Optional channel filter.
string | string[]
Optional latest-status filter.
string | string[]
Optional latest-sentiment filter.
string | string[]
Optional knowledge subfolder IDs to filter by.
string | string[]
Optional tag IDs to filter by.
string | string[]
Optional rule IDs to filter by.
string | string[]
Optional escalation-reason tag IDs to filter by.
number | number[]
Optional CSAT ratings to filter by. Values must be integers from 1 through 5.
string
Optional timezone used for date grouping. Defaults to UTC. Defaults to UTC.

Response

Returns a partial analytics summary object for the requested section. The example above is a synthetic summary response, matching the request examples. See Get agent analytics for the field-level analytics schema.

Errors

The path ID, section, or query parameters are invalid. startEpoch and endEpoch are required.
The API key is missing, malformed, revoked, or invalid.
The API key does not include the read scope required for this route.
The agent was not found in the authenticated workspace.
The authenticated request has no workspace context.
Fini failed while loading analytics.