Skycloak Login Branding API

The Login Branding API from Skycloak — 1 operation(s) for login branding.

GitHub OpenAPI

Operations 3

GET /clusters/{cluster_id}/realms/{realm}/branding/login Get login branding #
PUT /clusters/{cluster_id}/realms/{realm}/branding/login Create or update login branding #
DELETE /clusters/{cluster_id}/realms/{realm}/branding/login Delete login branding #

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-login-branding-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-login-branding-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Skycloak Public Login Branding 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: Login Branding
paths:
  /clusters/{cluster_id}/realms/{realm}/branding/login:
    get:
      operationId: getLoginBranding
      summary: Get login branding
      description: 'Returns the login page branding configuration for a realm. Returns 404 if no branding has been configured.


        Required scope: `branding:read`'
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/ClusterId'
      - name: realm
        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/LoginBranding'
        '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:
      - Login Branding
      security:
      - ApiKeyAuth: []
      x-scopes:
      - branding:read
    put:
      operationId: upsertLoginBranding
      summary: Create or update login branding
      description: 'Creates or replaces the login page branding for a realm. Triggers asynchronous theme generation and deployment; poll the `status` field to confirm completion.


        Required scope: `branding:write`'
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/ClusterId'
      - name: realm
        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/LoginBranding'
        '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:
      - Login Branding
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpsertLoginBrandingRequest'
      security:
      - ApiKeyAuth: []
      x-scopes:
      - branding:write
    delete:
      operationId: deleteLoginBranding
      summary: Delete login branding
      description: 'Removes custom login branding and restores Keycloak defaults for the realm.


        Required scope: `branding:write`'
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/ClusterId'
      - name: realm
        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:
      - Login Branding
      security:
      - ApiKeyAuth: []
      x-scopes:
      - branding:write
