Skip to main content
Get analytics data for an agent, including conversation counts, source breakdowns, and top referenced documents.

Endpoint

Authentication

Required. You must own the agent.

Path parameters

agentId
string
required
The agent ID.

Query parameters

days
number
Number of days to include. Default: 30. Set to 0 for all time.

Response

success
boolean
Whether the request was successful.
data
object
Analytics data.

Example

Response