Skip to main content
GET
/
api
/
metrics
/
analytics
Time-series analytics
curl --request GET \
  --url https://api.tedro.io/api/metrics/analytics \
  --header 'x-workspace-id: <api-key>' \
  --cookie better-auth.session_token=
{
  "messageVolume": [
    {
      "bucket": "<string>",
      "inbound": 123,
      "outbound": 123
    }
  ],
  "workflowRuns": [
    {
      "bucket": "<string>",
      "succeeded": 123,
      "failed": 123,
      "running": 123
    }
  ],
  "conversationTrends": [
    {
      "bucket": "<string>",
      "newConversations": 123
    }
  ],
  "responseTimes": [
    {
      "bucket": "<string>",
      "avgMs": 123
    }
  ],
  "costOverTime": [
    {
      "bucket": "<string>",
      "totalUsd": 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

Bucketed analytics payload

Time-series analytics bucketed by hour/day (shape may include summary totals)

messageVolume
object[]
required
workflowRuns
object[]
required
responseTimes
object[]
required
costOverTime
object[]
required
{key}
any