ClarifyAPI
Billing

Get the credit balance

Returns the credits included, spent, and remaining in the current billing period, with the overage settings and spend. The member spend limit fields describe the calling user. For an API key with no user, userSpend is 0 and seatLimit is null.

GET
/workspaces/{workspace}/billing/stats
Authorization<token>

API key authentication. Send your key in the Authorization header as: api-key <your-api-key>.

In: header

Path Parameters

workspace*string

The workspace slug — the {slug} segment of your Clarify workspace URL.

Header Parameters

clarify-version?string

The API version for this request. Send 2026-01 to get the behavior documented here. Omit it to use your API key's version, which this header can raise but not lower.

Response Body

application/json

curl -X GET "https://example.com/workspaces/string/billing/stats" \  -H "clarify-version: 2026-01"
{  "allowed": 1000,  "used": 640,  "remaining": 360,  "overagesAllowed": true,  "overageSpend": 0,  "overageSpendLimit": 100,  "overageCreditCost": 0.05,  "currentPeriod": {    "start": "2026-01-01T00:00:00.000Z",    "end": "2026-01-31T00:00:00.000Z"  },  "seatLimitPeriod": {    "start": "2026-01-01T00:00:00.000Z",    "end": "2026-01-31T00:00:00.000Z",    "resetsAt": "2026-02-01T00:00:00.000Z"  },  "userSpend": 0,  "seatLimit": null}