Your plan, this period's usage and your invoices. Read only.
Get this period's usage
GET/v1/usage
Permissionbilling:read
Running minutes, data transfer and storage, per AI team, for the current period.
Headers
HQ-Versionstring (date)
A dated API version. Defaults to the version the key was created with.
HQ-Accountstring
Agency keys only: the slug of the client organization this request acts for. Required with
an agency key, refused with 400 invalid_request on any other credential. A slug that is
not one of your agency's current clients is 404 not_found. An agency key is limited to
600 requests a minute per key on EACH API server (the cap is per replica), plus its own
budget per client (limit_scope: agency_client), separate from the client's own keys.
A dated API version. Defaults to the version the key was created with.
HQ-Accountstring
Agency keys only: the slug of the client organization this request acts for. Required with
an agency key, refused with 400 invalid_request on any other credential. A slug that is
not one of your agency's current clients is 404 not_found. An agency key is limited to
600 requests a minute per key on EACH API server (the cap is per replica), plus its own
budget per client (limit_scope: agency_client), separate from the client's own keys.
Newest first. Pages forward with starting_after (an invoice id). Download links are not
included: open invoices from Billing in HQ.
Query parameters
limitinteger
How many objects to return, 1 to 100. Default 20.
starting_afterstring
Return invoices older than this invoice id.
Headers
HQ-Versionstring (date)
A dated API version. Defaults to the version the key was created with.
HQ-Accountstring
Agency keys only: the slug of the client organization this request acts for. Required with
an agency key, refused with 400 invalid_request on any other credential. A slug that is
not one of your agency's current clients is 404 not_found. An agency key is limited to
600 requests a minute per key on EACH API server (the cap is per replica), plus its own
budget per client (limit_scope: agency_client), separate from the client's own keys.