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

Me

"Me" returns the authenticated user's permissions within the system. It provides a comprehensive view of access rules (roles, subjects and scope) assigned to the current user. For more information see Access control.

List the access rules assigned to the requesting user.

get

Retrieve the access rules assigned to the requesting user.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
limitinteger · int32 · min: 1 · max: 500Optional

The maximum number of entries to return.

Default: 50
offsetinteger · int32Optional

The offset of the first item returned in the collection.

Example: 100
searchstringOptional

Filter results by a free text search.

Example: test project
Responses
200

Executed successfully.

application/json
get/api/v1/authorization/me/access-rules
GET /api/v1/authorization/me/access-rules HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "accessRules": {
    "totalRecords": 1,
    "displayRecords": 1,
    "accessRules": [
      {
        "subjectId": "user@run.ai",
        "subjectType": null,
        "roleId": 53142648,
        "scopeId": "a418ed33-9399-48c0-a890-122cadd13bfd",
        "scopeType": null,
        "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
        "roleName": "admin",
        "scopeName": "tenant-x",
        "id": 32,
        "tenantId": 1001
      }
    ]
  }
}

Count the access rules assigned to the requesting user.

get

Use to retrieve the number of access rules assigned to the requesting user.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
searchstringOptional

Filter results by a free text search.

Example: test project
Responses
200

Executed successfully.

application/json
countinteger · int64RequiredExample: 1
get/api/v1/authorization/me/access-rules/count
GET /api/v1/authorization/me/access-rules/count HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "count": 1
}

Last updated