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
Query parameters
Number of days to include. Default: 30. Set to 0 for all time.
Response
Whether the request was successful.
Analytics data.
Summary metrics: totalConversations, periodConversations, totalMessages, avgMessagesPerConvo, sourceCitationRate (percentage).
Daily conversation counts: date (YYYY-MM-DD) and conversations (count).
Conversations by source: name (playground, iframe, widget, api) and value (count).
Most referenced documents: id, name, and count.
Recent user messages: id, content, created_at, conversation_id.
Example
Response