Skycloak OpenFGA Instances API

The OpenFGA Instances API from Skycloak — 2 operation(s) for openfga instances.

GitHub OpenAPI

Operations 4

GET /clusters/{cluster_id}/openfga-instances List a cluster's OpenFGA instances #
POST /clusters/{cluster_id}/openfga-instances Create an OpenFGA instance #
GET /clusters/{cluster_id}/openfga-instances/{instance_id} Get an OpenFGA instance #
DELETE /clusters/{cluster_id}/openfga-instances/{instance_id} Delete an OpenFGA instance #

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/skycloak-io:skycloak-io-openfga-instances-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

skycloak-io-openfga-instances-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Skycloak Public OpenFGA Instances API
  version: '2026-03-01'
  contact:
    name: Skycloak Support
    url: https://support.skycloak.io
  license:
    name: Proprietary
  description: Programmatic management of Keycloak infrastructure on the Skycloak platform.
servers:
- url: http://localhost:8000
  description: Local development
  variables: {}
tags:
- name: OpenFGA Instances
paths:
  /clusters/{cluster_id}/openfga-instances:
    get:
      operationId: listOpenFGAInstances
      summary: List a cluster's OpenFGA instances
      description: 'Returns the OpenFGA instances bound to the cluster''s realms. Listing works on every

        plan, so a workspace that lost access still sees what it has.


        Required scope: `openfga:read`'
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/ClusterId'
      - $ref: '#/components/parameters/CommonParameters'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenFGAInstanceList'
        '401':
          description: Access is unauthorized.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '403':
          description: Access is forbidden.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '404':
          description: The server cannot find the requested resource.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '429':
          description: Client error
          headers:
            Retry-After:
              required: false
              schema:
                type: integer
            RateLimit-Limit:
              required: false
              schema:
                type: integer
            RateLimit-Remaining:
              required: false
              schema:
                type: integer
            RateLimit-Reset:
              required: false
              schema:
                type: integer
            X-RateLimit-Limit-Second:
              required: false
              schema:
                type: integer
            X-RateLimit-Remaining-Second:
              required: false
              schema:
                type: integer
            X-RateLimit-Limit-Minute:
              required: false
              schema:
                type: integer
            X-RateLimit-Remaining-Minute:
              required: false
              schema:
                type: integer
            X-RateLimit-Limit-Hour:
              required: false
              schema:
                type: integer
            X-RateLimit-Remaining-Hour:
              required: false
              schema:
                type: integer
            X-RateLimit-Limit-Day:
              required: false
              schema:
                type: integer
            X-RateLimit-Remaining-Day:
              required: false
              schema:
                type: integer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '500':
          description: Server error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '501':
          description: Server error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
      tags:
      - OpenFGA Instances
      security:
      - ApiKeyAuth: []
      x-scopes:
      - openfga:read
    post:
      operationId: createOpenFGAInstance
      summary: Create an OpenFGA instance
      description: 'Creates an OpenFGA instance bound to one realm of the cluster. The instance starts in

        `provisioning`.


        Returns `403` when the workspace''s plan does not include OpenFGA or the workspace has

        reached its instance limit, `409` when the realm already has an instance, and `422`

        when the realm is `master`, does not exist or is disabled.


        Required scope: `openfga:write`'
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/ClusterId'
      - $ref: '#/components/parameters/CommonParameters'
      responses:
        '202':
          description: The instance was saved and is provisioning. Poll `GET /clusters/{cluster_id}/openfga-instances/{instance_id}` until `status` is `ready` or `failed`.
          headers:
            Location:
              required: true
              description: URL of the resource being created or modified. Poll this endpoint to track completion.
              schema:
                type: string
                format: uri
            Retry-After:
              required: false
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenFGAInstance'
        '401':
          description: Access is unauthorized.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '403':
          description: Access is forbidden.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '404':
          description: The server cannot find the requested resource.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '409':
          description: The request conflicts with the current state of the server.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '422':
          description: Client error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ValidationErrorBody'
        '429':
          description: Client error
          headers:
            Retry-After:
              required: false
              schema:
                type: integer
            RateLimit-Limit:
              required: false
              schema:
                type: integer
            RateLimit-Remaining:
              required: false
              schema:
                type: integer
            RateLimit-Reset:
              required: false
              schema:
                type: integer
            X-RateLimit-Limit-Second:
              required: false
              schema:
                type: integer
            X-RateLimit-Remaining-Second:
              required: false
              schema:
                type: integer
            X-RateLimit-Limit-Minute:
              required: false
              schema:
                type: integer
            X-RateLimit-Remaining-Minute:
              required: false
              schema:
                type: integer
            X-RateLimit-Limit-Hour:
              required: false
              schema:
                type: integer
            X-RateLimit-Remaining-Hour:
              required: false
              schema:
                type: integer
            X-RateLimit-Limit-Day:
              required: false
              schema:
                type: integer
            X-RateLimit-Remaining-Day:
              required: false
              schema:
                type: integer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '500':
          description: Server error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '501':
          description: Server error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
      tags:
      - OpenFGA Instances
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOpenFGAInstanceRequest'
      security:
      - ApiKeyAuth: []
      x-scopes:
      - openfga:write
  /clusters/{cluster_id}/openfga-instances/{instance_id}:
    get:
      operationId: getOpenFGAInstance
      summary: Get an OpenFGA instance
      description: 'Returns one instance with its status, API URL, issuer and audience.


        Required scope: `openfga:read`'
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/ClusterId'
      - name: instance_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/OpenFGAInstanceId'
      - $ref: '#/components/parameters/CommonParameters'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenFGAInstance'
        '401':
          description: Access is unauthorized.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '403':
          description: Access is forbidden.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '404':
          description: The server cannot find the requested resource.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '429':
          description: Client error
          headers:
            Retry-After:
              required: false
              schema:
                type: integer
            RateLimit-Limit:
              required: false
              schema:
                type: integer
            RateLimit-Remaining:
              required: false
              schema:
                type: integer
            RateLimit-Reset:
              required: false
              schema:
                type: integer
            X-RateLimit-Limit-Second:
              required: false
              schema:
                type: integer
            X-RateLimit-Remaining-Second:
              required: false
              schema:
                type: integer
            X-RateLimit-Limit-Minute:
              required: false
              schema:
                type: integer
            X-RateLimit-Remaining-Minute:
              required: false
              schema:
                type: integer
            X-RateLimit-Limit-Hour:
              required: false
              schema:
                type: integer
            X-RateLimit-Remaining-Hour:
              required: false
              schema:
                type: integer
            X-RateLimit-Limit-Day:
              required: false
              schema:
                type: integer
            X-RateLimit-Remaining-Day:
              required: false
              schema:
                type: integer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '500':
          description: Server error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '501':
          description: Server error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
      tags:
      - OpenFGA Instances
      security:
      - ApiKeyAuth: []
      x-scopes:
      - openfga:read
    delete:
      operationId: deleteOpenFGAInstance
      summary: Delete an OpenFGA instance
      description: 'Removes the instance''s deployment, route and database, and all of its authorization

        data. This cannot be undone. Works without OpenFGA access.


        Returns `202` while the instance is being removed and `204` when it is already gone.


        Required scope: `openfga:write`'
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/ClusterId'
      - name: instance_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/OpenFGAInstanceId'
      - $ref: '#/components/parameters/CommonParameters'
      responses:
        '202':
          description: The instance is being removed and `status` is `deleting`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenFGAInstance'
        '204':
          description: There is no content to send for this request, but the headers may be useful.
        '401':
          description: Access is unauthorized.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '403':
          description: Access is forbidden.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '404':
          description: The server cannot find the requested resource.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '429':
          description: Client error
          headers:
            Retry-After:
              required: false
              schema:
                type: integer
            RateLimit-Limit:
              required: false
              schema:
                type: integer
            RateLimit-Remaining:
              required: false
              schema:
                type: integer
            RateLimit-Reset:
              required: false
              schema:
                type: integer
            X-RateLimit-Limit-Second:
              required: false
              schema:
                type: integer
            X-RateLimit-Remaining-Second:
              required: false
              schema:
                type: integer
            X-RateLimit-Limit-Minute:
              required: false
              schema:
                type: integer
            X-RateLimit-Remaining-Minute:
              required: false
              schema:
                type: integer
            X-RateLimit-Limit-Hour:
              required: false
              schema:
                type: integer
            X-RateLimit-Remaining-Hour:
              required: false
              schema:
                type: integer
            X-RateLimit-Limit-Day:
              required: false
              schema:
                type: integer
            X-RateLimit-Remaining-Day:
              required: false
              schema:
                type: integer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '500':
          description: Server error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '501':
          description: Server error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
      tags:
      - OpenFGA Instances
      security:
      - ApiKeyAuth: []
      x-scopes:
      - openfga:write
