Get application access-control rules

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://openapi.logto.io/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"Logto API references MCP server": {
  "url": "https://openapi.logto.io/mcp"
}
Close
GET /api/applications/{applicationId}/access-control

Get the app-level access-control rule configuration for the specified application.

Path parameters

  • applicationId string Required

    The unique identifier of the application.

Responses

  • 200 application/json

    The app-level access-control rule configuration.

    Hide response attributes Show response attributes object
    • userIds array[string] Required
    • userRoleIds array[string] Required
    • organizationIds array[string] Required
    • organizationRoleRules array[object] Required
      Hide organizationRoleRules attributes Show organizationRoleRules attributes object
      • organizationId string Required
      • organizationRoleIds array[string] Required
  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    The application was not found.

GET /api/applications/{applicationId}/access-control
curl \
 --request GET 'https://[tenant_id].logto.app/api/applications/{applicationId}/access-control' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "userIds": [
    "string"
  ],
  "userRoleIds": [
    "string"
  ],
  "organizationIds": [
    "string"
  ],
  "organizationRoleRules": [
    {
      "organizationId": "string",
      "organizationRoleIds": [
        "string"
      ]
    }
  ]
}