Skip to content

Billing

Get billing status

Get the current plan, billing standing, credit allowance, and storage quota. Pooled `credits` and `storage` are visible only to callers who can manage the payer's billing; workspace API keys receive null for both. Use List billing logs for credit history. OAuth scope: `api:read`.

GET/api/v2/billing/status

Get the current plan, billing standing, credit allowance, and storage quota. Pooled credits and storage are visible only to callers who can manage the payer's billing; workspace API keys receive null for both. Use List billing logs for credit history.

OAuth scope: api:read.

Authentication

Send a personal or workspace API key in X-API-Key. See key types and access; operations that reject workspace keys say so in their description.

Send X-API-Key in the request header.

Alternatively

Send a Sim OAuth access token in Authorization: Bearer. See OAuth authentication and scopes.

Authorization: Bearer YOUR_ACCESS_TOKEN

Required scopes: api:read

OAuth flows
json
{
  "authorizationCode": {
    "authorizationUrl": "https://www.sim.ai/api/auth/oauth2/authorize",
    "tokenUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "refreshUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "scopes": {
      "api:read": "Read your workspaces, workflows, files, tables, and logs",
      "api:write": "Read, create, change, run, and delete resources in your workspaces",
      "offline_access": "Stay signed in without asking again"
    }
  }
}

OAuth scope: api:read.

Query parameters

workspaceIdstring

Workspace whose payer to report. A workspace API key is bound to its own workspace; a different or unknown ID returns 404 Workspace not found. Omit for account billing when using a personal API key or OAuth token.

minLength
1
maxLength
128

Responses

200

The current billing and storage status.

object

Current billing standing, credit allowance, and storage quota.

1 field
dataobjectRequired

Response data.

6 fields
workspaceIdvalueRequired

Workspace whose payer was resolved, or null for account billing.

Schema details

Any of

Option 1string
Option 2null
periodobjectRequired

Current subscription billing period. Without a Stripe subscription, including on Free, the bounds are 1970-01-01 to 9999-12-31; they do not represent a monthly window.

2 fields
startstringRequired

ISO 8601 start of the current billing period, or 1970-01-01T00:00:00.000Z when no Stripe subscription defines one.

format
date-time
endstringRequired

ISO 8601 end of the current billing period, or 9999-12-31T00:00:00.000Z when no Stripe subscription defines one.

format
date-time

Additional properties are not allowed.

planstringRequired

Current billing plan.

statusstringRequired

Current billing standing.

enum
["active","limit_exceeded","billing_blocked"]
creditsvalueRequired

The payer’s credit usage and allowance: per billing period on paid plans, lifetime on Free. Null when the caller cannot manage the payer’s billing, including every workspace API key.

Schema details

Any of

Option 1object
3 fields
usednumberRequired

Credits consumed during the current billing period on a paid plan, or over the account’s lifetime on Free.

limitnumberRequired

Credit allowance for the reporting window — per billing period on a paid plan, lifetime on the free plan.

remainingnumberRequired

Allowance minus consumption, over the same window.

Additional properties are not allowed.

Option 2null
storagevalueRequired

The payer's storage consumption and quota, or null when the caller cannot manage that payer's billing. Always null for a workspace API key.

Schema details

Any of

Option 1object
3 fields
usedBytesnumberRequired

Storage currently consumed, in bytes.

minimum
0
limitBytesnumberRequired

Storage quota, in bytes.

minimum
0
percentUsednumberRequired

Percentage of the storage quota consumed.

minimum
0

Additional properties are not allowed.

Option 2null

Additional properties are not allowed.

Additional properties are not allowed.

Response example 1

json
{
  "data": {
    "workspaceId": null,
    "period": {
      "start": "2026-07-01T00:00:00.000Z",
      "end": "2026-08-01T00:00:00.000Z"
    },
    "plan": "pro",
    "status": "active",
    "credits": {
      "used": 512,
      "limit": 20000,
      "remaining": 19488
    },
    "storage": {
      "usedBytes": 5242880,
      "limitBytes": 1073741824,
      "percentUsed": 0.48828125
    }
  }
}

Response headers

X-RateLimit-Limitinteger

Maximum requests allowed in the current window.

minimum
0
maximum
9007199254740991
X-RateLimit-Remaininginteger

Requests remaining in the current window.

minimum
0
maximum
9007199254740991
X-RateLimit-Resetstring

ISO 8601 timestamp when the current rate-limit window resets.

format
date-time
pattern
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
Was this helpful?
Suggest an edit