Skycloak Domains API

The Domains API from Skycloak — 3 operation(s) for domains.

GitHub OpenAPI

Operations 5

GET /clusters/{cluster_id}/domains List domains #
POST /clusters/{cluster_id}/domains Register a domain #
GET /clusters/{cluster_id}/domains/{domain_id} Get a domain #
DELETE /clusters/{cluster_id}/domains/{domain_id} Delete a domain #
POST /clusters/{cluster_id}/domains/{domain_id}/verify Verify a domain #

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-domains-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-domains-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Skycloak Public Domains 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: Domains
paths:
  /clusters/{cluster_id}/domains:
    get:
      operationId: listDomains
      summary: List domains
      description: 'Returns custom domains registered to the cluster.


        Required scope: `domains:read`'
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/ClusterId'
      - $ref: '#/components/parameters/Pagination.limit'
      - $ref: '#/components/parameters/Pagination.offset'
      - name: verification_status
        in: query
        required: false
        description: Filter by verification status.
        schema:
          $ref: '#/components/schemas/DomainVerificationStatus'
        explode: false
      - $ref: '#/components/parameters/CommonParameters'
      responses:
        '200':
          description: The request has succeeded.
          headers:
            Total-Count:
              required: true
              description: Total number of results across all pages, before pagination is applied.
              schema:
                type: integer
            Link:
              required: false
              description: RFC 8288 Link header containing `next`, `prev`, `first`, and `last` relations.
              schema:
                type: string
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Domain'
        '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:
      - Domains
      security:
      - ApiKeyAuth: []
      x-scopes:
      - domains:read
    post:
      operationId: createDomain
      summary: Register a domain
      description: 'Registers a custom domain for the cluster. After registration, configure the DNS records returned in the response and call the verify endpoint to complete verification.


        Required scope: `domains: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/Domain'
        '400':
          description: The server could not understand the request due to invalid syntax.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '401':
          description: Access is unauthorized.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '402':
          description: Client error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/PlanLimitErrorBody'
        '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:
      - Domains
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDomainRequest'
      security:
      - ApiKeyAuth: []
      x-scopes:
      - domains:write
  /clusters/{cluster_id}/domains/{domain_id}:
    get:
      operationId: getDomain
      summary: Get a domain
      description: 'Returns the domain and its current verification status. The status is refreshed on every request.


        Required scope: `domains:read`'
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/ClusterId'
      - name: domain_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/DomainId'
      - $ref: '#/components/parameters/CommonParameters'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Domain'
        '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:
      - Domains
      security:
      - ApiKeyAuth: []
      x-scopes:
      - domains:read
    delete:
      operationId: deleteDomain
      summary: Delete a domain
      description: 'Removes a custom domain and all its associated routes from the cluster.


        Required scope: `domains:write`'
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/ClusterId'
      - name: domain_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/DomainId'
      - $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:
      - Domains
      security:
      - ApiKeyAuth: []
      x-scopes:
      - domains:write
  /clusters/{cluster_id}/domains/{domain_id}/verify:
    post:
      operationId: verifyDomain
      summary: Verify a domain
      description: 'Checks the current DNS configuration and refreshes the domain''s verification status. Call this after configuring the required DNS records.


        Required scope: `domains:read`'
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/ClusterId'
      - name: domain_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/DomainId'
      - $ref: '#/components/parameters/CommonParameters'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Domain'
        '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:
      - Domains
      security:
      - ApiKeyAuth: []
      x-scopes:
      - domains:read
components:
  schemas:
    Domain:
      type: object
      required:
      - id
      - cluster_id
      - domain
      - verification_status
      - ssl_status
      - cname_target
      - dns_records
      - is_active
      - created_at
      - updated_at
      properties:
        id:
          $ref: '#/components/schemas/DomainId'
        cluster_id:
          $ref: '#/components/schemas/ClusterId'
        domain:
          allOf:
          - $ref: '#/components/schemas/CustomDomain'
          description: The registered custom domain.
          example: auth.mycompany.com
        subdomain:
          type: string
          description: Optional subdomain prefix.
          example: auth
        verification_status:
          $ref: '#/components/schemas/DomainVerificationStatus'
        ssl_status:
          $ref: '#/components/schemas/DomainSslStatus'
        cname_target:
          type: string
          description: CNAME target. Point your domain's DNS CNAME record to this value to route traffic to the cluster.
        dns_records:
          type: array
          items:
            $ref: '#/components/schemas/DnsRecord'
          description: DNS records to configure for domain verification and routing.
        is_active:
          type: boolean
          description: '`true` when the domain is verified and its SSL certificate is active.'
        last_checked_at:
          type: string
          format: date-time
          description: When Skycloak last checked this domain's status with Cloudflare. Pending domains are checked every few minutes for 48 hours, then hourly, then daily after 30 days. Absent until the first check.
        last_check_error:
          type: string
          description: Cloudflare's reason the domain is not active yet, from the last check. Absent when there is none.
          example: custom hostname does not CNAME to this zone.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      description: A custom domain registered to a cluster.
    CreateDomainRequest:
      type: object
      required:
      - domain
      properties:
        domain:
          allOf:
          - $ref: '#/components/schemas/CustomDomain'
          description: The custom domain to register.
          x-oapi-codegen-extra-tags:
            validate: fqdn
        subdomain:
          type: string
          minLength: 1
          maxLength: 63
          pattern: ^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$
          description: Optional subdomain prefix (e.g. `auth` to register `auth.mycompany.com` under the `mycompany.com` domain).
    DomainVerificationStatus:
      type: string
      enum:
      - unverified
      - pending
      - verified
      - failed
    ClusterId:
      type: string
      format: uuid
    Versions:
      type: string
      enum:
      - 2026-06-01.beta
    PageLimit:
      type: integer
      minimum: 1
      maximum: 100
    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.
    DomainId:
      type: string
      format: uuid
    PlanLimitErrorBody:
      type: object
      required:
      - type
      - title
      - status
      - detail
      - current_plan
      - required_plan
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        instance:
          type: string
          format: uri
        current_plan:
          type: string
        required_plan:
          type: string
        code:
          type: string
          description: 'Machine-readable identifier of the quota that was hit, so a client can tell

            quotas apart without parsing `detail`. Known values include `cluster_limit`

            (the workspace''s total cluster allowance), `cluster_size_quota` (the

            allowance for the requested cluster size) and `cluster_size` (the requested

            size is not offered on the plan at all). New values may be added.'
        current_usage:
          type: integer
          description: How many of the resource the workspace currently has.
        current_limit:
          type: integer
          description: Maximum allowed by the current plan. `0` means the plan does not include the resource at all.
      description: Returned when a workspace plan quota would be exceeded. `required_plan` indicates the minimum plan needed to complete the request.
    DnsRecord:
      type: object
      required:
      - type
      - name
      - value
      properties:
        type:
          $ref: '#/components/schemas/DnsRecordType'
        name:
          type: string
          description: The DNS record name (host).
        value:
          type: string
          description: The DNS record value (target).
      description: A DNS record to configure in your domain's DNS settings.
    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
    FieldError:
      type: object
      required:
      - field
      - detail
      properties:
        field:
          type: string
        detail:
          type: string
        code:
          type: string
        value: {}
    PageOffset:
      type: integer
      minimum: 0
    CustomDomain:
      type: string
      minLength: 3
      maxLength: 253
      pattern: ^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$
      description: A fully-qualified domain name.
      example: auth.mycompany.com
    DnsRecordType:
      type: string
      enum:
      - CNAME
      - TXT
    DomainSslStatus:
      type: string
      enum:
      - pending
      - active
      - failed
      - expired
  parameters:
    CommonParameters:
      name: API-Version
      in: header
      required: true
      schema:
        $ref: '#/components/schemas/Versions'
    Pagination.limit:
      name: limit
      in: query
      required: false
      description: Maximum number of results to return.
      schema:
        allOf:
        - $ref: '#/components/schemas/PageLimit'
        default: 25
      explode: false
    Pagination.offset:
      name: offset
      in: query
      required: false
      description: Number of results to skip from the start.
      schema:
        allOf:
        - $ref: '#/components/schemas/PageOffset'
        default: 0
      explode: false
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: API-Key