Skip to content
Helicarrier Developers

Get billing

Read current account billing and full-month projections grouped as a list, by project, or by service type. Each resource appears once with its plan-change slices nested underneath. All monetary cents are USD; currency and fxRate describe local display.

GET /api/account/billing HTTPS
Request & response examples
Request example Server-side
curl --fail-with-body --request GET \
'https://app.helicarrier.xyz/api/account/billing' \
-H "Authorization: Bearer $HELI_API_KEY"
Response example 200
{
"period": "2026-12",
"currency": "USD",
"amountCurrency": "USD",
"fxRate": 0,
"groupBy": "project",
"estimateCents": 0,
"projectedCents": 0,
"usage": [],
"groups": [],
"bundles": [],
"invoices": []
}

Illustrative values · selected fields

Authorization

An account key with access to the resource. Project and service keys do not authorize this operation.

Authorization: Bearer <key> Key setup

Query parameters

groupBy string optional

list (default), project, or type. Groups contain unique resources, plan history, billed totals and full-month projections.

Response 200

Read current account billing and full-month projections grouped as a list, by project, or by service type. Each resource appears once with its plan-change slices nested underneath. All monetary cents are USD; currency and fxRate describe local display.

Examples show selected response fields with illustrative values. Your response can contain additional fields.

period string
currency string

Display currency associated with the caller.

amountCurrency string
fxRate integer

Exchange rate for the display currency; zero when not applicable.

groupBy string
estimateCents integer
projectedCents integer
usage array
groups array

Engine-specific metric groups.

bundles array
invoices array

Errors

400

Invalid parameters. Check the required fields, types, and resource configuration.

401

The API key is missing, invalid, or revoked.

403

The caller or key scope does not permit this operation.

Error handling and safe retries
ALSO AVAILABLE VIA MCP

get_billing

Required MCP arguments: none. Send path, query, and body fields together as tool arguments.

Connect your agent