Skip to content

Tracing and analytics

Analytics: requests, errors, latency and tokens

The Analytics page and API: requests, errors, tokens, response time, time to first token, tools, estimated cost and credits.

Reference1 min readUpdated 23 October 2026

Analytics in the sidebar charts your agents over 24 hours, 7, 30 or 90 days, for every agent or one at a time. It is built from the same traces as Tracing, so a spike in a chart can be opened as the requests behind it.

Totals

TileMeaning
RequestsChat requests in the range, from every channel
ErrorsRequests that ended with an error code
TokensInput and output tokens together
Avg response timeAverage end-to-end duration
Estimated costEstimated model cost, where token prices are available; your provider's bill is the source of truth
Credits leftYour balance now

Charts

  • Requests and errors over time, and requests per agent.
  • Response time.
  • Time to first token, the delay before a reply starts streaming.
  • Tools: which tools are called and how often.

Analytics from the API

Three endpoints, all with X-Api-Key and range set to 24h, 7d, 30d or 90d (anything else returns 400 INVALID_RANGE). Per-agent results are bucketed by hour for 24h and 7d, by day for 30d and 90d.

EndpointReturns
GET /v1/analytics/summaryTotals across your agents
GET /v1/analytics/agents/{id}Requests, errors, p50, p95 and p99 latency, tokens and estimated cost per bucket, plus totals
GET /v1/analytics/agents/{id}/top-errorsThe most frequent error codes for one agent
Analytics API
curl "https://api.sentientone.ai/v1/analytics/summary?range=7d" \  -H "X-Api-Key: $SENTIENTONE_API_KEY"curl "https://api.sentientone.ai/v1/analytics/agents/$AGENT_ID?range=30d" \  -H "X-Api-Key: $SENTIENTONE_API_KEY"curl "https://api.sentientone.ai/v1/analytics/agents/$AGENT_ID/top-errors?range=24h" \  -H "X-Api-Key: $SENTIENTONE_API_KEY"

Credit usage (agent replies, knowledge and credits added) is on the Usage tab of Settings, and each purchase is under Billing. See How credits work.

Still stuck?

Email us with what you tried and any request id. A person replies.

support@sentientone.ai