Usage

Read usage and limits

The caller's own usage and limits for the current billing period (the UTC calendar month). The organization comes from the API key, never from the request.

AuthBearer key
GroupUsage
GET/v1/usage

HTTP client

Set up your HTTP client with the auth header before calling the API. Match the authentication type shown above.

const BASE_URL = 'https://cells-api.mudbase.dev';
const HEADERS = {
  'Authorization': 'Bearer YOUR_JWT_TOKEN',
  'Content-Type': 'application/json',
};
const BASE_URL = 'https://cells-api.mudbase.dev';
const HEADERS = {
  'Authorization': 'Bearer YOUR_JWT_TOKEN',
  'Content-Type': 'application/json',
};

Example request

Call this endpoint using the client from SDK setup. Use View HTTP for a raw cURL example.

const res = await fetch('https://cells-api.mudbase.dev/v1/usage', {
  method: 'GET',
  headers: HEADERS,
});
const data = await res.json();
const res = await fetch('https://cells-api.mudbase.dev/v1/usage', {
  method: 'GET',
  headers: HEADERS,
});
const data = await res.json();

Playground

read-only

Build a request example for this endpoint. Read-only: the playground does not send requests. Run the request with curl or the SDK.

No Request Yet

Send a request to see the full inspector

Authentication

Requires Bearer key
Note
Include your API key in the Authorization: Bearer YOUR_KEY header. View authentication guide →

Responses

200Success
json
{
  "schema": "mudbase.cells.usage.v2",
  "internal": true,
  "period": {
    "start": "2026-10-07T20:43:54.934Z",
    "end": "2026-10-20T07:55:25.624Z"
  },
  "plan": "bandwidth input",
  "usage": {
    "cpuHours": 261.42,
    "memoryGbHours": 248.31,
    "storageGbMonths": 533.84,
    "checkpointGbMonths": 328.75,
    "egressGb": 636.23,
    "runningCells": 7621
  },
  "limits": [
    {
      "name": "Alexane Anderson PhD",
      "used": 651.17,
      "limit": 732.92,
      "percent": 970.79,
      "state": "ok"
    }
  ],
  "capped": "program transmit",
  "trial": "circuit override",
  "upgradeUrl": "https://perky-swath.org"
}
{
  "schema": "mudbase.cells.usage.v2",
  "internal": true,
  "period": {
    "start": "2026-10-07T20:43:54.934Z",
    "end": "2026-10-20T07:55:25.624Z"
  },
  "plan": "bandwidth input",
  "usage": {
    "cpuHours": 261.42,
    "memoryGbHours": 248.31,
    "storageGbMonths": 533.84,
    "checkpointGbMonths": 328.75,
    "egressGb": 636.23,
    "runningCells": 7621
  },
  "limits": [
    {
      "name": "Alexane Anderson PhD",
      "used": 651.17,
      "limit": 732.92,
      "percent": 970.79,
      "state": "ok"
    }
  ],
  "capped": "program transmit",
  "trial": "circuit override",
  "upgradeUrl": "https://perky-swath.org"
}
401Missing or invalid authentication

Errors

CodeMeaning
401Missing or invalid authentication
Edit this page on GitHub