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
X-API-Key<token>

Your Sim API key, personal or workspace-scoped. Generate one under Settings, then API Keys. Operations that reject workspace keys say so in their own description.

In: header

Query Parameters

workspaceId?string

Workspace whose payer should be resolved. A workspace API key is pinned to its own workspace: any other id answers 404 Workspace not found, which is also what an id that does not exist answers.

Length1 <= length <= 128

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://www.sim.ai/api/v2/billing/status" \  -H "X-API-Key: YOUR_API_KEY"
{
  "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
    }
  }
}
{
  "error": {
    "code": "BAD_REQUEST",
    "message": "Invalid request"
  }
}
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Authentication required"
  }
}
{
  "error": {
    "code": "FORBIDDEN",
    "message": "Insufficient workspace permissions",
    "details": {
      "code": "INSUFFICIENT_WORKSPACE_ROLE"
    }
  }
}
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Not found"
  }
}
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "API rate limit exceeded",
    "details": {
      "retryAfter": "2026-01-01T00:00:30.000Z"
    }
  }
}
{
  "error": {
    "code": "INTERNAL_ERROR",
    "message": "Internal server error"
  }
}
{
  "error": {
    "code": "SERVICE_UNAVAILABLE",
    "message": "Service temporarily unavailable"
  }
}