Roles
A role is a group of permissions that can be granted. Permissions are a set of actions that can be applied to entities. For more information, see Roles.
Use to retrieve a list of roles.
Authorizations
AuthorizationstringRequired
Bearer authentication
Responses
200
Executed successfully.
application/json
namestringRequiredExample:
admindescriptionstringRequiredExample:
can manage all resourcesenabledboolean · nullableOptionalDefault:
trueidinteger · int32RequiredExample:
32createdAtstring · date-timeRequired
updatedAtstring · date-timeRequired
deletedAtstring · date-time · nullableOptional
createdBystringRequiredExample:
user@run.aicustombooleanRequired
effectiveEnabledbooleanRequiredDefault:
true400
Bad request.
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
500
unexpected error
application/json
503
unexpected error
application/json
get/api/v1/authorization/roles
GET /api/v1/authorization/roles HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"name": "admin",
"description": "can manage all resources",
"permissions": [
{
"resourceType": "department",
"displayName": "Projects",
"groupId": "organization",
"actions": [
"create"
]
}
],
"enabled": true,
"kubernetesPermissions": {
"predefinedRole": "12"
},
"id": 32,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"deletedAt": "2026-01-01T00:00:00.000Z",
"createdBy": "user@run.ai",
"custom": true,
"effectiveEnabled": true
}
]Retrieve the details of a role by id.
Authorizations
AuthorizationstringRequired
Bearer authentication
Path parameters
roleIdPathinteger · int32RequiredExample:
The id of the role to retrieve
32Responses
200
Executed successfully.
application/json
namestringRequiredExample:
admindescriptionstringRequiredExample:
can manage all resourcesenabledboolean · nullableOptionalDefault:
trueidinteger · int32RequiredExample:
32createdAtstring · date-timeRequired
updatedAtstring · date-timeRequired
deletedAtstring · date-time · nullableOptional
createdBystringRequiredExample:
user@run.aicustombooleanRequired
effectiveEnabledbooleanRequiredDefault:
true400
Bad request.
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
The specified resource was not found
application/json
500
unexpected error
application/json
503
unexpected error
application/json
get/api/v1/authorization/roles/{roleIdPath}
GET /api/v1/authorization/roles/{roleIdPath} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "admin",
"description": "can manage all resources",
"permissions": [
{
"resourceType": "department",
"displayName": "Projects",
"groupId": "organization",
"actions": [
"create"
]
}
],
"enabled": true,
"kubernetesPermissions": {
"predefinedRole": "12"
},
"id": 32,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"deletedAt": "2026-01-01T00:00:00.000Z",
"createdBy": "user@run.ai",
"custom": true,
"effectiveEnabled": true
}Last updated