Skycloak Realms API

The Realms API from Skycloak — 2 operation(s) for realms.

GitHub OpenAPI

Operations 5

GET /clusters/{cluster_id}/realms List realms #
POST /clusters/{cluster_id}/realms Create a realm #
GET /clusters/{cluster_id}/realms/{realm_name} Get a realm #
PATCH /clusters/{cluster_id}/realms/{realm_name} Update a realm #
DELETE /clusters/{cluster_id}/realms/{realm_name} Delete a realm #

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-realms-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-realms-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Skycloak Public Realms 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: Realms
paths:
  /clusters/{cluster_id}/realms:
    get:
      operationId: listRealms
      summary: List realms
      description: 'Returns all non-system realms for the specified cluster.


        Required scope: `realms: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:
                type: array
                items:
                  $ref: '#/components/schemas/Realm'
        '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'
        '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'
        '502':
          description: Server error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '503':
          description: Service unavailable.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
      tags:
      - Realms
      security:
      - ApiKeyAuth: []
      x-scopes:
      - realms:read
    post:
      operationId: createRealm
      summary: Create a realm
      description: 'Creates a new realm in the specified cluster. The cluster must be in the `available` state.


        Required scope: `realms:write`'
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/ClusterId'
      - $ref: '#/components/parameters/CommonParameters'
      responses:
        '201':
          description: The request has succeeded and a new resource has been created as a result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatedRealm'
        '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:
      - Realms
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRealmRequest'
      security:
      - ApiKeyAuth: []
      x-scopes:
      - realms:write
  /clusters/{cluster_id}/realms/{realm_name}:
    get:
      operationId: getRealm
      summary: Get a realm
      description: 'Returns a single realm by name.


        Required scope: `realms:read`'
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/ClusterId'
      - name: realm_name
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/RealmName'
      - $ref: '#/components/parameters/CommonParameters'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Realm'
        '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:
      - Realms
      security:
      - ApiKeyAuth: []
      x-scopes:
      - realms:read
    patch:
      operationId: updateRealm
      summary: Update a realm
      description: 'Partially updates realm settings.


        Required scope: `realms:write`'
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/ClusterId'
      - name: realm_name
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/RealmName'
      - $ref: '#/components/parameters/CommonParameters'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Realm'
        '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:
      - Realms
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateRealmRequest'
      security:
      - ApiKeyAuth: []
      x-scopes:
      - realms:write
    delete:
      operationId: deleteRealm
      summary: Delete a realm
      description: 'Permanently deletes the realm and all of its users, clients, and configuration. This action cannot be undone.


        Required scope: `realms:write`'
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/ClusterId'
      - name: realm_name
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/RealmName'
      - $ref: '#/components/parameters/CommonParameters'
      responses:
        '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:
      - Realms
      security:
      - ApiKeyAuth: []
      x-scopes:
      - realms:write
components:
  schemas:
    Versions:
      type: string
      enum:
      - 2026-06-01.beta
    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
    UpdateRealmRequest:
      type: object
      properties:
        display_name:
          allOf:
          - $ref: '#/components/schemas/RealmDisplayName'
          example: Customer Portal
        enabled:
          type: boolean
          description: Whether users can sign in to this realm.
          example: true
        ssl_required:
          $ref: '#/components/schemas/RealmSslRequired'
        registration_allowed:
          type: boolean
          description: Whether self-registration is open to anyone.
          example: false
        registration_email_as_username:
          type: boolean
          description: Whether email addresses are used as usernames during registration.
          example: false
        login_with_email_allowed:
          type: boolean
          description: Whether users can sign in with their email address instead of username.
          example: true
        duplicate_emails_allowed:
          type: boolean
          description: Whether multiple accounts may share the same email address.
          example: false
        frontend_url:
          type:
          - string
          - 'null'
          description: 'The public URL the realm serves on behind your own proxy: an `https` URL with a host and

            an optional port, and no path, query, fragment or credentials. Send `null` to clear it, so

            the issuer follows the request host again. Omit it to leave it unchanged.


            Changing it changes the realm''s issuer, its links and its passkey origin. Only realms on a

            dedicated cluster can set it (`403` otherwise), never the `master` realm (`422`), and never

            a realm that serves on a Skycloak custom domain (`409`).'
          example: https://login.example.com
      description: Patch request for updating realm settings. At least one field should be provided.
      example:
        enabled: false
    CreatedRealm:
      type: object
      required:
      - id
      - name
      - display_name
      - enabled
      - ssl_required
      - registration_allowed
      - registration_email_as_username
      - login_with_email_allowed
      - duplicate_emails_allowed
      properties:
        id:
          allOf:
          - $ref: '#/components/schemas/RealmId'
          example: 123e4567-e89b-12d3-a456-426614174000
        name:
          allOf:
          - $ref: '#/components/schemas/RealmName'
          example: customer-portal
        display_name:
          allOf:
          - $ref: '#/components/schemas/RealmDisplayName'
          example: Customer Portal
        enabled:
          type: boolean
          description: Whether users can sign in to this realm.
          example: true
        ssl_required:
          $ref: '#/components/schemas/RealmSslRequired'
        registration_allowed:
          type: boolean
          description: Whether self-registration is open to anyone.
          example: false
        registration_email_as_username:
          type: boolean
          description: Whether email addresses are used as usernames during registration.
          example: false
        login_with_email_allowed:
          type: boolean
          description: Whether users can sign in with their email address instead of username.
          example: true
        duplicate_emails_allowed:
          type: boolean
          description: Whether multiple accounts may share the same email address.
          example: false
        frontend_url:
          type:
          - string
          - 'null'
          description: 'The public URL the realm serves on when you put your own proxy in front of the cluster,

            or `null` when none is set. While it is set, the realm''s issuer is this URL followed by

            `/realms/{name}` whatever host a request arrives on. Always `null` for a realm that

            serves on a Skycloak custom domain.'
          example: https://login.example.com
        created_at:
          type: string
          format: date-time
          description: Time when the realm was created, when available.
        default_branding_applied:
          type: boolean
          description: 'Whether Skycloak''s default login branding was applied to the realm as part of this

            create. `false` when `apply_default_branding` was set to `false`, and also when the

            branding step failed: the realm is created either way, and branding can be applied

            from the realm''s Branding page.'
          example: true
      description: Realm details returned when a realm is created.
    CreateRealmRequest:
      type: object
      required:
      - name
      properties:
        name:
          allOf:
          - $ref: '#/components/schemas/RealmName'
          example: customer-portal
        display_name:
          allOf:
          - $ref: '#/components/schemas/RealmDisplayName'
          description: Human-friendly name for the realm. Defaults to `name` when omitted.
          example: Customer Portal
        apply_default_branding:
          type: boolean
          description: 'Whether to apply Skycloak''s default login branding to the new realm. Defaults to `true`

            when omitted, so the realm serves the Skycloak look instead of the stock Keycloak login

            page. Set to `false` to leave the realm''s themes untouched. Branding can always be

            applied or reset later from the realm''s Branding page.'
          example: true
          default: true
      description: Request body for creating a realm. If `display_name` is omitted, the realm name is used.
      example:
        name: customer-portal
        display_name: Customer Portal
    FieldError:
      type: object
      required:
      - field
      - detail
      properties:
        field:
          type: string
        detail:
          type: string
        code:
          type: string
        value: {}
    ClusterId:
      type: string
      format: uuid
    RealmId:
      type: string
      format: uuid
      description: Keycloak realm ID. This is a UUID generated by Keycloak.
      example: 123e4567-e89b-12d3-a456-426614174000
    Realm:
      type: object
      required:
      - id
      - name
      - display_name
      - enabled
      - ssl_required
      - registration_allowed
      - registration_email_as_username
      - login_with_email_allowed
      - duplicate_emails_allowed
      properties:
        id:
          allOf:
          - $ref: '#/components/schemas/RealmId'
          example: 123e4567-e89b-12d3-a456-426614174000
        name:
          allOf:
          - $ref: '#/components/schemas/RealmName'
          example: customer-portal
        display_name:
          allOf:
          - $ref: '#/components/schemas/RealmDisplayName'
          example: Customer Portal
        enabled:
          type: boolean
          description: Whether users can sign in to this realm.
          example: true
        ssl_required:
          $ref: '#/components/schemas/RealmSslRequired'
        registration_allowed:
          type: boolean
          description: Whether self-registration is open to anyone.
          example: false
        registration_email_as_username:
          type: boolean
          description: Whether email addresses are used as usernames during registration.
          example: false
        login_with_email_allowed:
          type: boolean
          description: Whether users can sign in with their email address instead of username.
          example: true
        duplicate_emails_allowed:
          type: boolean
          description: Whether multiple accounts may share the same email address.
          example: false
        frontend_url:
          type:
          - string
          - 'null'
          description: 'The public URL the realm serves on when you put your own proxy in front of the cluster,

            or `null` when none is set. While it is set, the realm''s issuer is this URL followed by

            `/realms/{name}` whatever host a request arrives on. Always `null` for a realm that

            serves on a Skycloak custom domain.'
          example: https://login.example.com
        created_at:
          type: string
          format: date-time
          description: Time when the realm was created, when available.
      description: Realm details.
      example:
        id: 123e4567-e89b-12d3-a456-426614174000
        name: customer-portal
        display_name: Customer Portal
        enabled: true
        ssl_required: external
        registration_allowed: false
        registration_email_as_username: false
        login_with_email_allowed: true
        duplicate_emails_allowed: false
        frontend_url: null
    RealmSslRequired:
      type: string
      enum:
      - external
      - all
      - none
      description: Keycloak SSL requirement. Maps directly to Keycloak's `sslRequired` realm setting.
    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.
    RealmName:
      type: string
      minLength: 1
      maxLength: 63
      pattern: ^[a-zA-Z][a-zA-Z0-9-]*$
      description: Keycloak realm name (not ID). Must start with a letter; allows letters, digits, and hyphens.
      example: customer-portal
    RealmDisplayName:
      type: string
      minLength: 1
      maxLength: 255
  parameters:
    CommonParameters:
      name: API-Version
      in: header
      required: true
      schema:
        $ref: '#/components/schemas/Versions'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: API-Key