Skip to content

API documentation

See the account’s usage

What the key’s account has used against its plan, and its most recent calls with their outcome or refusal code.

REST: GET /v1/usage MCP tool: usage_list Needs an API key
Refusal codes
  • input_invalid (400) The request does not match the action’s input schema.
  • key_missing (401) This action needs an API key (Authorization: Bearer <key>).
  • key_invalid (401) The API key is unknown, revoked or expired.
  • rate_limited (429) Too many requests from this client; slow down.
  • database_unavailable (503) The ledger database cannot be reached right now.
Input (JSON Schema)
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 20
    }
  },
  "required": [],
  "$schema": "http://json-schema.org/draft-07/schema#"
}