latestOpenAPI 3.1.02026-08-223391355.6 KB

aa8d44585147

billing-usage

Get workspace credit balance

Plan: Enterprise

Returns the workspace's aggregated credit balance, daily limit, billing-period usage, expiring grants, and per-bucket balances.

get/v1/workspaces/{workspace_id}/billing/credit-balance

Path parameters

workspace_idstring required

Workspace ID

Workspace ID

Response

OK

daily_limitnumber double required

Daily credit limit for this workspace.

daily_remainingnumber double required

Remaining credits from today's daily grants.

total_billing_period_usednumber double required

Credits used in the current billing period (see billing_period for the exact window).

total_grantednumber double required

Total credits granted across all active grants.

total_remainingnumber double required

Total remaining credits across all active grants.