Levain LabsLevain Labs
ApiBilling

Read Balance

Return the workspace's current balance, monthly usage, and sandbox runtime.

Return the workspace's current balance, monthly usage, and sandbox runtime.

GET
/api/v1/billing/balance

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Header Parameters

X-API-Key?string|null

Response Body

application/json

application/json

curl -X GET "https://api.levainlabs.com/api/v1/billing/balance"
{
  "balance_usd_micros": 0,
  "current_month_spend_usd_micros": 0,
  "extra_usage_limit_usd_micros": 0,
  "current_month_extra_usage_usd_micros": 0,
  "included_credits": 0,
  "included_credits_remaining": 0,
  "topup_credits_per_usd": 0,
  "current_month_sandbox_minutes": 0
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}