components:
  schemas:
    LoginInternationalizationConfig:
      type: object
      required:
      - enabled
      - default_locale
      - supported_locales
      - language_selector_style
      - language_selector_position
      - language_selection_mode
      properties:
        enabled:
          type: boolean
        default_locale:
          type: string
          minLength: 2
          maxLength: 20
          description: IETF BCP 47 language tag used as the default locale.
          x-oapi-codegen-extra-tags:
            validate: bcp47_language_tag
        supported_locales:
          type: array
          items:
            type: string
            x-oapi-codegen-extra-tags:
              validate: omitnil,max=500
          minItems: 1
          description: Locales available to users. Must include `default_locale`.
          x-oapi-codegen-extra-tags:
            validate: dive,bcp47_language_tag
        language_selector_style:
          $ref: '#/components/schemas/LanguageSelectorStyle'
        language_selector_position:
          $ref: '#/components/schemas/LanguageSelectorPosition'
        language_selection_mode:
          $ref: '#/components/schemas/LanguageSelectionMode'
      description: Login page internationalization settings.
    LanguageSelectionMode:
      type: string
      enum:
      - automatic_with_selector
      - automatic_only
      - selector_only
      - hide_selector
    LanguageSelectorStyle:
      type: string
      enum:
      - dropdown
      - text_labels
      - flags
    SsoButtonSize:
      type: string
      enum:
      - small
      - medium
      - large
    LanguageSelectorPosition:
      type: string
      enum:
      - top_right
      - top_left
      - top_middle
      - form_inside_header
      - form_inside_left
    ClusterId:
      type: string
      format: uuid
    Versions:
      type: string
      enum:
      - 2026-06-01.beta
    HexColor:
      type: string
      description: CSS hex color code.
      example: '#1a73e8'
      x-oapi-codegen-extra-tags:
        validate: omitnil,hexcolor
    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.
    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
    SsoConfig:
      type: object
      required:
      - enabled
      - layout
      - display_style
      - button_size
      properties:
        enabled:
          type: boolean
          description: Show identity provider buttons on the login page.
        layout:
          $ref: '#/components/schemas/SsoLayout'
        display_style:
          $ref: '#/components/schemas/SsoDisplayStyle'
        button_size:
          $ref: '#/components/schemas/SsoButtonSize'
    FieldError:
      type: object
      required:
      - field
      - detail
      properties:
        field:
          type: string
        detail:
          type: string
        code:
          type: string
        value: {}
    BrandingStatus:
      type: string
      enum:
      - applying
      - applied
      - failed
    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
    UpsertLoginBrandingRequest:
      type: object
      properties:
        primary_color:
          $ref: '#/components/schemas/HexColor'
        background_color:
          $ref: '#/components/schemas/HexColor'
        logo_url:
          type: string
          format: uri
          x-oapi-codegen-extra-tags:
            validate: omitempty,http_url
        favicon_url:
          type: string
          format: uri
          x-oapi-codegen-extra-tags:
            validate: omitempty,http_url
        font_url:
          type: string
          format: uri
          x-oapi-codegen-extra-tags:
            validate: omitempty,http_url
        font_family:
          type: string
          maxLength: 100
          description: 'CSS font-family name used with `font_url`: letters, digits, spaces, hyphens and underscores only. Omitted means unchanged.'
        apply_to_account_console:
          type: boolean
          description: Apply the login branding to the realm's account console. Omitted means unchanged.
        apply_to_admin_console:
          type: boolean
          description: Apply the login branding to the realm's admin console. Omitted means unchanged.
        registration_enabled:
          type: boolean
          description: 'Sets the realm''s own self-registration setting (Keycloak registrationAllowed). Omitted means unchanged: unlike the other fields, leaving it out does not reset it to a default.'
        remember_me_enabled:
          type: boolean
        forgot_password_enabled:
          type: boolean
        terms_of_service_url:
          type: string
          format: uri
          x-oapi-codegen-extra-tags:
            validate: omitempty,http_url
        privacy_policy_url:
          type: string
          format: uri
          x-oapi-codegen-extra-tags:
            validate: omitempty,http_url
        show_powered_by:
          type: boolean
        sso:
          $ref: '#/components/schemas/SsoConfig'
        internationalization:
          $ref: '#/components/schemas/LoginInternationalizationConfig'
    SsoLayout:
      type: string
      enum:
      - vertical
      - horizontal
    LoginBranding:
      type: object
      required:
      - cluster_id
      - realm
      - registration_enabled
      - remember_me_enabled
      - forgot_password_enabled
      - show_powered_by
      - status
      - created_at
      - updated_at
      properties:
        cluster_id:
          $ref: '#/components/schemas/ClusterId'
        realm:
          $ref: '#/components/schemas/RealmName'
        primary_color:
          allOf:
          - $ref: '#/components/schemas/HexColor'
          description: Primary accent color applied to buttons and interactive elements.
        background_color:
          $ref: '#/components/schemas/HexColor'
        logo_url:
          type: string
          format: uri
          description: URL of the logo displayed on the login page.
        favicon_url:
          type: string
          format: uri
        font_url:
          type: string
          format: uri
          description: URL of a custom web font.
        font_family:
          type: string
          description: CSS font-family name used with `font_url`, for example `Inter`.
        apply_to_account_console:
          type: boolean
          description: Whether the realm's account console uses the login branding.
        apply_to_admin_console:
          type: boolean
          description: Whether the realm's admin console uses the login branding.
        theme_name:
          type: string
          description: The realm's current Keycloak login theme, read live from the realm. Every branding save installs the theme under a new name, so read it from here rather than pinning it in realm configuration. Absent when the realm uses Keycloak's default theme.
        registration_enabled:
          type: boolean
          description: The realm's own self-registration setting (Keycloak registrationAllowed), read live from the realm. It is the same field the realm API exposes as registration_allowed; branding keeps no copy of it.
        remember_me_enabled:
          type: boolean
        forgot_password_enabled:
          type: boolean
        terms_of_service_url:
          type: string
          format: uri
        privacy_policy_url:
          type: string
          format: uri
        show_powered_by:
          type: boolean
          description: Display a 'Powered by Skycloak' badge in the footer.
        sso:
          $ref: '#/components/schemas/SsoConfig'
        internationalization:
          $ref: '#/components/schemas/LoginInternationalizationConfig'
        status:
          $ref: '#/components/schemas/BrandingStatus'
        applied_at:
          type: string
          format: date-time
          description: Timestamp of the most recent successful deployment to Keycloak.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      description: Login page branding configuration for a Keycloak realm.
    SsoDisplayStyle:
      type: string
      enum:
      - logo_only
      - logo_with_text
      - text_only
  parameters:
    CommonParameters:
      name: API-Version
      in: header
      required: true
      schema:
        $ref: '#/components/schemas/Versions'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: API-Key