Skycloak Domain Routes API
The Domain Routes API from Skycloak — 2 operation(s) for domain routes.
The Domain Routes API from Skycloak — 2 operation(s) for domain routes.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/skycloak-io:skycloak-io-domain-routes-api"
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.
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: 3.2.0
info:
title: Skycloak Public Domain Routes 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: Domain Routes
paths:
/clusters/{cluster_id}/domains/{domain_id}/routes:
get:
operationId: listDomainRoutes
summary: List domain routes
description: 'Returns the realm routes configured for a domain.
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:
type: array
items:
$ref: '#/components/schemas/DomainRoute'
'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:
- Domain Routes
security:
- ApiKeyAuth: []
x-scopes:
- domains:read
post:
operationId: createDomainRoute
summary: Create a domain route
description: 'Binds a verified domain to a realm. Traffic to the domain is then handled by the specified realm. The domain must be verified before creating a route. Each realm can only be bound to one domain.
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:
'201':
description: The request has succeeded and a new resource has been created as a result.
content:
application/json:
schema:
$ref: '#/components/schemas/DomainRoute'
'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'
'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:
- Domain Routes
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateDomainRouteRequest'
security:
- ApiKeyAuth: []
x-scopes:
- domains:write
/clusters/{cluster_id}/domains/{domain_id}/routes/{route_id}:
get:
operationId: getDomainRoute
summary: Get a domain route
description: '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'
- name: route_id
in: path
required: true
schema:
$ref: '#/components/schemas/DomainRouteId'
- $ref: '#/components/parameters/CommonParameters'
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/DomainRoute'
'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:
- Domain Routes
security:
- ApiKeyAuth: []
x-scopes:
- domains:read
patch:
operationId: updateDomainRoute
summary: Update a domain route
description: 'Updates the CORS configuration or admin access setting for a route.
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'
- name: route_id
in: path
required: true
schema:
$ref: '#/components/schemas/DomainRouteId'
- $ref: '#/components/parameters/CommonParameters'
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/DomainRoute'
'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'
'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'
'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:
- Domain Routes
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateDomainRouteRequest'
security:
- ApiKeyAuth: []
x-scopes:
- domains:write
delete:
operationId: deleteDomainRoute
summary: Delete a domain route
description: 'Removes the realm binding from the domain.
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'
- name: route_id
in: path
required: true
schema:
$ref: '#/components/schemas/DomainRouteId'
- $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:
- Domain Routes
security:
- ApiKeyAuth: []
x-scopes:
- domains:write
components:
schemas:
DomainRoute:
type: object
required:
- id
- domain_id
- cluster_id
- realm
- hide_realm_path
- allow_admin_access
- cors_allowed_origins
- created_at
- updated_at
properties:
id:
$ref: '#/components/schemas/DomainRouteId'
domain_id:
$ref: '#/components/schemas/DomainId'
cluster_id:
$ref: '#/components/schemas/ClusterId'
realm:
allOf:
- $ref: '#/components/schemas/RealmName'
description: The realm that handles traffic for this domain.
hide_realm_path:
type: boolean
description: When `true`, the `/realms/{name}` path segment is omitted from URLs served by this domain.
allow_admin_access:
type: boolean
description: When `true`, the Keycloak admin console is accessible via this domain.
cors_allowed_origins:
type: array
items:
type: string
x-oapi-codegen-extra-tags:
validate: omitnil,max=500
description: CORS origins allowed to make requests via this domain.
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
description: A route that maps a custom domain to a Keycloak realm. Traffic arriving at the domain is served by the associated realm.
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
UpdateDomainRouteRequest:
type: object
properties:
allow_admin_access:
type: boolean
cors_allowed_origins:
type: array
items:
type: string
x-oapi-codegen-extra-tags:
validate: omitnil,max=500
FieldError:
type: object
required:
- field
- detail
properties:
field:
type: string
detail:
type: string
code:
type: string
value: {}
DomainRouteId:
type: string
format: uuid
ClusterId:
type: string
format: uuid
CreateDomainRouteRequest:
type: object
required:
- realm
properties:
realm:
allOf:
- $ref: '#/components/schemas/RealmName'
description: The realm that will handle traffic for this domain.
hide_realm_path:
type: boolean
description: When `true`, the `/realms/{name}` path segment is omitted from URLs. Defaults to `false`.
allow_admin_access:
type: boolean
description: When `true`, the Keycloak admin console is accessible via this domain. Defaults to `true`.
cors_allowed_origins:
type: array
items:
type: string
x-oapi-codegen-extra-tags:
validate: omitnil,max=500
description: CORS origins allowed to make requests via this domain.
Versions:
type: string
enum:
- 2026-06-01.beta
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
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
parameters:
CommonParameters:
name: API-Version
in: header
required: true
schema:
$ref: '#/components/schemas/Versions'
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: API-Key