Skycloak Email Branding API
The Email Branding API from Skycloak — 1 operation(s) for email branding.
The Email Branding API from Skycloak — 1 operation(s) for email branding.
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-email-branding-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 Email 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: Email Branding
paths:
/clusters/{cluster_id}/realms/{realm}/branding/email:
get:
operationId: getEmailBranding
summary: Get email branding
description: 'Returns the email template 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/EmailBranding'
'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:
- Email Branding
security:
- ApiKeyAuth: []
x-scopes:
- branding:read
put:
operationId: upsertEmailBranding
summary: Create or update email branding
description: 'Creates or replaces the email template branding for a realm. Triggers asynchronous theme generation and deployment.
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/EmailBranding'
'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:
- Email Branding
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpsertEmailBrandingRequest'
security:
- ApiKeyAuth: []
x-scopes:
- branding:write
delete:
operationId: deleteEmailBranding
summary: Delete email branding
description: 'Removes custom email branding and restores Keycloak default email templates.
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:
- Email Branding
security:
- ApiKeyAuth: []
x-scopes:
- branding:write
components:
parameters:
CommonParameters:
name: API-Version
in: header
required: true
schema:
$ref: '#/components/schemas/Versions'
schemas:
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
EmailBranding:
type: object
required:
- cluster_id
- realm
- 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 used in email templates.
header_logo_light_url:
type: string
format: uri
description: Logo URL for light-background email clients.
header_logo_dark_url:
type: string
format: uri
description: Logo URL for dark-background email clients.
company_url:
type: string
format: uri
description: URL of the company website linked from the email footer.
footer_company_name:
type: string
maxLength: 100
footer_text:
type: string
maxLength: 500
show_powered_by:
type: boolean
description: Display a 'Powered by Skycloak' line in the email footer.
internationalization:
$ref: '#/components/schemas/InternationalizationConfig'
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: Email template branding configuration for a Keycloak realm.
FieldError:
type: object
required:
- field
- detail
properties:
field:
type: string
detail:
type: string
code:
type: string
value: {}
BrandingStatus:
type: string
enum:
- applying
- applied
- failed
InternationalizationConfig:
type: object
required:
- enabled
- default_locale
- supported_locales
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
description: Internationalization settings.
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.
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
UpsertEmailBrandingRequest:
type: object
properties:
primary_color:
$ref: '#/components/schemas/HexColor'
header_logo_light_url:
type: string
format: uri
x-oapi-codegen-extra-tags:
validate: omitempty,http_url
header_logo_dark_url:
type: string
format: uri
x-oapi-codegen-extra-tags:
validate: omitempty,http_url
company_url:
type: string
format: uri
x-oapi-codegen-extra-tags:
validate: omitempty,http_url
footer_company_name:
type: string
maxLength: 100
footer_text:
type: string
maxLength: 500
show_powered_by:
type: boolean
description: Display a 'Powered by Skycloak' line in the email footer. Hiding it requires a plan that allows removing branding; otherwise it stays on. Omitted means unchanged.
internationalization:
$ref: '#/components/schemas/InternationalizationConfig'
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: API-Key