Skip to main content
GET
/
api
/
metrics
/
analytics
/
agents
Per-agent analytics
curl --request GET \
  --url https://api.tedro.io/api/metrics/analytics/agents \
  --header 'x-workspace-id: <api-key>' \
  --cookie better-auth.session_token=
{
  "agents": [
    {
      "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "totalRuns": 123,
      "succeeded": 123,
      "failed": 123,
      "successRate": 123,
      "totalCost": 123,
      "avgTokens": 123
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.tedro.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

better-auth.session_token
string
cookie
required

Session cookie set by Better Auth on sign-in.

x-workspace-id
string
header
required

Workspace UUID. Required on all /api/* endpoints.

Query Parameters

range
enum<string>

Preset range. Use "custom" with from/to for explicit windows.

Available options:
24h,
7d,
30d,
custom
from
string

ISO 8601 datetime (required when range=custom)

to
string

ISO 8601 datetime (required when range=custom)

Response

Agent analytics rows

Per-agent run counts, success rate, and cost totals for the range

agents
object[]
required