Get realm theme assignment
const url = 'http://localhost:8000/clusters/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/realms/customer-portal/themes';
const options = {
method: 'GET',
headers: {'API-Version': '2026-06-01.beta', 'API-Key': '<API-Key>'}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}curl --request GET \
--url http://localhost:8000/clusters/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/realms/customer-portal/themes \
--header 'API-Key: <API-Key>' \
--header 'API-Version: 2026-06-01.beta'Returns which custom theme is active for each Keycloak theme type in the realm. Types using Keycloak’s built-in default have value null.
Required scope: themes:read
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Keycloak realm name (not ID). Must start with a letter; allows letters, digits, and hyphens.
Example
customer-portalHeader Parameters
Section titled “Header Parameters”Responses
Section titled “Responses”The request has succeeded.
Which custom theme is active for each Keycloak theme type in the realm.
object
Active theme for the login page. null when using Keycloak’s built-in default.
Active theme for email templates. null when using Keycloak’s built-in default.
Active theme for the account console. null when using Keycloak’s built-in default.
Active theme for the admin console. null when using Keycloak’s built-in default.
Example generated
{
"login": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"email": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"account": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"admin": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}Access is unauthorized.
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}Access is forbidden.
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}The server cannot find the requested resource.
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}Client error
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}Headers
Section titled “Headers”Server error
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}Server error
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}