Ory

Ory Permissions API

Keto permission checks, expand, and namespace reads.

Operations 6

GET /relation-tuples/check Check a permission #
POST /relation-tuples/check Check a permission (POST body) #
POST /relation-tuples/batch/check Batch-check permissions #
GET /relation-tuples/expand Expand a subject set #
GET /relation-tuples Query relationship tuples #
GET /namespaces List permission namespaces #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ory-permissions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ory-permissions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ory Network Permissions API
  description: Ory is open-source identity and access infrastructure, delivered as the Ory Network managed cloud.
  version: '1.0'
  contact:
    name: Ory
    url: https://www.ory.com
  license:
    name: Apache-2.0
    url: https://github.com/ory/kratos/blob/master/LICENSE
servers:
- url: https://{project-slug}.projects.oryapis.com
  description: Ory Network project (Kratos, Hydra, Keto, Courier)
  variables:
    project-slug:
      default: your-project-slug
      description: The slug of your Ory Network project.
- url: https://api.console.ory.sh
  description: Ory Network Console API (control plane)
security:
- oryApiKey: []
tags:
- name: Permissions
  description: Keto permission checks, expand, and namespace reads.
paths:
  /relation-tuples/check:
    get:
      operationId: checkPermission
      tags:
      - Permissions
      summary: Check a permission
      parameters:
      - name: namespace
        in: query
        required: true
        schema:
          type: string
      - name: object
        in: query
        required: true
        schema:
          type: string
      - name: relation
        in: query
        required: true
        schema:
          type: string
      - name: subject_id
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Whether the relationship exists.
          content:
            application/json:
              schema:
                type: object
                properties:
                  allowed:
                    type: boolean
    post:
      operationId: checkPermissionOrError
      tags:
      - Permissions
      summary: Check a permission (POST body)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RelationTuple'
      responses:
        '200':
          description: Whether the relationship exists.
          content:
            application/json:
              schema:
                type: object
                properties:
                  allowed:
                    type: boolean
  /relation-tuples/batch/check:
    post:
      operationId: batchCheckPermission
      tags:
      - Permissions
      summary: Batch-check permissions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tuples:
                  type: array
                  items:
                    $ref: '#/components/schemas/RelationTuple'
      responses:
        '200':
          description: The per-tuple results.
  /relation-tuples/expand:
    get:
      operationId: expandPermissions
      tags:
      - Permissions
      summary: Expand a subject set
      parameters:
      - name: namespace
        in: query
        required: true
        schema:
          type: string
      - name: object
        in: query
        required: true
        schema:
          type: string
      - name: relation
        in: query
        required: true
        schema:
          type: string
      - name: max-depth
        in: query
        required: false
        schema:
          type: integer
      responses:
        '200':
          description: The expansion tree.
  /relation-tuples:
    get:
      operationId: listRelationTuples
      tags:
      - Permissions
      summary: Query relationship tuples
      parameters:
      - name: namespace
        in: query
        required: true
        schema:
          type: string
      - name: object
        in: query
        required: false
        schema:
          type: string
      - name: relation
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: The matching relationship tuples.
          content:
            application/json:
              schema:
                type: object
                properties:
                  relation_tuples:
                    type: array
                    items:
                      $ref: '#/components/schemas/RelationTuple'
  /namespaces:
    get:
      operationId: listRelationshipNamespaces
      tags:
      - Permissions
      summary: List permission namespaces
      responses:
        '200':
          description: The configured namespaces.
components:
  schemas:
    RelationTuple:
      type: object
      required:
      - namespace
      - object
      - relation
      properties:
        namespace:
          type: string
        object:
          type: string
        relation:
          type: string
        subject_id:
          type: string
        subject_set:
          type: object
          properties:
            namespace:
              type: string
            object:
              type: string
            relation:
              type: string
  securitySchemes:
    oryApiKey:
      type: http
      scheme: bearer
      description: 'Ory API key. Project admin endpoints use an Ory project API key (ory_pat_...); Console endpoints use a workspace API key (ory_wak_...). Passed as `Authorization: Bearer <token>`.'