AiRoleLimit
A request or response body; the type column links to the schemas it refers to.
AiRoleLimit
| Field | Type | Required | Description |
|---|---|---|---|
| id | string (uuid) | yes | — |
| audience | string | yes | one of "everyone" | "trainers" | "superusers" | "role" |
| department_role_id | string (uuid) | null | yes | — |
| role | object | null | yes | The role a `role` rule is for. |
| agents_enabled | boolean | yes | May start agent sessions. |
| mcp_enabled | boolean | yes | May call the MCP server with a token of their own. |
| daily_turn_limit | integer | null | yes | Agent turns a day (UTC). Null for no limit. minimum 0 · maximum 2000000000 |
| daily_token_limit | integer | null | yes | Model tokens a day (UTC), input and output together. Null for no limit. minimum 0 · maximum 2000000000 |
| max_sessions | integer | null | yes | Open agent sessions at once; archived ones do not count. Null for no limit. minimum 0 · maximum 2000000000 |
| allowed_model_ids | array of string | yes | The models agents may run on; empty for every model the deployment offers. at most 50 items |
| delegated_scopes | array of string | yes | The most an agent's delegated token may carry, before it is cut down to the person's own token's scopes. Empty: agents get no learning record tools. at most 100 items |
| updated_at | string (date-time) | yes | — |
{
"id": "1b671a64-40d5-491e-99b0-da01ff1f3341",
"audience": "everyone",
"department_role_id": "1b671a64-40d5-491e-99b0-da01ff1f3341",
"role": {
"name": "string",
"department_name": "string",
"organization_name": "string",
"organization_slug": "string"
},
"agents_enabled": true,
"mcp_enabled": true,
"daily_turn_limit": 0,
"daily_token_limit": 0,
"max_sessions": 0,
"allowed_model_ids": [
"string"
],
"delegated_scopes": [
"records:read",
"certifications:read"
],
"updated_at": "2026-01-01T00:00:00.000Z"
}