Skip to main content
GET
Cost per customer

Authorizations

Authorization
string
header
required

Enter "Bearer {token}"

Headers

X-CostGraph-Tenant-ID
string
required

Tenant ID

Query Parameters

dimension
string

sub_account, tag: or extension:; defaults to the tenant's customer dimension

layer
enum<string>

Cost layer; defaults to billed

Available options:
billed,
allocation
granularity
enum<string>

Trend bucket; defaults to day

Available options:
day,
month
limit
integer

Maximum customers listed, largest spend first; defaults to 100

period
enum<string>

Cost period; defaults to month_to_date

Available options:
month_to_date,
last_7d,
last_30d,
calendar_month,
custom
month
string

Closed calendar month in YYYY-MM format; required when period=calendar_month

start
string

Window start in RFC3339 format; required when period=custom

end
string

Window end in RFC3339 format; required when period=custom

reporting_currency
string

ISO 4217 code to express every amount in; defaults to the currency most of the period's spend was billed in

filter
string[]

Repeated key:value dimension filter, same keys and modifiers as /cost/query

format
enum<string>

Response format; defaults to json

Available options:
json,
csv,
xlsx

Response

OK

message
string
required
Example:

"some message"

status
string
required
Example:

"success"

data
object