Get billing summary
GET/billing
Returns this workspace's spendable balance, whether a billable call would be accepted right now and why not, its subscription plan, and its usage for the current period. Never paywalled — a workspace that has run out of credits must still be able to read why.
Requires
Authorization: Bearer <api_key>. Create a key in the Inspra dashboard under Workspace Settings → API Keys.Response 200 OK
Billing summary for the workspace the API key belongs to.
- creditsobjectrequiredSpendable balance for this workspace. When
funding_sourceispartnerthe balance is the partner wallet the workspace draws on.7 fields
- balance_centsintegerrequiredCurrent balance in cents. Can be negative on postpaid plans.
- effective_rate_centsintegerrequiredCents charged for the next billable unit. Zero when the next unit costs nothing — included minutes remaining, an unlimited bolt-on, or a postpaid plan.
- usage_unitstringrequiredWhat
effective_rate_centsandestimated_remainingcount.minutecall - estimated_remainingintegernullableoptionalUnits the balance buys at
effective_rate_cents. Null when the rate is zero — not zero, which would read as an empty balance. - funding_sourcestringrequired
workspacepartner - is_low_balancebooleanrequiredBalance is at or below the workspace's configured low-balance threshold.
- is_billing_exemptbooleanrequiredWorkspace is funded by its partner rather than its own credits.
- callingobjectrequiredWhether a billable call would be accepted right now. This is the same check every billable mutation runs, so
allowed: falsehere and a 403 from a call always agree.2 fields
- allowedbooleanrequired
- reasonstringnullablerequiredWhy calling is blocked. Null when
allowedis true.
- planobjectrequired
2 variants
Option 1- namestringrequired
- billing_typestringrequired
prepaidpostpaid - charge_modelstringrequired
per_minuteper_call - statusstringrequiredSubscription status. A non-active status is reported as-is rather than hidden.
Option 2 - usageobjectrequiredUsage against the plan. The minute fields and
period_endare null for a workspace with no subscription;conversations_this_monthis always reported.5 fields
- included_minutesintegernullablerequired
- minutes_usedintegernullablerequiredMinutes used in the current billing period.
- conversations_this_monthintegerrequired
- max_conversations_per_monthintegernullablerequiredPlan cap on conversations per month. Null when uncapped.
- period_endstringnullabledate-timerequired
Errors
- 401UnauthorizedMissing, malformed, or invalid API key.
- 403ForbiddenWorkspace unavailable, suspended, or paywalled.
- 429Too Many RequestsWorkspace request limit exceeded; shared across all its API keys.