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
AuthorizationBearer <token>
In: header
Query Parameters
days?Days
Default
30Range
7 <= value <= 90Response 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
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
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
}