Skip to main content
GET
Get Agent Analytics

Authorizations

Authorization
string
header
required

Your API key (ta_live_…) from Settings → API keys, sent as Authorization: Bearer <key>. Keep it on a server: it can message every customer you have. A key is full, build or read-only; a request its level does not allow is refused with 403.

Headers

Thinnest-Workspace
string

Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace.

Example:

"org_3fKq9TzQ1mN8vB2xR7cLpA"

Path Parameters

id
string
required

The agent's id.

Query Parameters

days
integer
default:30

The rolling window.

Required range: 1 <= x <= 90
rows
integer
default:20

Caps knowledgeGaps and topQuestions.

Required range: 1 <= x <= 100

Response

Agent analytics.

days
integer
required

The window asked for.

totals
object
required
daily
object[]
required
hourly
object[]
required
channels
object[]
required
knowledgeGaps
object[]
required

Questions the agent searched its knowledge for and found nothing — at most rows.

topQuestions
object[]
required

Questions asked most — at most rows.

derived
object
required