Levain LabsLevain Labs
API ReferenceOrganization

Get Org Usage

Credit balance and month-to-date usage across the org.

Credit balance and month-to-date usage across the org.

Credit is pooled: the balance covers every workspace in the org, and each workspace reports its own share of this month's usage so it can be attributed back to the end-customer it serves.

GET
/api/v1/org/usage

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/org/usage"
{
  "tier": "string",
  "balance_usd_micros": 0,
  "current_month_spend_usd_micros": 0,
  "workspaces": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "tier": "string",
      "headless": true,
      "lifecycle": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "current_month_spend_usd_micros": 0
    }
  ]
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}