v32

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-07-312881,4162.7 MB
Usage

Costs

Get costs details for the organization.

get/organization/costs

Query parameters

start_timeinteger required

Start time (Unix seconds) of the query time range, inclusive.

end_timeinteger

End time (Unix seconds) of the query time range, exclusive.

bucket_width'1d'

Width of each time bucket in response. Currently only 1d is supported, default to 1d.

project_idsstring[]

Return only costs for these projects.

api_key_idsstring[]

Return only costs for these API keys.

group_bystring[]

Group the costs by the specified fields. Support fields include project_id, line_item, api_key_id and any combination of them.

limitinteger

A limit on the number of buckets to be returned. Limit can range between 1 and 180, and the default is 7.

pagestring

A cursor for use in pagination. Corresponding to the next_page field from the previous response.

Response

Costs data retrieved successfully.

object'page' required
has_moreboolean required
next_pagestring nullable required