Radicas Docs
API referenceGenerated

Cost Timeseries

GET
/costs/timeseries

Per-minute cost + token totals over the last N minutes — drives the real-time spending chart.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

minutes?Minutes
Range1 <= value <= 1440
Default30

Response Body

application/json

application/json

curl -X GET "https://example.com/costs/timeseries"
[  {    "bucket": "2019-08-24T14:15:22Z",    "estimated_cost_usd": "string",    "calls": 0,    "total_tokens": 0  }]
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}