Billing
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET |
Retrieve billing usage export
Download the usage breakdown as CSV, honouring the requested project cap.
Required API key scopes
billing:readQuery parameters
- afterstring | null
- breakdownsstring | null
- end_datestring | null
- intervalstring | null
- page_sizeinteger | null
- start_datestring | null
- team_idsstring | null
- top_projectsinteger | null
- usage_typesstring | null
Example request
GET /api /billing /usage /exportExample response
Status 200 No response body
Retrieve billing usage export
Download the usage breakdown as CSV, honouring the requested project cap.
Required API key scopes
billing:readQuery parameters
- afterstring | null
- breakdownsstring | null
- end_datestring | null
- intervalstring | null
- page_sizeinteger | null
- start_datestring | null
- team_idsstring | null
- top_projectsinteger | null
- usage_typesstring | null
Example request
GET /api /billing /usage /exportExample response
Status 200 No response body
Retrieve billing usage team options
The project ids the project filter offers, loaded apart from the charts.
Scoped the way the charts are: a member without billing access sees only the projects they can see.
Required API key scopes
billing:readResponse
Example request
GET /api /billing /usage /team_optionsExample response
Status 200
Retrieve billing usage team options
The project ids the project filter offers, loaded apart from the charts.
Scoped the way the charts are: a member without billing access sees only the projects they can see.
Required API key scopes
billing:readResponse
Example request
GET /api /billing /usage /team_optionsExample response
Status 200
Retrieve billing features
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /featuresExample response
Status 200
Retrieve billing forecast
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /forecastExample response
Status 200
List all billing invoices
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readQuery parameters
- cursorstring
- limitinteger
- statusstringOne of:
"open""paid""uncollectible""void"
Response
Example request
GET /api /organizations /:organization_id /billing /invoicesExample response
Status 200
Retrieve billing invoices content
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readPath parameters
- invoice_idstring
Example request
GET /api /organizations /:organization_id /billing /invoices /:invoice_id /contentExample response
Status 200
Retrieve billing limits
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /limitsExample response
Status 200
List all billing products
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readQuery parameters
- include_plansbooleanDefault:
false
Response
Example request
GET /api /organizations /:organization_id /billing /productsExample response
Status 200
Retrieve billing products
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readPath parameters
- product_keystring
Query parameters
- include_plansbooleanDefault:
false
Response
Example request
GET /api /organizations /:organization_id /billing /products /:product_keyExample response
Status 200
Retrieve billing products summary
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /products /summaryExample response
Status 200
List all billing project
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta. Every project the organization has reported usage for, deleted ones included, so a caller knows which ids a project breakdown or a team_ids filter can name. Below full billing access the list is the projects the caller can see.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /projectsExample response
Status 200
Retrieve billing spend summary
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /spendExample response
Status 200
Retrieve billing spend export
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readQuery parameters
- breakdownsstring | null
- end_datestring | null
- intervalstring | null
- start_datestring | null
- team_idsstring | null
- top_projectsinteger | null
- usage_typesstring | null
Example request
GET /api /organizations /:organization_id /billing /spend /exportExample response
Status 200
Retrieve billing spend timeseries
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readQuery parameters
- breakdownsstring | null
- cursorstring | null
- end_datestring | null
- intervalstring | null
- limitinteger | null
- start_datestring | null
- team_idsstring | null
- top_projectsinteger | null
- usage_typesstring | null
Response
Example request
GET /api /organizations /:organization_id /billing /spend /timeseriesExample response
Status 200
Retrieve billing subscription
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /subscriptionExample response
Status 200
Retrieve billing usage summary
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /usageExample response
Status 200
Retrieve billing usage export
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readQuery parameters
- breakdownsstring | null
- end_datestring | null
- intervalstring | null
- start_datestring | null
- team_idsstring | null
- top_projectsinteger | null
- usage_typesstring | null
Example request
GET /api /organizations /:organization_id /billing /usage /exportExample response
Status 200
Retrieve billing usage status
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /usage /status










