OUTCOME · Discover
What changes
Read-only projection; it grants no mutation, settlement, traffic, or authority change.
Customer billing
/api/v2/billing/accountPurpose and usage
Return the authenticated workspace's credit balance, allowance, current-period consumption, credit-pool expiry behavior, active subscriptions, and settlement posture.
When to use it
Call this before presenting service availability or financial posture for a workspace so current credits, allowances, consumption, expiries, subscriptions, and settlement state are reconciled together.
OUTCOME · Discover
Read-only projection; it grants no mutation, settlement, traffic, or authority change.
WHY IT MATTERS
ISOLATION + AUTHORITY
Workspace, product, price, currency, credit grant, allowance, credit pool, subscription, usage event, pending event, invoice, payment, and settlement authorities remain distinct. A displayed balance or product does not reserve credits, purchase service, move money, settle an invoice, or authorize another domain action.
BEFORE YOU CALL
WHAT TO DO NEXT
AGENT GUIDANCE
Use the deployed OpenAPI for exact parameters, schemas and security requirements. The tables below provide integration guidance.
Open this operation in OpenAPIRequest and response
Examples illustrate integration intent; the referenced OpenAPI operation and component schemas define the executable shape.
PARAMETERS
AuthorizationheaderRequiredBearer tokenCredential containing the billing:read scope.EXAMPLEBearer hc_live_…
RESPONSES
{
"account_id": "7f15968f8eb94d59af7163bb2de6ef47",
"status": "ACTIVE",
"available_credits": "10875",
"included_credits": "1000",
"rated_usage_credits": "125",
"usage_events": 25,
"pending_usage_events": 0,
"period": {
"started_at": "2026-08-01T00:00:00Z",
"ends_at": "2026-09-01T00:00:00Z"
},
"credit_pools": {
"allowance": {
"granted_credits": "1000",
"remaining_credits": "875",
"first_expires_at": "2026-09-01T00:00:00Z",
"last_expires_at": "2026-09-01T00:00:00Z",
"expires": true
},
"topups": {
"granted_credits": "10000",
"remaining_credits": "10000",
"first_expires_at": null,
"last_expires_at": null,
"expires": false
},
"subscriptions": {
"granted_credits": "0",
"remaining_credits": "0",
"first_expires_at": null,
"last_expires_at": null,
"expires": false
},
"adjustments": {
"granted_credits": "0",
"remaining_credits": "0",
"first_expires_at": null,
"last_expires_at": null,
"expires": false
}
},
"subscriptions": [],
"settlement_methods": [
"STRIPE",
"HYBRID_BALANCE",
"EXTERNAL_CRYPTO"
],
"settlement_state": "FOUNDATION_READY"
}{
"code": "invalid_credentials",
"message": "The bearer credential is missing, expired, or invalid."
}invalid_credentials{
"code": "insufficient_scope",
"message": "The credential lacks billing:read."
}insufficient_scope{
"code": "billing_unavailable",
"message": "The authoritative Core billing projection is unavailable."
}billing_unavailableOPERATIONAL NOTES
This route is implemented in canonical gateway source and appears in the production OpenAPI snapshot observed 2026-10-02T23:27:55.510Z. Authentication, tenant, feature, venue, and market policy still apply.
Verify the exact production OpenAPI operation Return to the V2 directory