Skip to main content
GET
Every move on the cost line, named by what happened

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-ankra-organisation-id
string

PAT organisation override.

Query Parameters

days
integer
default:30

How many UTC days the trend covers, ending today (1..34: the cost snapshots are kept 35 days).

Required range: 1 <= x <= 34
project_id
string

The project to read: a project's id, or all for the whole organisation. Absent reads the caller's current project (the whole organisation while projects are off). A token pinned to a project, or a member limited to projects, may name only their own project.

Response

Successful response

Every move on the cost line, named by what happened (ankra-cozgu.1.7.3).

currency
string
required
generated_at
string<date-time>
required
days
integer
required
events
CostEvent · object[]
required

Newest first.

truncated
boolean
required

More than 500 events; the newest 500 are served.

sources
CostEventSource · object[]
required

Which kinds of event could be read; an unavailable kind is missing from events, not quiet.

fx_basis
enum<string> | null
required

Which rates brought the priced hours the events are measured from to the currency, the weakest of them: each hour converts at the rate day it recorded, else at the ECB rates of its own day, else at today's. unrated says an hour no rate converts was left out of its cluster's hours, which reads as a metering gap around it. A resolved finding's saving is a run rate and stays at today's rate. Null when no priced hour was read.

Available options:
recorded,
own_day,
today,
unrated