AgentAllowance

A request or response body; the type column links to the schemas it refers to.

AgentAllowance

FieldTypeRequiredDescription
agents_enabledbooleanyes

Whether the caller's role limits allow agents.

modelsarray of objectyes

The models the caller may start a session on, the default first.

default_model_idstring | nullyes—
daily_turn_limitinteger | nullyes

Null for no limit.

turns_todayintegeryes—
daily_token_limitinteger | nullyes

Null for no limit.

tokens_todayintegeryes—
max_sessionsinteger | nullyes

Open sessions the caller may keep; archived ones do not count. Null for no limit.

session_countintegeryes

The caller's open sessions.

allowed_scopesarray of stringyes

The scopes the role limits let agents use: what a new session may be granted (`scopes` when starting one).

delegated_scopesarray of stringyes

The scopes an agent's delegated token is asked for: what the role limits allow, cut down to what the caller's own token carries, and with them the base scopes every agent is delegated (`mcp:use`, `account:read`, `directory:read`) that the token carries. Empty when the token carries none of what the role limits allow.

missing_scopesarray of stringyes

The scopes the role limits let agents use, and the base scopes every agent is delegated (`mcp:use`, without which agents reach nothing, among them), that the caller's own token lacks, so agents cannot be delegated them. A refresh never adds a scope; signing in again does, when `step_up_provider` is set.

step_up_providerstring | nullyes

Slug of the sign-in provider to sign in with again (`/auth/login?provider=<slug>`) to pick up `missing_scopes`: set when scopes are missing and the provider this token came from asks for the API's scopes at sign-in. Null when nothing is missing, or when signing in again would not help because the provider is not set to ask for them.

scopes_enforcedbooleanyes

Whether tokens missing a scope are refused on this deployment. While they are only reported, an agent whose token lacks `mcp:use` still reaches the MCP server.

mcp_server_enabledbooleanyes

Whether the MCP server is on, so agents can reach the learning records at all.

attachments_enabledbooleanyes

Whether messages may carry files: whether the deployment has a blob store to keep them in.

can_archivebooleanyes

Whether this token carries `agent-sessions:archive`, to archive and restore sessions.

can_deletebooleanyes

Whether the caller is a superuser and this token carries `agent-sessions:delete`, to delete sessions permanently.

quiz_in_progressobject | nullyes

The quiz attempt the caller is sitting, if any. Agents take no new session or turn until it is submitted or its deadline passes. Null when no attempt is open.

jsonExample
{
  "agents_enabled": true,
  "models": [
    {
      "id": "string",
      "label": "string",
      "description": "string"
    }
  ],
  "default_model_id": "string",
  "daily_turn_limit": 0,
  "turns_today": 0,
  "daily_token_limit": 0,
  "tokens_today": 0,
  "max_sessions": 0,
  "session_count": 0,
  "allowed_scopes": [
    "records:read",
    "records:write",
    "certifications:read"
  ],
  "delegated_scopes": [
    "account:read",
    "certifications:read",
    "directory:read",
    "mcp:use",
    "records:read"
  ],
  "missing_scopes": [
    "records:write"
  ],
  "step_up_provider": "botree-auth",
  "scopes_enforced": true,
  "mcp_server_enabled": true,
  "attachments_enabled": true,
  "can_archive": true,
  "can_delete": true,
  "quiz_in_progress": {
    "attempt_id": "1b671a64-40d5-491e-99b0-da01ff1f3341",
    "quiz_id": "1b671a64-40d5-491e-99b0-da01ff1f3341",
    "quiz_name": "string",
    "deadline_at": "2026-01-01T00:00:00.000Z"
  }
}