For the complete documentation index, see llms.txt. This page is also available as Markdown.

Roles

Get All Roles

get
Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Responses
200

Successful Response

application/json
anyOptional
get/api/v1/roles_and_permissions
GET /api/v1/roles_and_permissions HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Successful Response

No content

Create Role

post
Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Body
role_namestringRequired
descriptionstring · nullableOptional
created_bystringRequired
can_submit_agentboolean · nullableOptionalDefault: false
can_create_background_jobboolean · nullableOptionalDefault: false
can_view_agent_traceboolean · nullableOptionalDefault: false
is_editableboolean · nullableOptionalDefault: true
Responses
200

Successful Response

application/json
role_idintegerRequired
role_namestringRequired
descriptionstring · nullableOptional
created_bystringRequired
can_submit_agentbooleanRequired
can_create_background_jobbooleanRequired
can_view_agent_tracebooleanRequired
is_editablebooleanRequired
post/api/v1/roles_and_permissions
POST /api/v1/roles_and_permissions HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 353

{
  "role_name": "text",
  "description": "text",
  "created_by": "text",
  "can_submit_agent": false,
  "can_create_background_job": false,
  "can_view_agent_trace": false,
  "options": [
    {
      "entity_name": "text",
      "entity_type": "LLMs",
      "entity_id": 1
    }
  ],
  "nav_permission": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "action_permission": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "is_editable": true
}
{
  "role_id": 1,
  "role_name": "text",
  "description": "text",
  "created_by": "text",
  "can_submit_agent": true,
  "can_create_background_job": true,
  "can_view_agent_trace": true,
  "options": [
    {
      "entity_name": "text",
      "entity_type": "LLMs",
      "entity_id": 1
    }
  ],
  "is_editable": true
}

Get Role

get
Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Path parameters
role_idintegerRequired
Responses
200

Successful Response

application/json
role_idintegerRequired
role_namestringRequired
descriptionstring · nullableOptional
created_bystringRequired
can_submit_agentbooleanRequired
can_create_background_jobbooleanRequired
can_view_agent_tracebooleanRequired
is_editablebooleanRequired
get/api/v1/roles_and_permissions/{role_id}
GET /api/v1/roles_and_permissions/{role_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "role_id": 1,
  "role_name": "text",
  "description": "text",
  "created_by": "text",
  "can_submit_agent": true,
  "can_create_background_job": true,
  "can_view_agent_trace": true,
  "options": [
    {
      "entity_name": "text",
      "entity_type": "LLMs",
      "entity_id": 1
    }
  ],
  "is_editable": true
}

Update Role

put
Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Path parameters
role_idintegerRequired
Body
role_namestring · nullableOptional
can_submit_agentboolean · nullableOptional
can_create_background_jobboolean · nullableOptional
can_view_agent_traceboolean · nullableOptional
is_editableboolean · nullableOptional
descriptionstring · nullableOptional
Responses
200

Successful Response

application/json
role_idintegerRequired
role_namestringRequired
descriptionstring · nullableOptional
created_bystringRequired
can_submit_agentbooleanRequired
can_create_background_jobbooleanRequired
can_view_agent_tracebooleanRequired
is_editablebooleanRequired
put/api/v1/roles_and_permissions/{role_id}
PUT /api/v1/roles_and_permissions/{role_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 215

{
  "role_name": "text",
  "can_submit_agent": true,
  "can_create_background_job": true,
  "can_view_agent_trace": true,
  "options": [
    {
      "entity_name": "text",
      "entity_type": "LLMs",
      "entity_id": 1
    }
  ],
  "is_editable": true,
  "description": "text"
}
{
  "role_id": 1,
  "role_name": "text",
  "description": "text",
  "created_by": "text",
  "can_submit_agent": true,
  "can_create_background_job": true,
  "can_view_agent_trace": true,
  "options": [
    {
      "entity_name": "text",
      "entity_type": "LLMs",
      "entity_id": 1
    }
  ],
  "is_editable": true
}

Delete Role

delete
Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Path parameters
role_idintegerRequired
Responses
200

Successful Response

application/json
anyOptional
delete/api/v1/roles_and_permissions/{role_id}
DELETE /api/v1/roles_and_permissions/{role_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Get All Custom Agents

get

Get all active custom agents for UI dropdowns.

Used when creating/editing roles to show available CustomAgents options.

Returns: List of active custom agents with basic info

Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Responses
200

Successful Response

application/json
anyOptional
get/api/v1/roles_and_permissions/custom_agents
GET /api/v1/roles_and_permissions/custom_agents HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Successful Response

No content

Reassign Users

post
Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Query parameters
to_role_idintegerRequired
Bodyobject · RoleOption[]
entity_namestringRequired
entity_typestring · enum · nullableOptionalPossible values:
entity_idinteger · nullableOptional
Responses
200

Successful Response

application/json
anyOptional
post/api/v1/roles_and_permissions/reassign_users
POST /api/v1/roles_and_permissions/reassign_users?to_role_id=1 HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 59

[
  {
    "entity_name": "text",
    "entity_type": "LLMs",
    "entity_id": 1
  }
]

No content

Get Role By Username

get
Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Path parameters
usernamestringRequired
Responses
200

Successful Response

application/json
anyOptional
get/api/v1/roles_and_permissions/get_role_by_username/{username}
GET /api/v1/roles_and_permissions/get_role_by_username/{username} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Get Users By Role

get
Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Path parameters
role_idintegerRequired
Responses
200

Successful Response

application/json
anyOptional
get/api/v1/roles_and_permissions/get_users_by_role/{role_id}
GET /api/v1/roles_and_permissions/get_users_by_role/{role_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Get Custom Agents By Role

get

Get custom agents assigned to a specific role.

Args: role_id: Role ID to get assigned agents for

Returns: List of custom agents assigned to the role

Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Path parameters
role_idintegerRequired
Responses
200

Successful Response

application/json
anyOptional
get/api/v1/roles_and_permissions/custom_agents/{role_id}
GET /api/v1/roles_and_permissions/custom_agents/{role_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Last updated