Sign in
Docs
Have a token? Manage tokens in the console
GET
/v1/usage/limits

Your rolling windows for the scarce work (model generations and sandbox runs), a 5-hour and a weekly one by default: each window's limit in force now, what you used, what remains, when room comes back (resets_at) and a reason in plain words. Limits follow the platform's load (idle, normal or busy), and capacity_source says whether that load is configured or measured. admits is false while a window is limited. Reads and writes count only against the monthly units, and incident and paging work is never limited.

Needs scope usage:read.

Authorization

bearer
headerAuthorizationBearer <token>

An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (developers.inorbit.hr). The gateway verifies it; the audience is iohr-api.

Query Parameters

org_id?string

The account; empty for your own.

user_id?string

A member's user id, for an owner or admin of the account; empty for yourself.

Response Body

iohr.accounts.v1.GetUsageLimitsResponse

application/json
  1. response

iohr.accounts.v1.GetUsageLimitsResponse

account_id*string
admits*boolean
capacity_source*string
categories*array<string>
load*string
plan*string
user_id*string
utilization*integer
Formatint32
windows*array<>
import { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try {  const { value } = await api.accounts.getUsageLimits();  console.log(value);} catch (e) {  if (!(e instanceof ApiError)) throw e;  console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`);}

npm install @inorbithr/sdk. Calls the package's public surface; an operation newer than your package needs the next release or a client generated for your account. The SDKs.

{  "account_id": "string",  "admits": true,  "capacity_source": "string",  "categories": [    "string"  ],  "load": "string",  "plan": "string",  "user_id": "string",  "utilization": 0,  "windows": [    {      "base": "string",      "limit": "string",      "reason": "string",      "remaining": "string",      "resets_at": "string",      "seconds": "string",      "state": "string",      "used": "string",      "window": "string"    }  ]}