Skip to main content
GET
/
api
/
metrics
/
overview
/
trends
Dashboard sparkline trends
curl --request GET \
  --url https://api.tedro.io/api/metrics/overview/trends \
  --header 'x-workspace-id: <api-key>' \
  --cookie better-auth.session_token=
{
  "range": "<string>",
  "trends": {
    "messages": [
      {
        "date": "<string>",
        "count": 123
      }
    ],
    "conversations": [
      {
        "date": "<string>",
        "count": 123
      }
    ],
    "runs": [
      {
        "date": "<string>",
        "count": 123
      }
    ],
    "contacts": [
      {
        "date": "<string>",
        "count": 123
      }
    ]
  },
  "comparison": {
    "messages": {
      "current": 123,
      "previous": 123,
      "changePercent": 123
    },
    "conversations": {
      "current": 123,
      "previous": 123,
      "changePercent": 123
    },
    "runs": {
      "current": 123,
      "previous": 123,
      "changePercent": 123
    },
    "contacts": {
      "current": 123,
      "previous": 123,
      "changePercent": 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>

Range window (default 7d)

Available options:
7d,
30d

Response

Trend + comparison payload

Sparkline trends + period-over-period comparison for the overview dashboard

range
string
required
comparison
object
required