Skip to main content
Every conversation an agent handles spends tokens, costs money, and exercises some subset of its playbooks, functions and tools. Analytics turns that into numbers you can query: scoped to an organization, a workspace or a single project, and broken down by the component that caused the spend.

Endpoints

Analytics query

Every query has a scope

Analytics endpoints end in the level they measure, and the level is part of the path:
Not every metric exists at every level, which is itself informative: interaction counts are project and workspace, entity token usage is organization only.

What you can measure

  • Spend - token usage overall, by hour, by day, by category, and by entity; plus transcript cost.
  • Volume - interactions, transcripts, unique users, call count and call duration.
  • Where it goes - usage attributed to functions, playbooks, workflows, intents, prompts, integrations, API tools, MCP tools and knowledge base documents.
That last group is the one most people skip. It answers which parts of an agent are actually costing money, rather than what the agent cost in total.

Sending a query

Each query takes a request body describing the window and grouping you want, so they are POST rather than GET despite being reads.

What analytics does not return

Analytics returns numbers about conversations, never the conversations themselves. To read what was actually said, use Observe.