OUTCOME · Discover
What changes
Read-only projection; it grants no mutation, settlement, traffic, or authority change.
Customer billing
/api/v2/billing/usagePurpose and usage
Return aggregate metered credit usage, pending events, and reconciliation counters for the authenticated workspace's active billing period.
When to use it
Call this to reconcile metered credit consumption and pending events for the active billing period before reporting usage, investigating drift, or making an availability decision.
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
{
"period": {
"started_at": "2026-08-01T00:00:00Z",
"ends_at": "2026-09-01T00:00:00Z"
},
"rated_usage_credits": "125",
"usage_events": 25,
"pending_usage_events": 0,
"reconciliation": {
"mode": "INGEST_TIME",
"checked": 25,
"posted": 25,
"pending": 0
}
}{
"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