AgentAllowance
A request or response body; the type column links to the schemas it refers to.
AgentAllowance
| Field | Type | Required | Description |
|---|---|---|---|
| agents_enabled | boolean | yes | Whether the caller's role limits allow agents. |
| models | array of object | yes | The models the caller may start a session on, the default first. |
| default_model_id | string | null | yes | — |
| daily_turn_limit | integer | null | yes | Null for no limit. |
| turns_today | integer | yes | — |
| daily_token_limit | integer | null | yes | Null for no limit. |
| tokens_today | integer | yes | — |
| max_sessions | integer | null | yes | Open sessions the caller may keep; archived ones do not count. Null for no limit. |
| session_count | integer | yes | The caller's open sessions. |
| allowed_scopes | array of string | yes | The scopes the role limits let agents use: what a new session may be granted (`scopes` when starting one). |
| delegated_scopes | array of string | yes | 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_scopes | array of string | yes | 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_provider | string | null | yes | 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_enforced | boolean | yes | 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_enabled | boolean | yes | Whether the MCP server is on, so agents can reach the learning records at all. |
| attachments_enabled | boolean | yes | Whether messages may carry files: whether the deployment has a blob store to keep them in. |
| can_archive | boolean | yes | Whether this token carries `agent-sessions:archive`, to archive and restore sessions. |
| can_delete | boolean | yes | Whether the caller is a superuser and this token carries `agent-sessions:delete`, to delete sessions permanently. |
| quiz_in_progress | object | null | yes | 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. |
{
"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"
}
}