HydraCore
API by router

Dashboard

Get Dashboard Chart

Time-series chart data aggregated by day.

"Roads? Where we're going, we don't need roads." — Doc Brown

GET
/v1/dashboard/chart
AuthorizationBearer <token>

In: header

Query Parameters

days?Days
Default30
Range7 <= value <= 90

Response Body

curl -X GET "https://loading/v1/dashboard/chart?days=30"
{
  "period_label": "string",
  "points": [
    {
      "cost_usd": "string",
      "date": "string",
      "end_users": 0,
      "instances": 0,
      "requests": 0,
      "tokens": 0
    }
  ]
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Get Onboarding Checklist

Derive onboarding progress from existing tables. No extra state needed.

"We're adding a little something to this month's checklist. As you all know, first prize is a Cadillac Eldorado." — Blake, Glengarry Glen Ross

GET
/v1/dashboard/onboarding
AuthorizationBearer <token>

In: header

Response Body

curl -X GET "https://loading/v1/dashboard/onboarding"
{
  "all_done": true,
  "completed_count": 0,
  "steps": [
    {
      "completed": true,
      "description": "string",
      "href": "string",
      "key": "string",
      "title": "string"
    }
  ],
  "total_count": 0
}

Get Dashboard Stats

Aggregate dashboard stats from instances + usage_daily.

"Gentlemen, you can't fight in here! This is the War Room!" — President Merkin Muffley, Dr. Strangelove

GET
/v1/dashboard/stats
AuthorizationBearer <token>

In: header

Response Body

curl -X GET "https://loading/v1/dashboard/stats"
{
  "end_users_trend_pct": 0,
  "error_instances": 0,
  "platform_cost_30d": "string",
  "revenue_trend_pct": 0,
  "running_instances": 0,
  "total_end_users": 0,
  "total_instances": 0,
  "total_requests_30d": 0,
  "total_revenue_usd": "string",
  "total_tokens_30d": 0
}