https://api.costgraph.ai. Requests and responses are JSON,
except where an endpoint returns a file.
Authentication
The API accepts two kinds of credentials:
Create API keys under Settings > API keys. A key carries scopes: give it
focus:read to read cost, forecast, commitments, unit economics, and
allocation coverage. Endpoints that manage your organization, such as
budgets, alert destinations, and single sign-on, need a signed-in person with
the matching role. API keys and app tokens can’t call them.
Tenant
Endpoints under/api/v1/tenant/ work on one tenant. Send its ID in the
X-CostGraph-Tenant-ID header. Endpoints under /api/v1/organizations/{org_id}/
work on the whole organization.
Periods and filters
Cost endpoints share the same parameters:period:month_to_date(the default),last_7d,last_30d,calendar_monthwithmonth=YYYY-MM, orcustomwithstartandend.filter: repeatedkey:valuefilters, such asfilter=provider:awsorfilter=tag:team:platform. Repeat a key to match any of its values.layer:billedfor your bills,allocationfor Kubernetes allocation, orcifor CI spend.