components:
  schemas:
    Versions:
      type: string
      enum:
      - 2026-06-01.beta
    OpenFGAInstanceId:
      type: string
      format: uuid
      description: OpenFGA instance identifier.
    ValidationErrorBody:
      type: object
      required:
      - type
      - title
      - status
      - detail
      - errors
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        instance:
          type: string
          format: uri
        errors:
          type: array
          items:
            $ref: '#/components/schemas/FieldError'
          minItems: 1
    CreateOpenFGAInstanceRequest:
      type: object
      required:
      - realm
      properties:
        realm:
          type: string
          x-oapi-codegen-extra-tags:
            validate: omitnil,max=500
          minLength: 1
          description: The realm to bind. It must exist and be enabled on the cluster, must not be `master`, and must not already have an instance.
      example:
        realm: my-service
    OpenFGAInstanceStatus:
      type: string
      enum:
      - provisioning
      - ready
      - failed
      - deleting
    FieldError:
      type: object
      required:
      - field
      - detail
      properties:
        field:
          type: string
        detail:
          type: string
        code:
          type: string
        value: {}
    ClusterId:
      type: string
      format: uuid
    OpenFGAInstanceList:
      type: object
      required:
      - instances
      properties:
        instances:
          type: array
          items:
            $ref: '#/components/schemas/OpenFGAInstance'
          description: The cluster's instances.
    ErrorBody:
      type: object
      required:
      - type
      - title
      - status
      - detail
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        instance:
          type: string
          format: uri
      description: RFC 9457 Problem Details object.
    OpenFGAInstance:
      type: object
      required:
      - id
      - cluster_id
      - realm
      - status
      - api_url
      - issuer
      - audience
      - created_at
      - updated_at
      properties:
        id:
          $ref: '#/components/schemas/OpenFGAInstanceId'
        cluster_id:
          $ref: '#/components/schemas/ClusterId'
        realm:
          type: string
          x-oapi-codegen-extra-tags:
            validate: omitnil,max=500
          description: The realm the instance is bound to. Chosen when the instance is created and never changed.
        status:
          $ref: '#/components/schemas/OpenFGAInstanceStatus'
        status_message:
          type: string
          x-oapi-codegen-extra-tags:
            validate: omitnil,max=500
          description: The reason the instance is `failed`.
        api_url:
          type: string
          x-oapi-codegen-extra-tags:
            validate: omitnil,max=500
          format: uri
          description: Where the instance's OpenFGA API answers.
        issuer:
          type: string
          x-oapi-codegen-extra-tags:
            validate: omitnil,max=500
          format: uri
          description: The issuer the instance trusts. Only tokens from this issuer are accepted.
        audience:
          type: string
          x-oapi-codegen-extra-tags:
            validate: omitnil,max=500
          description: The audience a token must carry. Add an audience mapper for this value to the realm's client.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      example:
        id: 7c9e6679-7425-40de-944b-e07fc1f90ae7
        cluster_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        realm: my-service
        status: ready
        api_url: https://openfga-7c9e6679.eu.skycloak.io
        issuer: https://auth.example.com/realms/my-service
        audience: https://openfga-7c9e6679.eu.skycloak.io
        created_at: '2026-11-05T10:00:00Z'
        updated_at: '2026-11-05T10:02:10Z'
  parameters:
    CommonParameters:
      name: API-Version
      in: header
      required: true
      schema:
        $ref: '#/components/schemas/Versions'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: API-Key