Get daily spend (autoscaling)
GET
/api/v1/organizations/{orgID}/billing/daily-spend
const url = 'https://api.aetherplatform.cloud/api/v1/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/billing/daily-spend';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.aetherplatform.cloud/api/v1/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/billing/daily-spend \ --header 'Authorization: Bearer <token>'Returns a zero-filled, contiguous per-day autoscaling spend series from the first of the current UTC month through today, plus the period total.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”orgID
required
string format: uuid
Organization UUID.
Responses
Section titled “Responses”The daily-spend series.
Media typeapplication/json
object
points
required
Array<object>
object
date
required
The day in YYYY-MM-DD (UTC).
string
amount_eur
required
number format: double
total_eur
required
number format: double
series
required
Names the source series. Daily-spend is autoscaling-only — flat monthly subscriptions are not a daily quantity and live in /billing/breakdown, whose subtotal is the authoritative bill. This label makes the scope explicit so the total isn’t mistaken for the whole bill.
string
Example
{ "series": "autoscaling"}Missing or invalid credentials.
Media typeapplication/json
object
error
required
object
code
required
A stable, machine-readable error code.
string
message
required
string
details
Array<object>
object
field
required
string
code
required
string
message
required
string
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": [ { "field": "example", "code": "example", "message": "example" } ] }}