Skip to main content
GET
/
api
/
costs
/
timeline
Get Cost Timeline
curl --request GET \
  --url http://localhost:8000/api/costs/timeline
[
  {
    "date": "<string>",
    "total_cost": "<string>",
    "by_provider": {}
  }
]

Headers

x-user-id
string | null

Query Parameters

period
string
default:daily
Pattern: ^(daily|weekly|monthly)$
start_date
string | null
end_date
string | null

Response

Successful Response

date
string
required
total_cost
string
required
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
by_provider
By Provider · object
required