Advanced Themes
Available since version 1.8.0
UI login themes can be configured to enable custom branding for your FusionAuth login workflow. Themes are configured per Tenant or optionally by Application.
Theme templates have access to sensitive configuration data including SSO cookies, tenant settings, JWT configuration, SMTP credentials, and user information. Only use themes from trusted sources and review all custom theme code before deployment.
The following APIs are provided to manage Themes.
Create an Advanced Theme#
This API is used to create a new Theme.
Request#
OpenAPI Spec
OpenAPI Spec
Request Parameters#
themeId UUID optional Defaults to secure random UUID The Id to use for the new Theme. If not specified a secure random UUID will be generated.
Request Body#
Note that the rest of this page will assume that the theme.type of this theme is advanced.
theme.data Object optional An object that can hold any information about the Theme that should be persisted.
theme.defaultMessages String optional A properties file formatted String containing at least all of the message keys defined in the FusionAuth shipped messages file. Required if not copying an existing Theme.
theme.localizedMessages Map<Locale,String> optional A Map of localized versions of the messages. The key is the Locale and the value is a properties file formatted String.
theme.name String required A unique name for the Theme.
theme.stylesheet String optional A CSS stylesheet used to style the templates.
theme.type String optional Defaults to advanced Available since 1.51.0The type of the Theme. This value determines what content is required for the Theme. There are two distinct values.
advanced- This is the default FusionAuth theme type. This type allows for full customization of the html, css, and messaging via Freemarker templates. If a Theme isadvancedthen the theme.defaultMessages and theme.templates fields are required. The theme.defaultMessages should specify every message in the message bundle. See Theme Localization.simple- A simple theme only requires a set of variables that will applied to css across the theme. If a Theme issimplethen the theme.variables field is required. If a theme issimplethen the theme.defaultMessages need only specify any text that you would like to change from what is included in theme.
theme.templates.accountEdit String optional Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that enables authenticated users to update their profile./account/edit path.
theme.templates.accountIndex String optional Available since 1.26.0A FreeMarker template that is rendered when the user requests the This is the self-service account landing page. An authenticated user may use this as a starting point for operations such as updating their profile or configuring multi-factor authentication./account path.
theme.templates.accountTwoFactorDisable String optional Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to disable a multi-factor authentication method./account/two-factor/disable path.
theme.templates.accountTwoFactorEdit String optional Available since 1.68.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to edit a multi-factor authentication method./account/two-factor/edit path.
theme.templates.accountTwoFactorEnable String optional Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to enable a multi-factor authentication method. Additionally, this page displays recovery codes when a user enables multi-factor authentication for the first time./account/two-factor/enable path.
theme.templates.accountTwoFactorIndex String optional Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page displays an authenticated user's configured multi-factor authentication methods. Additionally, it provides links to enable and disable a method./account/two-factor path.
theme.templates.accountWebAuthnAdd String optional Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that allows a user to register a new WebAuthn passkey./account/webauthn/add path.
theme.templates.accountWebAuthnDelete String optional Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that allows a user to delete a WebAuthn passkey./account/webauthn/delete path.
theme.templates.accountWebAuthnIndex String optional Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page displays an authenticated user's registered WebAuthn passkeys. Additionally, it provides links to delete an existing passkey and register a new passkey./account/webauthn/ path.
theme.templates.confirmationRequired String optional Available since 1.49.0A FreeMarker template that is rendered when the user requests the This page is displayed when a user attempts to complete an email based workflow that did not begin in the same browser. For example, if the user starts a forgot password workflow, and then opens the link in a separate browser the user will be shown this panel./confirmation-required path.
theme.templates.emailComplete String optional A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their email address by clicking the URL in the email. After FusionAuth has updated their user object to indicate that their email was verified, the browser is redirected to this page./email/complete path.
theme.templates.emailSent String optional A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the verification email to be resent. This can happen if the URL in the email expired and the user clicked it. In this case, the user can provide their email address again and FusionAuth will resend the email. After the user submits their email and FusionAuth re-sends a verification email to them, the browser is redirected to this page./email/sent path.
theme.templates.emailVerificationRequired String optional Available since 1.27.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their email address prior to being allowed to proceed with login. This occurs when /email/verification-required path. Unverified behavior is set to Gated in email verification settings on the Tenant.
theme.templates.emailVerify String optional A FreeMarker template that is rendered when the user requests the This page is rendered when a user clicks the URL from the verification email and the /email/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification email that has expired, this page will be rendered and the error will be displayed to the user.
theme.templates.helpers String optional A https://freemarker.apache.org[FreeMarker] template that contains all of the macros and templates used by the rest of the login Theme FreeMarker templates. This allows you to configure the general layout of your UI configuration and login theme without having to copy and paste HTML into each of the templates.
theme.templates.index String optional Available since 1.27.0A FreeMarker template that is rendered when the user requests the This is the root landing page. This page is available to unauthenticated users and will be displayed whenever someone navigates to the FusionAuth host's root page. Prior to version / path. 1.27.0, navigating to this URL would redirect to /admin and would subsequently render the FusionAuth admin login page.
theme.templates.oauth2Authorize String optional A FreeMarker template that is rendered when the user requests the This is the main login page for FusionAuth and is used for all interactive OAuth2 and OpenID Connect workflows./oauth2/authorize path.
theme.templates.oauth2AuthorizedNotRegistered String optional Available since 1.28.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is not registered and the Application configuration requires registration before FusionAuth will complete the redirect./oauth2/authorized-not-registered path.
theme.templates.oauth2ChildRegistrationNotAllowed String optional A FreeMarker template that is rendered when the user requests the This page contains a form where a child must provide their parent's email address to ask their parent to create an account for them in a Consent workflow./oauth2/child-registration-not-allowed path.
theme.templates.oauth2ChildRegistrationNotAllowedComplete String optional A FreeMarker template that is rendered when the user requests the This page is rendered after a child provides their parent's email address for parental consent in a Consent workflow./oauth2/child-registration-not-allowed-complete path.
theme.templates.oauth2CompleteRegistration String optional A FreeMarker template that is rendered when the user requests the This page contains a form that is used for users that have accounts but might be missing required fields./oauth2/complete-registration path.
theme.templates.oauth2Consent String optional Available since 1.50.0A FreeMarker template that is rendered when the user requests the This page contains a form for capturing a user's OAuth scope consent choices. If there are no scopes that require a prompt, the user is redirected automatically./oauth2/consent path.
theme.templates.oauth2Device String optional Available since 1.11.0A FreeMarker template that is rendered when the user requests the This page contains a form for accepting an end user's short code for the interactive portion of the OAuth Device Authorization Grant workflow./oauth2/device path.
theme.templates.oauth2DeviceComplete String optional Available since 1.12.0A FreeMarker template that is rendered when the user requests the This page contains a complete message indicating the device authentication has completed./oauth2/device-complete path.
theme.templates.oauth2Error String optional This page is used if the user starts or is in the middle of the OAuth workflow and any type of error occurs. This could be caused by the user messing with the URL or internally some type of information wasn't passed between the OAuth endpoints correctly. For example, if you are federating login to an external IdP and that IdP does not properly echo the state parameter, FusionAuth's OAuth workflow will break and this page will be displayed.
theme.templates.oauth2Logout String optional A FreeMarker template that is rendered when the user requests the This page is used if the user initiates an OAuth logout. This page causes the user to be logged out of all associated applications or just the initiating application, as configured, via a front-channel mechanism before being redirected./oauth2/logout path.
theme.templates.oauth2Passwordless String optional A FreeMarker template that is rendered when the user requests the This page is rendered when the user starts the passwordless login workflow. The page renders the form where the user types in their email address./oauth2/passwordless path.
theme.templates.oauth2Register String optional A FreeMarker template that is rendered when the user requests the This page is used to register or sign up the user for the application when self-service registration is enabled./oauth2/register path.
theme.templates.oauth2StartIdPLink String optional Available since 1.28.0A FreeMarker template that is rendered when the user requests the This page is used if the linking strategy of the Identity Provider is set to create a pending link. The user is presented with the option to link their account with an existing FusionAuth user account or create a new FusionAuth user./oauth2/start-idp-link path.
theme.templates.oauth2TwoFactor String optional A FreeMarker template that is rendered when the user requests the This page is used if the user has two-factor authentication enabled or two factor authentication is required and they need to type in their code again. FusionAuth will properly handle the processing on the back end. This page contains the form that the user will put their code into./oauth2/two-factor path.
theme.templates.oauth2TwoFactorEnable String optional Available since 1.42.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with the Oauth2 two-factor enable form/oauth2/two-factor-enable path.
theme.templates.oauth2TwoFactorEnableComplete String optional Available since 1.42.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with the Oauth2 two-factor enable complete form/oauth2/two-factor-enable-complete path.
theme.templates.oauth2TwoFactorMethods String optional Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with their configured multi-factor authentication options that they may use to complete the authentication challenge./oauth2/two-factor-methods path.
theme.templates.oauth2Wait String optional Available since 1.12.0A FreeMarker template that is rendered when the user requests the This page is rendered when FusionAuth is waiting for an external provider to complete an out of band authentication request. For example, during a HYPR login this page will be displayed until the user completes authentication./oauth2/wait path.
theme.templates.oauth2WebAuthn String optional Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form where a user can enter their /oauth2/webauthn path. loginId (username or email address) to authenticate with one of their registered WebAuthn passkeys. This page uses the WebAuthn bootstrap workflow.
theme.templates.oauth2WebAuthnReauth String optional Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that lists the WebAuthn passkeys currently available for re-authentication. A user can select one of the listed passkeys to authenticate using the corresponding passkey and user account./oauth2/webauthn-reauth path.
theme.templates.oauth2WebAuthnReauthEnable String optional Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains two forms. One allows the user to select one of their existing WebAuthn passkeys to use for re-authentication. The other allows the user to register a new WebAuthn passkey for re-authentication./oauth2/webauthn-reauth-enable path.
theme.templates.passwordChange String optional A FreeMarker template that is rendered when the user requests the This page is used if the user is required to change their password or if they have requested a password reset. This page contains the form that allows the user to provide a new password./password/change path.
theme.templates.passwordComplete String optional A FreeMarker template that is rendered when the user requests the This page is used after the user has successfully updated their password, or reset it. This page should instruct the user that their password was updated and that they need to login again./password/complete path.
theme.templates.passwordForgot String optional A FreeMarker template that is rendered when the user requests the This page is used when a user starts the forgot password workflow. This page renders the form where the user types in their email address./password/forgot path.
theme.templates.passwordSent String optional A FreeMarker template that is rendered when the user requests the This page is used when a user has submitted the forgot password form with their email. FusionAuth does not indicate back to the user if their email address was valid in order to prevent malicious activity that could reveal valid email addresses. Therefore, this page should indicate to the user that if their email was valid, they will receive an email shortly with a link to reset their password./password/sent path.
theme.templates.phoneComplete String optional Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their phone number by clicking the URL in the message. After FusionAuth has updated their user object to indicate that their phone number was verified, the browser is redirected to this page./phone/complete path.
theme.templates.phoneSent String optional Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the verification message to be resent. This can happen if the URL in the message expired and the user clicked it. In this case, the user can provide their phone number again and FusionAuth will resend the message. After the user submits their phone number and FusionAuth re-sends a verification message to them, the browser is redirected to this page./phone/sent path.
theme.templates.phoneVerificationRequired String optional Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their phone number prior to being allowed to proceed with login. This occurs when /phone/verification-required path. Unverified behavior is set to Gated in identities/phone verification settings on the Tenant.
theme.templates.phoneVerify String optional Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user clicks the URL from the verification message and the /phone/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification message that has expired, this page will be rendered and the error will be displayed to the user.
theme.templates.registrationComplete String optional A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their email address for a specific application (i.e. a user registration) by clicking the URL in the email. After FusionAuth has updated their registration object to indicate that their email was verified, the browser is redirected to this page./registration/complete path.
theme.templates.registrationSent String optional A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the application specific verification email to be resent. This can happen if the URL in the email expired and the user clicked it. In this case, the user can provide their email address again and FusionAuth will resend the email. After the user submits their email and FusionAuth re-sends a verification email to them, the browser is redirected to this page./registration/sent path.
theme.templates.registrationVerificationRequired String optional Available since 1.27.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their registration prior to being allowed to proceed with the registration flow. This occurs when /registration/verification-required path. Unverified behavior is set to Gated in registration verification settings on the Application.
theme.templates.registrationVerify String optional A FreeMarker template that is rendered when the user requests the This page is used when a user clicks the URL from the application specific verification email and the /registration/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification email that has expired, this page will be rendered and the error will be displayed to the user.
theme.templates.samlv2Logout String optional Available since 1.25.0A FreeMarker template that is rendered when the user requests the This page is used if the user initiates a SAML logout. This page causes the user to be logged out of all associated applications via a front-channel mechanism before being redirected./samlv2/logout path.
theme.templates.unauthorized String optional Available since 1.30.0A FreeMarker template that is rendered when the user requests the This page is used if the user is not authorized to use the application or page. If you have advanced threat detection enabled, this page is generally made available to you./unauthorized path.
Example Advanced Theme Request JSON
{
"theme": {
"data": {
"addedBy": "richard"
},
"defaultMessages": "title=Login",
"localizedMessages": {
"fr": "title=Identifiant",
"es": "title=Iniciar sesión"
},
"name": "Orange Theme",
"templates": {
"accountEdit": "[#ftl/]",
"accountIndex": "[#ftl/]",
"accountTwoFactorDisable": "[#ftl/]",
"accountTwoFactorEnable": "[#ftl/]",
"accountTwoFactorIndex": "[#ftl/]",
"accountWebAuthnAdd": "[#ftl/]",
"accountWebAuthnDelete": "[#ftl/]",
"accountWebAuthnIndex": "[#ftl/]",
"emailComplete": "[#ftl/]",
"emailSent": "[#ftl/]",
"emailVerificationRequired": "[#ftl/]",
"emailVerify": "[#ftl/]",
"helpers": "[#ftl/]",
"index": "[#ftl/]",
"oauth2Authorize": "[#ftl/]",
"oauth2AuthorizedNotRegistered": "[#ftl/]",
"oauth2ChildRegistrationNotAllowed": "[#ftl/]",
"oauth2ChildRegistrationNotAllowedComplete": "[#ftl/]",
"oauth2CompleteRegistration": "[#ftl/]",
"oauth2Device": "[#ftl/]",
"oauth2DeviceComplete": "[#ftl/]",
"oauth2Error": "[#ftl/]",
"oauth2Logout": "[#ftl/]",
"oauth2Passwordless": "[#ftl/]",
"oauth2Register": "[#ftl/]",
"oauth2StartIdPLink": "[#ftl/]",
"oauth2TwoFactor": "[#ftl/]",
"oauth2TwoFactorEnable": "[#ftl/]",
"oauth2TwoFactorEnableComplete": "[#ftl/]",
"oauth2TwoFactorMethods": "[#ftl/]",
"oauth2Wait": "[#ftl/]",
"oauth2WebAuthn": "[#ftl/]",
"oauth2WebAuthnReauth": "[#ftl/]",
"oauth2WebAuthnReauthEnable": "[#ftl/]",
"passwordChange": "[#ftl/]",
"passwordComplete": "[#ftl/]",
"passwordForgot": "[#ftl/]",
"passwordSent": "[#ftl/]",
"registrationComplete": "[#ftl/]",
"registrationSent": "[#ftl/]",
"registrationVerificationRequired": "[#ftl/]",
"registrationVerify": "[#ftl/]",
"samlv2Logout": "[#ftl/]",
"unauthorized": "[#ftl/]"
}
}
}
OpenAPI Spec
OpenAPI Spec
Request Parameters#
themeId UUID optional Defaults to secure random UUID The Id to use for the new Theme. If not specified a secure random UUID will be generated.
Request Body#
sourceThemeId UUID required The Id of an existing Theme from which a copy will be made.
The defaultMessages, localizedMessages, templates, and stylesheet from the source Theme will be copied to the new Theme.
theme.name String required A unique name for the Theme.
Example request JSON
{
"sourceThemeId": "64773453-bb11-457b-a3d6-7475ec2259d0",
"theme": {
"name": "Orange Theme - copied"
}
}
Response#
Response Codes| Code | Description |
|---|---|
| 200 | The request was successful. The response will contain a JSON body. |
| 400 | The request was invalid and/or malformed. The response will contain an Errors JSON Object with the specific errors. This status will also be returned if a paid FusionAuth license is required and is not present. |
| 401 | You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See Authentication. |
| 404 | The object you requested doesn't exist. The response will be empty. |
| 500 | There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty. |
Response Body#
theme.data Object An object that can hold any information about the Theme that should be persisted.
theme.defaultMessages String A properties file formatted String containing messages used within the templates.
theme.id UUID The unique Id of the Theme.
theme.insertInstant Long The instant that the theme was added to the FusionAuth database.
theme.lastUpdateInstant Long The instant that the theme was last updated in the FusionAuth database.
theme.localizedMessages Map<Locale,String> A Map of localized versions of the messages. The key is the Locale and the value is a properties file formatted String.
theme.name String A unique name for the Theme.
theme.stylesheet String A CSS stylesheet used to style the templates.
theme.templates.accountEdit String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that enables authenticated users to update their profile./account/edit path.
theme.templates.accountIndex String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This is the self-service account landing page. An authenticated user may use this as a starting point for operations such as updating their profile or configuring multi-factor authentication./account path.
theme.templates.accountTwoFactorDisable String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to disable a multi-factor authentication method./account/two-factor/disable path.
theme.templates.accountTwoFactorEdit String Available since 1.68.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to edit a multi-factor authentication method./account/two-factor/edit path.
theme.templates.accountTwoFactorEnable String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to enable a multi-factor authentication method. Additionally, this page displays recovery codes when a user enables multi-factor authentication for the first time./account/two-factor/enable path.
theme.templates.accountTwoFactorIndex String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page displays an authenticated user's configured multi-factor authentication methods. Additionally, it provides links to enable and disable a method./account/two-factor path.
theme.templates.accountWebAuthnAdd String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that allows a user to register a new WebAuthn passkey./account/webauthn/add path.
theme.templates.accountWebAuthnDelete String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that allows a user to delete a WebAuthn passkey./account/webauthn/delete path.
theme.templates.accountWebAuthnIndex String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page displays an authenticated user's registered WebAuthn passkeys. Additionally, it provides links to delete an existing passkey and register a new passkey./account/webauthn/ path.
theme.templates.confirmationRequired String Available since 1.49.0A FreeMarker template that is rendered when the user requests the This page is displayed when a user attempts to complete an email based workflow that did not begin in the same browser. For example, if the user starts a forgot password workflow, and then opens the link in a separate browser the user will be shown this panel./confirmation-required path.
theme.templates.emailComplete String A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their email address by clicking the URL in the email. After FusionAuth has updated their user object to indicate that their email was verified, the browser is redirected to this page./email/complete path.
theme.templates.emailSent String A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the verification email to be resent. This can happen if the URL in the email expired and the user clicked it. In this case, the user can provide their email address again and FusionAuth will resend the email. After the user submits their email and FusionAuth re-sends a verification email to them, the browser is redirected to this page./email/sent path.
theme.templates.emailVerificationRequired String Available since 1.27.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their email address prior to being allowed to proceed with login. This occurs when /email/verification-required path. Unverified behavior is set to Gated in email verification settings on the Tenant.
theme.templates.emailVerify String A FreeMarker template that is rendered when the user requests the This page is rendered when a user clicks the URL from the verification email and the /email/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification email that has expired, this page will be rendered and the error will be displayed to the user.
theme.templates.helpers String A https://freemarker.apache.org[FreeMarker] template that contains all of the macros and templates used by the rest of the login Theme FreeMarker templates. This allows you to configure the general layout of your UI configuration and login theme without having to copy and paste HTML into each of the templates.
theme.templates.index String Available since 1.27.0A FreeMarker template that is rendered when the user requests the This is the root landing page. This page is available to unauthenticated users and will be displayed whenever someone navigates to the FusionAuth host's root page. Prior to version / path. 1.27.0, navigating to this URL would redirect to /admin and would subsequently render the FusionAuth admin login page.
theme.templates.oauth2Authorize String A FreeMarker template that is rendered when the user requests the This is the main login page for FusionAuth and is used for all interactive OAuth2 and OpenID Connect workflows./oauth2/authorize path.
theme.templates.oauth2AuthorizedNotRegistered String Available since 1.28.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is not registered and the Application configuration requires registration before FusionAuth will complete the redirect./oauth2/authorized-not-registered path.
theme.templates.oauth2ChildRegistrationNotAllowed String A FreeMarker template that is rendered when the user requests the This page contains a form where a child must provide their parent's email address to ask their parent to create an account for them in a Consent workflow./oauth2/child-registration-not-allowed path.
theme.templates.oauth2ChildRegistrationNotAllowedComplete String A FreeMarker template that is rendered when the user requests the This page is rendered after a child provides their parent's email address for parental consent in a Consent workflow./oauth2/child-registration-not-allowed-complete path.
theme.templates.oauth2CompleteRegistration String A FreeMarker template that is rendered when the user requests the This page contains a form that is used for users that have accounts but might be missing required fields./oauth2/complete-registration path.
theme.templates.oauth2Consent String Available since 1.50.0A FreeMarker template that is rendered when the user requests the This page contains a form for capturing a user's OAuth scope consent choices. If there are no scopes that require a prompt, the user is redirected automatically./oauth2/consent path.
theme.templates.oauth2Device String Available since 1.11.0A FreeMarker template that is rendered when the user requests the This page contains a form for accepting an end user's short code for the interactive portion of the OAuth Device Authorization Grant workflow./oauth2/device path.
theme.templates.oauth2DeviceComplete String Available since 1.12.0A FreeMarker template that is rendered when the user requests the This page contains a complete message indicating the device authentication has completed./oauth2/device-complete path.
theme.templates.oauth2Error String This page is used if the user starts or is in the middle of the OAuth workflow and any type of error occurs. This could be caused by the user messing with the URL or internally some type of information wasn't passed between the OAuth endpoints correctly. For example, if you are federating login to an external IdP and that IdP does not properly echo the state parameter, FusionAuth's OAuth workflow will break and this page will be displayed.
theme.templates.oauth2Logout String A FreeMarker template that is rendered when the user requests the This page is used if the user initiates an OAuth logout. This page causes the user to be logged out of all associated applications or just the initiating application, as configured, via a front-channel mechanism before being redirected./oauth2/logout path.
theme.templates.oauth2Passwordless String A FreeMarker template that is rendered when the user requests the This page is rendered when the user starts the passwordless login workflow. The page renders the form where the user types in their email address./oauth2/passwordless path.
theme.templates.oauth2Register String A FreeMarker template that is rendered when the user requests the This page is used to register or sign up the user for the application when self-service registration is enabled./oauth2/register path.
theme.templates.oauth2StartIdPLink String Available since 1.28.0A FreeMarker template that is rendered when the user requests the This page is used if the linking strategy of the Identity Provider is set to create a pending link. The user is presented with the option to link their account with an existing FusionAuth user account or create a new FusionAuth user./oauth2/start-idp-link path.
theme.templates.oauth2TwoFactor String A FreeMarker template that is rendered when the user requests the This page is used if the user has two-factor authentication enabled or two factor authentication is required and they need to type in their code again. FusionAuth will properly handle the processing on the back end. This page contains the form that the user will put their code into./oauth2/two-factor path.
theme.templates.oauth2TwoFactorEnable String Available since 1.42.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with the Oauth2 two-factor enable form/oauth2/two-factor-enable path.
theme.templates.oauth2TwoFactorEnableComplete String Available since 1.42.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with the Oauth2 two-factor enable complete form/oauth2/two-factor-enable-complete path.
theme.templates.oauth2TwoFactorMethods String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with their configured multi-factor authentication options that they may use to complete the authentication challenge./oauth2/two-factor-methods path.
theme.templates.oauth2Wait String Available since 1.12.0A FreeMarker template that is rendered when the user requests the This page is rendered when FusionAuth is waiting for an external provider to complete an out of band authentication request. For example, during a HYPR login this page will be displayed until the user completes authentication./oauth2/wait path.
theme.templates.oauth2WebAuthn String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form where a user can enter their /oauth2/webauthn path. loginId (username or email address) to authenticate with one of their registered WebAuthn passkeys. This page uses the WebAuthn bootstrap workflow.
theme.templates.oauth2WebAuthnReauth String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that lists the WebAuthn passkeys currently available for re-authentication. A user can select one of the listed passkeys to authenticate using the corresponding passkey and user account./oauth2/webauthn-reauth path.
theme.templates.oauth2WebAuthnReauthEnable String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains two forms. One allows the user to select one of their existing WebAuthn passkeys to use for re-authentication. The other allows the user to register a new WebAuthn passkey for re-authentication./oauth2/webauthn-reauth-enable path.
theme.templates.passwordChange String A FreeMarker template that is rendered when the user requests the This page is used if the user is required to change their password or if they have requested a password reset. This page contains the form that allows the user to provide a new password./password/change path.
theme.templates.passwordComplete String A FreeMarker template that is rendered when the user requests the This page is used after the user has successfully updated their password, or reset it. This page should instruct the user that their password was updated and that they need to login again./password/complete path.
theme.templates.passwordForgot String A FreeMarker template that is rendered when the user requests the This page is used when a user starts the forgot password workflow. This page renders the form where the user types in their email address./password/forgot path.
theme.templates.passwordSent String A FreeMarker template that is rendered when the user requests the This page is used when a user has submitted the forgot password form with their email. FusionAuth does not indicate back to the user if their email address was valid in order to prevent malicious activity that could reveal valid email addresses. Therefore, this page should indicate to the user that if their email was valid, they will receive an email shortly with a link to reset their password./password/sent path.
theme.templates.phoneComplete String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their phone number by clicking the URL in the message. After FusionAuth has updated their user object to indicate that their phone number was verified, the browser is redirected to this page./phone/complete path.
theme.templates.phoneSent String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the verification message to be resent. This can happen if the URL in the message expired and the user clicked it. In this case, the user can provide their phone number again and FusionAuth will resend the message. After the user submits their phone number and FusionAuth re-sends a verification message to them, the browser is redirected to this page./phone/sent path.
theme.templates.phoneVerificationRequired String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their phone number prior to being allowed to proceed with login. This occurs when /phone/verification-required path. Unverified behavior is set to Gated in identities/phone verification settings on the Tenant.
theme.templates.phoneVerify String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user clicks the URL from the verification message and the /phone/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification message that has expired, this page will be rendered and the error will be displayed to the user.
theme.templates.registrationComplete String A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their email address for a specific application (i.e. a user registration) by clicking the URL in the email. After FusionAuth has updated their registration object to indicate that their email was verified, the browser is redirected to this page./registration/complete path.
theme.templates.registrationSent String A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the application specific verification email to be resent. This can happen if the URL in the email expired and the user clicked it. In this case, the user can provide their email address again and FusionAuth will resend the email. After the user submits their email and FusionAuth re-sends a verification email to them, the browser is redirected to this page./registration/sent path.
theme.templates.registrationVerificationRequired String Available since 1.27.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their registration prior to being allowed to proceed with the registration flow. This occurs when /registration/verification-required path. Unverified behavior is set to Gated in registration verification settings on the Application.
theme.templates.registrationVerify String A FreeMarker template that is rendered when the user requests the This page is used when a user clicks the URL from the application specific verification email and the /registration/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification email that has expired, this page will be rendered and the error will be displayed to the user.
theme.templates.samlv2Logout String Available since 1.25.0A FreeMarker template that is rendered when the user requests the This page is used if the user initiates a SAML logout. This page causes the user to be logged out of all associated applications via a front-channel mechanism before being redirected./samlv2/logout path.
theme.templates.unauthorized String Available since 1.30.0A FreeMarker template that is rendered when the user requests the This page is used if the user is not authorized to use the application or page. If you have advanced threat detection enabled, this page is generally made available to you./unauthorized path.
Example Advanced Theme Response JSON
{
"theme": {
"data": {
"addedBy": "richard"
},
"defaultMessages": "title=Login",
"id": "64773453-bb11-457b-a3d6-7475ec2259d0",
"insertInstant": 1564006815352,
"lastUpdateInstant": 1564084258150,
"localizedMessages": {
"fr": "title=Identifiant",
"es": "title=Iniciar sesión"
},
"name": "Orange Theme",
"stylesheet": "h1 {\r\n color: orange;\r\n text-align: center;\r\n}",
"templates": {
"accountEdit": "[#ftl/]",
"accountIndex": "[#ftl/]",
"accountTwoFactorDisable": "[#ftl/]",
"accountTwoFactorEnable": "[#ftl/]",
"accountTwoFactorIndex": "[#ftl/]",
"accountWebAuthnAdd": "[#ftl/]",
"accountWebAuthnDelete": "[#ftl/]",
"accountWebAuthnIndex": "[#ftl/]",
"emailComplete": "[#ftl/]",
"emailSent": "[#ftl/]",
"emailVerificationRequired": "[#ftl/]",
"emailVerify": "[#ftl/]",
"helpers": "[#ftl/]",
"index": "[#ftl/]",
"oauth2Authorize": "[#ftl/]",
"oauth2AuthorizedNotRegistered": "[#ftl/]",
"oauth2ChildRegistrationNotAllowed": "[#ftl/]",
"oauth2ChildRegistrationNotAllowedComplete": "[#ftl/]",
"oauth2CompleteRegistration": "[#ftl/]",
"oauth2Device": "[#ftl/]",
"oauth2DeviceComplete": "[#ftl/]",
"oauth2Error": "[#ftl/]",
"oauth2Logout": "[#ftl/]",
"oauth2Passwordless": "[#ftl/]",
"oauth2Register": "[#ftl/]",
"oauth2StartIdPLink": "[#ftl/]",
"oauth2TwoFactor": "[#ftl/]",
"oauth2TwoFactorEnable": "[#ftl/]",
"oauth2TwoFactorEnableComplete": "[#ftl/]",
"oauth2TwoFactorMethods": "[#ftl/]",
"oauth2Wait": "[#ftl/]",
"oauth2WebAuthn": "[#ftl/]",
"oauth2WebAuthnReauth": "[#ftl/]",
"oauth2WebAuthnReauthEnable": "[#ftl/]",
"passwordChange": "[#ftl/]",
"passwordComplete": "[#ftl/]",
"passwordForgot": "[#ftl/]",
"passwordSent": "[#ftl/]",
"registrationComplete": "[#ftl/]",
"registrationSent": "[#ftl/]",
"registrationVerificationRequired": "[#ftl/]",
"registrationVerify": "[#ftl/]",
"samlv2Logout": "[#ftl/]",
"unauthorized": "[#ftl/]"
},
"type": "advanced"
}
}
Retrieve an Advanced Theme#
This API is used to retrieve a single Theme by unique Id or all of the Themes.
Request#
OpenAPI Spec
OpenAPI Spec
Request Parameters#
themeId UUID required The unique Id of the Theme to retrieve.
Response#
The response for this API contains either a single Theme or all of the Themes. When you call this API with an Id the response will contain a single Theme. When you call this API without an Id the response will contain all of the themes. Both response types are defined below along with an example JSON response.
Response Codes| Code | Description |
|---|---|
| 200 | The request was successful. The response will contain a JSON body. |
| 400 | The request was invalid and/or malformed. The response will contain an Errors JSON Object with the specific errors. This status will also be returned if a paid FusionAuth license is required and is not present. |
| 401 | You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See Authentication. |
| 404 | The object you requested doesn't exist. The response will be empty. |
| 500 | There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty. |
Response Body#
theme.data Object An object that can hold any information about the Theme that should be persisted.
theme.defaultMessages String A properties file formatted String containing messages used within the templates.
theme.id UUID The unique Id of the Theme.
theme.insertInstant Long The instant that the theme was added to the FusionAuth database.
theme.lastUpdateInstant Long The instant that the theme was last updated in the FusionAuth database.
theme.localizedMessages Map<Locale,String> A Map of localized versions of the messages. The key is the Locale and the value is a properties file formatted String.
theme.name String A unique name for the Theme.
theme.stylesheet String A CSS stylesheet used to style the templates.
theme.templates.accountEdit String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that enables authenticated users to update their profile./account/edit path.
theme.templates.accountIndex String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This is the self-service account landing page. An authenticated user may use this as a starting point for operations such as updating their profile or configuring multi-factor authentication./account path.
theme.templates.accountTwoFactorDisable String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to disable a multi-factor authentication method./account/two-factor/disable path.
theme.templates.accountTwoFactorEdit String Available since 1.68.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to edit a multi-factor authentication method./account/two-factor/edit path.
theme.templates.accountTwoFactorEnable String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to enable a multi-factor authentication method. Additionally, this page displays recovery codes when a user enables multi-factor authentication for the first time./account/two-factor/enable path.
theme.templates.accountTwoFactorIndex String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page displays an authenticated user's configured multi-factor authentication methods. Additionally, it provides links to enable and disable a method./account/two-factor path.
theme.templates.accountWebAuthnAdd String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that allows a user to register a new WebAuthn passkey./account/webauthn/add path.
theme.templates.accountWebAuthnDelete String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that allows a user to delete a WebAuthn passkey./account/webauthn/delete path.
theme.templates.accountWebAuthnIndex String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page displays an authenticated user's registered WebAuthn passkeys. Additionally, it provides links to delete an existing passkey and register a new passkey./account/webauthn/ path.
theme.templates.confirmationRequired String Available since 1.49.0A FreeMarker template that is rendered when the user requests the This page is displayed when a user attempts to complete an email based workflow that did not begin in the same browser. For example, if the user starts a forgot password workflow, and then opens the link in a separate browser the user will be shown this panel./confirmation-required path.
theme.templates.emailComplete String A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their email address by clicking the URL in the email. After FusionAuth has updated their user object to indicate that their email was verified, the browser is redirected to this page./email/complete path.
theme.templates.emailSent String A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the verification email to be resent. This can happen if the URL in the email expired and the user clicked it. In this case, the user can provide their email address again and FusionAuth will resend the email. After the user submits their email and FusionAuth re-sends a verification email to them, the browser is redirected to this page./email/sent path.
theme.templates.emailVerificationRequired String Available since 1.27.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their email address prior to being allowed to proceed with login. This occurs when /email/verification-required path. Unverified behavior is set to Gated in email verification settings on the Tenant.
theme.templates.emailVerify String A FreeMarker template that is rendered when the user requests the This page is rendered when a user clicks the URL from the verification email and the /email/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification email that has expired, this page will be rendered and the error will be displayed to the user.
theme.templates.helpers String A https://freemarker.apache.org[FreeMarker] template that contains all of the macros and templates used by the rest of the login Theme FreeMarker templates. This allows you to configure the general layout of your UI configuration and login theme without having to copy and paste HTML into each of the templates.
theme.templates.index String Available since 1.27.0A FreeMarker template that is rendered when the user requests the This is the root landing page. This page is available to unauthenticated users and will be displayed whenever someone navigates to the FusionAuth host's root page. Prior to version / path. 1.27.0, navigating to this URL would redirect to /admin and would subsequently render the FusionAuth admin login page.
theme.templates.oauth2Authorize String A FreeMarker template that is rendered when the user requests the This is the main login page for FusionAuth and is used for all interactive OAuth2 and OpenID Connect workflows./oauth2/authorize path.
theme.templates.oauth2AuthorizedNotRegistered String Available since 1.28.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is not registered and the Application configuration requires registration before FusionAuth will complete the redirect./oauth2/authorized-not-registered path.
theme.templates.oauth2ChildRegistrationNotAllowed String A FreeMarker template that is rendered when the user requests the This page contains a form where a child must provide their parent's email address to ask their parent to create an account for them in a Consent workflow./oauth2/child-registration-not-allowed path.
theme.templates.oauth2ChildRegistrationNotAllowedComplete String A FreeMarker template that is rendered when the user requests the This page is rendered after a child provides their parent's email address for parental consent in a Consent workflow./oauth2/child-registration-not-allowed-complete path.
theme.templates.oauth2CompleteRegistration String A FreeMarker template that is rendered when the user requests the This page contains a form that is used for users that have accounts but might be missing required fields./oauth2/complete-registration path.
theme.templates.oauth2Consent String Available since 1.50.0A FreeMarker template that is rendered when the user requests the This page contains a form for capturing a user's OAuth scope consent choices. If there are no scopes that require a prompt, the user is redirected automatically./oauth2/consent path.
theme.templates.oauth2Device String Available since 1.11.0A FreeMarker template that is rendered when the user requests the This page contains a form for accepting an end user's short code for the interactive portion of the OAuth Device Authorization Grant workflow./oauth2/device path.
theme.templates.oauth2DeviceComplete String Available since 1.12.0A FreeMarker template that is rendered when the user requests the This page contains a complete message indicating the device authentication has completed./oauth2/device-complete path.
theme.templates.oauth2Error String This page is used if the user starts or is in the middle of the OAuth workflow and any type of error occurs. This could be caused by the user messing with the URL or internally some type of information wasn't passed between the OAuth endpoints correctly. For example, if you are federating login to an external IdP and that IdP does not properly echo the state parameter, FusionAuth's OAuth workflow will break and this page will be displayed.
theme.templates.oauth2Logout String A FreeMarker template that is rendered when the user requests the This page is used if the user initiates an OAuth logout. This page causes the user to be logged out of all associated applications or just the initiating application, as configured, via a front-channel mechanism before being redirected./oauth2/logout path.
theme.templates.oauth2Passwordless String A FreeMarker template that is rendered when the user requests the This page is rendered when the user starts the passwordless login workflow. The page renders the form where the user types in their email address./oauth2/passwordless path.
theme.templates.oauth2Register String A FreeMarker template that is rendered when the user requests the This page is used to register or sign up the user for the application when self-service registration is enabled./oauth2/register path.
theme.templates.oauth2StartIdPLink String Available since 1.28.0A FreeMarker template that is rendered when the user requests the This page is used if the linking strategy of the Identity Provider is set to create a pending link. The user is presented with the option to link their account with an existing FusionAuth user account or create a new FusionAuth user./oauth2/start-idp-link path.
theme.templates.oauth2TwoFactor String A FreeMarker template that is rendered when the user requests the This page is used if the user has two-factor authentication enabled or two factor authentication is required and they need to type in their code again. FusionAuth will properly handle the processing on the back end. This page contains the form that the user will put their code into./oauth2/two-factor path.
theme.templates.oauth2TwoFactorEnable String Available since 1.42.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with the Oauth2 two-factor enable form/oauth2/two-factor-enable path.
theme.templates.oauth2TwoFactorEnableComplete String Available since 1.42.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with the Oauth2 two-factor enable complete form/oauth2/two-factor-enable-complete path.
theme.templates.oauth2TwoFactorMethods String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with their configured multi-factor authentication options that they may use to complete the authentication challenge./oauth2/two-factor-methods path.
theme.templates.oauth2Wait String Available since 1.12.0A FreeMarker template that is rendered when the user requests the This page is rendered when FusionAuth is waiting for an external provider to complete an out of band authentication request. For example, during a HYPR login this page will be displayed until the user completes authentication./oauth2/wait path.
theme.templates.oauth2WebAuthn String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form where a user can enter their /oauth2/webauthn path. loginId (username or email address) to authenticate with one of their registered WebAuthn passkeys. This page uses the WebAuthn bootstrap workflow.
theme.templates.oauth2WebAuthnReauth String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that lists the WebAuthn passkeys currently available for re-authentication. A user can select one of the listed passkeys to authenticate using the corresponding passkey and user account./oauth2/webauthn-reauth path.
theme.templates.oauth2WebAuthnReauthEnable String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains two forms. One allows the user to select one of their existing WebAuthn passkeys to use for re-authentication. The other allows the user to register a new WebAuthn passkey for re-authentication./oauth2/webauthn-reauth-enable path.
theme.templates.passwordChange String A FreeMarker template that is rendered when the user requests the This page is used if the user is required to change their password or if they have requested a password reset. This page contains the form that allows the user to provide a new password./password/change path.
theme.templates.passwordComplete String A FreeMarker template that is rendered when the user requests the This page is used after the user has successfully updated their password, or reset it. This page should instruct the user that their password was updated and that they need to login again./password/complete path.
theme.templates.passwordForgot String A FreeMarker template that is rendered when the user requests the This page is used when a user starts the forgot password workflow. This page renders the form where the user types in their email address./password/forgot path.
theme.templates.passwordSent String A FreeMarker template that is rendered when the user requests the This page is used when a user has submitted the forgot password form with their email. FusionAuth does not indicate back to the user if their email address was valid in order to prevent malicious activity that could reveal valid email addresses. Therefore, this page should indicate to the user that if their email was valid, they will receive an email shortly with a link to reset their password./password/sent path.
theme.templates.phoneComplete String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their phone number by clicking the URL in the message. After FusionAuth has updated their user object to indicate that their phone number was verified, the browser is redirected to this page./phone/complete path.
theme.templates.phoneSent String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the verification message to be resent. This can happen if the URL in the message expired and the user clicked it. In this case, the user can provide their phone number again and FusionAuth will resend the message. After the user submits their phone number and FusionAuth re-sends a verification message to them, the browser is redirected to this page./phone/sent path.
theme.templates.phoneVerificationRequired String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their phone number prior to being allowed to proceed with login. This occurs when /phone/verification-required path. Unverified behavior is set to Gated in identities/phone verification settings on the Tenant.
theme.templates.phoneVerify String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user clicks the URL from the verification message and the /phone/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification message that has expired, this page will be rendered and the error will be displayed to the user.
theme.templates.registrationComplete String A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their email address for a specific application (i.e. a user registration) by clicking the URL in the email. After FusionAuth has updated their registration object to indicate that their email was verified, the browser is redirected to this page./registration/complete path.
theme.templates.registrationSent String A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the application specific verification email to be resent. This can happen if the URL in the email expired and the user clicked it. In this case, the user can provide their email address again and FusionAuth will resend the email. After the user submits their email and FusionAuth re-sends a verification email to them, the browser is redirected to this page./registration/sent path.
theme.templates.registrationVerificationRequired String Available since 1.27.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their registration prior to being allowed to proceed with the registration flow. This occurs when /registration/verification-required path. Unverified behavior is set to Gated in registration verification settings on the Application.
theme.templates.registrationVerify String A FreeMarker template that is rendered when the user requests the This page is used when a user clicks the URL from the application specific verification email and the /registration/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification email that has expired, this page will be rendered and the error will be displayed to the user.
theme.templates.samlv2Logout String Available since 1.25.0A FreeMarker template that is rendered when the user requests the This page is used if the user initiates a SAML logout. This page causes the user to be logged out of all associated applications via a front-channel mechanism before being redirected./samlv2/logout path.
theme.templates.unauthorized String Available since 1.30.0A FreeMarker template that is rendered when the user requests the This page is used if the user is not authorized to use the application or page. If you have advanced threat detection enabled, this page is generally made available to you./unauthorized path.
Example Advanced Theme Response JSON
{
"theme": {
"data": {
"addedBy": "richard"
},
"defaultMessages": "title=Login",
"id": "64773453-bb11-457b-a3d6-7475ec2259d0",
"insertInstant": 1564006815352,
"lastUpdateInstant": 1564084258150,
"localizedMessages": {
"fr": "title=Identifiant",
"es": "title=Iniciar sesión"
},
"name": "Orange Theme",
"stylesheet": "h1 {\r\n color: orange;\r\n text-align: center;\r\n}",
"templates": {
"accountEdit": "[#ftl/]",
"accountIndex": "[#ftl/]",
"accountTwoFactorDisable": "[#ftl/]",
"accountTwoFactorEnable": "[#ftl/]",
"accountTwoFactorIndex": "[#ftl/]",
"accountWebAuthnAdd": "[#ftl/]",
"accountWebAuthnDelete": "[#ftl/]",
"accountWebAuthnIndex": "[#ftl/]",
"emailComplete": "[#ftl/]",
"emailSent": "[#ftl/]",
"emailVerificationRequired": "[#ftl/]",
"emailVerify": "[#ftl/]",
"helpers": "[#ftl/]",
"index": "[#ftl/]",
"oauth2Authorize": "[#ftl/]",
"oauth2AuthorizedNotRegistered": "[#ftl/]",
"oauth2ChildRegistrationNotAllowed": "[#ftl/]",
"oauth2ChildRegistrationNotAllowedComplete": "[#ftl/]",
"oauth2CompleteRegistration": "[#ftl/]",
"oauth2Device": "[#ftl/]",
"oauth2DeviceComplete": "[#ftl/]",
"oauth2Error": "[#ftl/]",
"oauth2Logout": "[#ftl/]",
"oauth2Passwordless": "[#ftl/]",
"oauth2Register": "[#ftl/]",
"oauth2StartIdPLink": "[#ftl/]",
"oauth2TwoFactor": "[#ftl/]",
"oauth2TwoFactorEnable": "[#ftl/]",
"oauth2TwoFactorEnableComplete": "[#ftl/]",
"oauth2TwoFactorMethods": "[#ftl/]",
"oauth2Wait": "[#ftl/]",
"oauth2WebAuthn": "[#ftl/]",
"oauth2WebAuthnReauth": "[#ftl/]",
"oauth2WebAuthnReauthEnable": "[#ftl/]",
"passwordChange": "[#ftl/]",
"passwordComplete": "[#ftl/]",
"passwordForgot": "[#ftl/]",
"passwordSent": "[#ftl/]",
"registrationComplete": "[#ftl/]",
"registrationSent": "[#ftl/]",
"registrationVerificationRequired": "[#ftl/]",
"registrationVerify": "[#ftl/]",
"samlv2Logout": "[#ftl/]",
"unauthorized": "[#ftl/]"
},
"type": "advanced"
}
}
Responses from the theme API can contain Simple Themes as well.
Response Body#
themes Array The list of Theme objects.
themes[x].data Object An object that can hold any information about the Theme that should be persisted.
themes[x].defaultMessages Integer A properties file formatted String containing messages used within the templates.
themes[x].id UUID The unique Id of the Theme.
themes[x].insertInstant Long The instant that the theme was added to the FusionAuth database.
themes[x].lastUpdateInstant Long The instant that the theme was last updated in the FusionAuth database.
themes[x].localizedMessages Map<Locale,String> A Map of localized versions of the messages. The key is the Locale and the value is a properties file formatted String.
themes[x].name String A unique name for the Theme.
themes[x].stylesheet String optional A CSS stylesheet used to style the templates.
themes[x].templates.accountEdit String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that enables authenticated users to update their profile./account/edit path.
themes[x].templates.accountIndex String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This is the self-service account landing page. An authenticated user may use this as a starting point for operations such as updating their profile or configuring multi-factor authentication./account path.
themes[x].templates.accountTwoFactorDisable String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to disable a multi-factor authentication method./account/two-factor/disable path.
themes[x].templates.accountTwoFactorEdit String Available since 1.68.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to edit a multi-factor authentication method./account/two-factor/edit path.
themes[x].templates.accountTwoFactorEnable String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to enable a multi-factor authentication method. Additionally, this page displays recovery codes when a user enables multi-factor authentication for the first time./account/two-factor/enable path.
themes[x].templates.accountTwoFactorIndex String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page displays an authenticated user's configured multi-factor authentication methods. Additionally, it provides links to enable and disable a method./account/two-factor path.
themes[x].templates.accountWebAuthnAdd String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that allows a user to register a new WebAuthn passkey./account/webauthn/add path.
themes[x].templates.accountWebAuthnDelete String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that allows a user to delete a WebAuthn passkey./account/webauthn/delete path.
themes[x].templates.accountWebAuthnIndex String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page displays an authenticated user's registered WebAuthn passkeys. Additionally, it provides links to delete an existing passkey and register a new passkey./account/webauthn/ path.
themes[x].templates.confirmationRequired String Available since 1.49.0A FreeMarker template that is rendered when the user requests the This page is displayed when a user attempts to complete an email based workflow that did not begin in the same browser. For example, if the user starts a forgot password workflow, and then opens the link in a separate browser the user will be shown this panel./confirmation-required path.
themes[x].templates.emailComplete String A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their email address by clicking the URL in the email. After FusionAuth has updated their user object to indicate that their email was verified, the browser is redirected to this page./email/complete path.
themes[x].templates.emailSent String A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the verification email to be resent. This can happen if the URL in the email expired and the user clicked it. In this case, the user can provide their email address again and FusionAuth will resend the email. After the user submits their email and FusionAuth re-sends a verification email to them, the browser is redirected to this page./email/sent path.
themes[x].templates.emailVerificationRequired String Available since 1.27.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their email address prior to being allowed to proceed with login. This occurs when /email/verification-required path. Unverified behavior is set to Gated in email verification settings on the Tenant.
themes[x].templates.emailVerify String A FreeMarker template that is rendered when the user requests the This page is rendered when a user clicks the URL from the verification email and the /email/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification email that has expired, this page will be rendered and the error will be displayed to the user.
themes[x].templates.helpers String A https://freemarker.apache.org[FreeMarker] template that contains all of the macros and templates used by the rest of the login Theme FreeMarker templates. This allows you to configure the general layout of your UI configuration and login theme without having to copy and paste HTML into each of the templates.
themes[x].templates.index String Available since 1.27.0A FreeMarker template that is rendered when the user requests the This is the root landing page. This page is available to unauthenticated users and will be displayed whenever someone navigates to the FusionAuth host's root page. Prior to version / path. 1.27.0, navigating to this URL would redirect to /admin and would subsequently render the FusionAuth admin login page.
themes[x].templates.oauth2Authorize String A FreeMarker template that is rendered when the user requests the This is the main login page for FusionAuth and is used for all interactive OAuth2 and OpenID Connect workflows./oauth2/authorize path.
themes[x].templates.oauth2AuthorizedNotRegistered String Available since 1.28.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is not registered and the Application configuration requires registration before FusionAuth will complete the redirect./oauth2/authorized-not-registered path.
themes[x].templates.oauth2ChildRegistrationNotAllowed String A FreeMarker template that is rendered when the user requests the This page contains a form where a child must provide their parent's email address to ask their parent to create an account for them in a Consent workflow./oauth2/child-registration-not-allowed path.
themes[x].templates.oauth2ChildRegistrationNotAllowedComplete String A FreeMarker template that is rendered when the user requests the This page is rendered after a child provides their parent's email address for parental consent in a Consent workflow./oauth2/child-registration-not-allowed-complete path.
themes[x].templates.oauth2CompleteRegistration String A FreeMarker template that is rendered when the user requests the This page contains a form that is used for users that have accounts but might be missing required fields./oauth2/complete-registration path.
themes[x].templates.oauth2Consent String Available since 1.50.0A FreeMarker template that is rendered when the user requests the This page contains a form for capturing a user's OAuth scope consent choices. If there are no scopes that require a prompt, the user is redirected automatically./oauth2/consent path.
themes[x].templates.oauth2Device String Available since 1.11.0A FreeMarker template that is rendered when the user requests the This page contains a form for accepting an end user's short code for the interactive portion of the OAuth Device Authorization Grant workflow./oauth2/device path.
themes[x].templates.oauth2DeviceComplete String Available since 1.12.0A FreeMarker template that is rendered when the user requests the This page contains a complete message indicating the device authentication has completed./oauth2/device-complete path.
themes[x].templates.oauth2Error String This page is used if the user starts or is in the middle of the OAuth workflow and any type of error occurs. This could be caused by the user messing with the URL or internally some type of information wasn't passed between the OAuth endpoints correctly. For example, if you are federating login to an external IdP and that IdP does not properly echo the state parameter, FusionAuth's OAuth workflow will break and this page will be displayed.
themes[x].templates.oauth2Logout String A FreeMarker template that is rendered when the user requests the This page is used if the user initiates an OAuth logout. This page causes the user to be logged out of all associated applications or just the initiating application, as configured, via a front-channel mechanism before being redirected./oauth2/logout path.
themes[x].templates.oauth2Passwordless String A FreeMarker template that is rendered when the user requests the This page is rendered when the user starts the passwordless login workflow. The page renders the form where the user types in their email address./oauth2/passwordless path.
themes[x].templates.oauth2Register String A FreeMarker template that is rendered when the user requests the This page is used to register or sign up the user for the application when self-service registration is enabled./oauth2/register path.
themes[x].templates.oauth2StartIdPLink String Available since 1.28.0A FreeMarker template that is rendered when the user requests the This page is used if the linking strategy of the Identity Provider is set to create a pending link. The user is presented with the option to link their account with an existing FusionAuth user account or create a new FusionAuth user./oauth2/start-idp-link path.
themes[x].templates.oauth2TwoFactor String A FreeMarker template that is rendered when the user requests the This page is used if the user has two-factor authentication enabled or two factor authentication is required and they need to type in their code again. FusionAuth will properly handle the processing on the back end. This page contains the form that the user will put their code into./oauth2/two-factor path.
themes[x].templates.oauth2TwoFactorEnable String Available since 1.42.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with the Oauth2 two-factor enable form/oauth2/two-factor-enable path.
themes[x].templates.oauth2TwoFactorEnableComplete String Available since 1.42.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with the Oauth2 two-factor enable complete form/oauth2/two-factor-enable-complete path.
themes[x].templates.oauth2TwoFactorMethods String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with their configured multi-factor authentication options that they may use to complete the authentication challenge./oauth2/two-factor-methods path.
themes[x].templates.oauth2Wait String Available since 1.12.0A FreeMarker template that is rendered when the user requests the This page is rendered when FusionAuth is waiting for an external provider to complete an out of band authentication request. For example, during a HYPR login this page will be displayed until the user completes authentication./oauth2/wait path.
themes[x].templates.oauth2WebAuthn String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form where a user can enter their /oauth2/webauthn path. loginId (username or email address) to authenticate with one of their registered WebAuthn passkeys. This page uses the WebAuthn bootstrap workflow.
themes[x].templates.oauth2WebAuthnReauth String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that lists the WebAuthn passkeys currently available for re-authentication. A user can select one of the listed passkeys to authenticate using the corresponding passkey and user account./oauth2/webauthn-reauth path.
themes[x].templates.oauth2WebAuthnReauthEnable String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains two forms. One allows the user to select one of their existing WebAuthn passkeys to use for re-authentication. The other allows the user to register a new WebAuthn passkey for re-authentication./oauth2/webauthn-reauth-enable path.
themes[x].templates.passwordChange String A FreeMarker template that is rendered when the user requests the This page is used if the user is required to change their password or if they have requested a password reset. This page contains the form that allows the user to provide a new password./password/change path.
themes[x].templates.passwordComplete String A FreeMarker template that is rendered when the user requests the This page is used after the user has successfully updated their password, or reset it. This page should instruct the user that their password was updated and that they need to login again./password/complete path.
themes[x].templates.passwordForgot String A FreeMarker template that is rendered when the user requests the This page is used when a user starts the forgot password workflow. This page renders the form where the user types in their email address./password/forgot path.
themes[x].templates.passwordSent String A FreeMarker template that is rendered when the user requests the This page is used when a user has submitted the forgot password form with their email. FusionAuth does not indicate back to the user if their email address was valid in order to prevent malicious activity that could reveal valid email addresses. Therefore, this page should indicate to the user that if their email was valid, they will receive an email shortly with a link to reset their password./password/sent path.
themes[x].templates.phoneComplete String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their phone number by clicking the URL in the message. After FusionAuth has updated their user object to indicate that their phone number was verified, the browser is redirected to this page./phone/complete path.
themes[x].templates.phoneSent String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the verification message to be resent. This can happen if the URL in the message expired and the user clicked it. In this case, the user can provide their phone number again and FusionAuth will resend the message. After the user submits their phone number and FusionAuth re-sends a verification message to them, the browser is redirected to this page./phone/sent path.
themes[x].templates.phoneVerificationRequired String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their phone number prior to being allowed to proceed with login. This occurs when /phone/verification-required path. Unverified behavior is set to Gated in identities/phone verification settings on the Tenant.
themes[x].templates.phoneVerify String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user clicks the URL from the verification message and the /phone/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification message that has expired, this page will be rendered and the error will be displayed to the user.
themes[x].templates.registrationComplete String A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their email address for a specific application (i.e. a user registration) by clicking the URL in the email. After FusionAuth has updated their registration object to indicate that their email was verified, the browser is redirected to this page./registration/complete path.
themes[x].templates.registrationSent String A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the application specific verification email to be resent. This can happen if the URL in the email expired and the user clicked it. In this case, the user can provide their email address again and FusionAuth will resend the email. After the user submits their email and FusionAuth re-sends a verification email to them, the browser is redirected to this page./registration/sent path.
themes[x].templates.registrationVerificationRequired String Available since 1.27.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their registration prior to being allowed to proceed with the registration flow. This occurs when /registration/verification-required path. Unverified behavior is set to Gated in registration verification settings on the Application.
themes[x].templates.registrationVerify String A FreeMarker template that is rendered when the user requests the This page is used when a user clicks the URL from the application specific verification email and the /registration/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification email that has expired, this page will be rendered and the error will be displayed to the user.
themes[x].templates.samlv2Logout String Available since 1.25.0A FreeMarker template that is rendered when the user requests the This page is used if the user initiates a SAML logout. This page causes the user to be logged out of all associated applications via a front-channel mechanism before being redirected./samlv2/logout path.
themes[x].templates.unauthorized String Available since 1.30.0A FreeMarker template that is rendered when the user requests the This page is used if the user is not authorized to use the application or page. If you have advanced threat detection enabled, this page is generally made available to you./unauthorized path.
Example Response JSON
{
"themes": [
{
"data": {
"addedBy": "richard"
},
"defaultMessages": "title=Login",
"id": "64773453-bb11-457b-a3d6-7475ec2259d0",
"insertInstant": 1564006815352,
"lastUpdateInstant": 1564084258150,
"localizedMessages": {
"fr": "title=Identifiant",
"es": "title=Iniciar sesión"
},
"name": "Orange Theme",
"stylesheet": "h1 {\r\n color: orange;\r\n text-align: center;\r\n}",
"templates": {
"accountEdit": "[#ftl/]",
"accountIndex": "[#ftl/]",
"accountTwoFactorDisable": "[#ftl/]",
"accountTwoFactorEnable": "[#ftl/]",
"accountTwoFactorIndex": "[#ftl/]",
"accountWebAuthnAdd": "[#ftl/]",
"accountWebAuthnDelete": "[#ftl/]",
"accountWebAuthnIndex": "[#ftl/]",
"emailComplete": "[#ftl/]",
"emailSent": "[#ftl/]",
"emailVerificationRequired": "[#ftl/]",
"emailVerify": "[#ftl/]",
"helpers": "[#ftl/]",
"index": "[#ftl/]",
"oauth2Authorize": "[#ftl/]",
"oauth2AuthorizedNotRegistered": "[#ftl/]",
"oauth2ChildRegistrationNotAllowed": "[#ftl/]",
"oauth2ChildRegistrationNotAllowedComplete": "[#ftl/]",
"oauth2CompleteRegistration": "[#ftl/]",
"oauth2Device": "[#ftl/]",
"oauth2DeviceComplete": "[#ftl/]",
"oauth2Error": "[#ftl/]",
"oauth2Logout": "[#ftl/]",
"oauth2Passwordless": "[#ftl/]",
"oauth2Register": "[#ftl/]",
"oauth2StartIdPLink": "[#ftl/]",
"oauth2TwoFactor": "[#ftl/]",
"oauth2TwoFactorEnable": "[#ftl/]",
"oauth2TwoFactorEnableComplete": "[#ftl/]",
"oauth2TwoFactorMethods": "[#ftl/]",
"oauth2Wait": "[#ftl/]",
"oauth2WebAuthn": "[#ftl/]",
"oauth2WebAuthnReauth": "[#ftl/]",
"oauth2WebAuthnReauthEnable": "[#ftl/]",
"passwordChange": "[#ftl/]",
"passwordComplete": "[#ftl/]",
"passwordForgot": "[#ftl/]",
"passwordSent": "[#ftl/]",
"registrationComplete": "[#ftl/]",
"registrationSent": "[#ftl/]",
"registrationVerificationRequired": "[#ftl/]",
"registrationVerify": "[#ftl/]",
"samlv2Logout": "[#ftl/]",
"unauthorized": "[#ftl/]"
},
"type": "advanced"
},
{
"data": {},
"defaultMessages": "login=Please Log in",
"id": "58324824-6539-4305-8117-b28f26466ab9",
"insertInstant": 1716401547557,
"lastUpdateInstant": 1716401606387,
"localizedMessages": {},
"name": "White Theme",
"type": "simple",
"variables": {
"alertBackgroundColor": "#ffffff",
"alertFontColor": "#ffffff",
"backgroundImageURL": "https://example.com/mybackground.png",
"backgroundRepeat": "no-repeat",
"backgroundSize": "cover",
"borderRadius": "1.00rem",
"deleteButtonColor": "#ffffff",
"deleteButtonFocusColor": "#cccccc",
"deleteButtonTextColor": "#ffffff",
"deleteButtonTextFocusColor": "#cccccc",
"errorFontColor": "#ffffff",
"fontColor": "#ffffff",
"fontFamily": "sans-serif",
"footerDisplay": "flex",
"iconBackgroundColor": "#ffffff",
"iconColor": "#ffffff",
"inputBackgroundColor": "#ffffff",
"inputIconColor": "#ffffff",
"inputTextColor": "#ffffff",
"linkTextColor": "#ffffff",
"linkTextFocusColor": "#cccccc",
"logoImageDisplay": "flex",
"logoImageSize": "7rem",
"logoImageURL": "https://example.com/mylogo.png",
"monoFontColor": "#ffffff",
"monoFontFamily": "monospace",
"pageBackgroundColor": "#ffffff",
"panelBackgroundColor": "#ffffff",
"primaryButtonColor": "#ffffff",
"primaryButtonFocusColor": "#cccccc",
"primaryButtonTextColor": "#ffffff",
"primaryButtonTextFocusColor": "#cccccc"
}
},
{
"id": "75a068fd-e94b-451a-9aeb-3ddb9a3b5987",
"insertInstant": 1563999505859,
"lastUpdateInstant": 1564005677559,
"name": "Default Theme",
"type": "advanced"
},
{
"data": {},
"id": "3c717291-5d83-4014-bd51-97c76475dc86",
"insertInstant": 1716251105423,
"lastUpdateInstant": 1716251105423,
"localizedMessages": {},
"name": "Default Simple Theme",
"type": "simple"
}
]
}
Search for Themes#
This API has been available since 1.45.0
This API is used to search for Themes and may be called using the GET or POST HTTP methods. Examples of each are provided below. The POST method is provided to allow for a richer request object without worrying about exceeding the maximum length of a URL. Calling this API with either the GET or POST HTTP method will provide the same search results given the same query parameters.
Request#
Request Parameters#
name String optional The case-insensitive string to search for in the Theme name. This can contain wildcards using the asterisk character (*). If no wildcards are present, the search criteria will be interpreted as *value*.
numberOfResults Integer optional Defaults to 25 The number of results to return from the search.
orderBy String optional Defaults to name ASC The database field to order the search results as well as an order direction.
The possible values are:
id- the unique Id of the ThemeinsertInstant- the instant when the Theme was createdname- the Theme name
The order direction is optional. Possible values of the order direction are ASC or DESC. If omitted, the default sort order is ASC.
For example, to order the results by the insert instant in a descending order, use insertInstant DESC.
startRow Integer optional Defaults to 0 The offset into the total results. In order to paginate the results, increment this value by the numberOfResults for subsequent requests.
For example, if the total search results are greater than the page size designated by numberOfResults, set this value to 25 to retrieve results 26-50, assuming the default page size.
OpenAPI Spec
When calling the API using a POST request you will send the search criteria in a JSON request body.
Request Body#
search.name String optional The case-insensitive string to search for in the Theme name. This can contain wildcards using the asterisk character (*). If no wildcards are present, the search criteria will be interpreted as *value*.
search.numberOfResults Integer optional Defaults to 25 The number of results to return from the search.
search.orderBy String optional Defaults to name ASC The database field to order the search results as well as an order direction.
The possible values are:
id- the unique Id of the ThemeinsertInstant- the instant when the Theme was createdname- the Theme name
The order direction is optional. Possible values of the order direction are ASC or DESC. If omitted, the default sort order is ASC.
For example, to order the results by the insert instant in a descending order, use insertInstant DESC.
search.startRow Integer optional Defaults to 0 The offset into the total results. In order to paginate the results, increment this value by the numberOfResults for subsequent requests.
For example, if the total search results are greater than the page size designated by numberOfResults, set this value to 25 to retrieve results 26-50, assuming the default page size.
Example JSON Request
{
"search": {
"name": "Orange",
"numberOfResults": 25,
"orderBy": "insertInstant",
"startRow": 0
}
}
Response#
The response for this API contains the Themes matching the search criteria in paginated format.
Response Codes| Code | Description |
|---|---|
| 200 | The request was successful. The response will contain a JSON body. |
| 400 | The request was invalid and/or malformed. The response will contain an Errors JSON Object with the specific errors. This status will also be returned if a paid FusionAuth license is required and is not present. |
| 401 | You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See Authentication. |
| 500 | There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty. |
Responses from the theme API can contain Simple Themes as well.
Response Body#
themes Array The list of Theme objects.
themes[x].data Object An object that can hold any information about the Theme that should be persisted.
themes[x].defaultMessages Integer A properties file formatted String containing messages used within the templates.
themes[x].id UUID The unique Id of the Theme.
themes[x].insertInstant Long The instant that the theme was added to the FusionAuth database.
themes[x].lastUpdateInstant Long The instant that the theme was last updated in the FusionAuth database.
themes[x].localizedMessages Map<Locale,String> A Map of localized versions of the messages. The key is the Locale and the value is a properties file formatted String.
themes[x].name String A unique name for the Theme.
themes[x].stylesheet String optional A CSS stylesheet used to style the templates.
themes[x].templates.accountEdit String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that enables authenticated users to update their profile./account/edit path.
themes[x].templates.accountIndex String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This is the self-service account landing page. An authenticated user may use this as a starting point for operations such as updating their profile or configuring multi-factor authentication./account path.
themes[x].templates.accountTwoFactorDisable String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to disable a multi-factor authentication method./account/two-factor/disable path.
themes[x].templates.accountTwoFactorEdit String Available since 1.68.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to edit a multi-factor authentication method./account/two-factor/edit path.
themes[x].templates.accountTwoFactorEnable String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to enable a multi-factor authentication method. Additionally, this page displays recovery codes when a user enables multi-factor authentication for the first time./account/two-factor/enable path.
themes[x].templates.accountTwoFactorIndex String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page displays an authenticated user's configured multi-factor authentication methods. Additionally, it provides links to enable and disable a method./account/two-factor path.
themes[x].templates.accountWebAuthnAdd String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that allows a user to register a new WebAuthn passkey./account/webauthn/add path.
themes[x].templates.accountWebAuthnDelete String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that allows a user to delete a WebAuthn passkey./account/webauthn/delete path.
themes[x].templates.accountWebAuthnIndex String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page displays an authenticated user's registered WebAuthn passkeys. Additionally, it provides links to delete an existing passkey and register a new passkey./account/webauthn/ path.
themes[x].templates.confirmationRequired String Available since 1.49.0A FreeMarker template that is rendered when the user requests the This page is displayed when a user attempts to complete an email based workflow that did not begin in the same browser. For example, if the user starts a forgot password workflow, and then opens the link in a separate browser the user will be shown this panel./confirmation-required path.
themes[x].templates.emailComplete String A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their email address by clicking the URL in the email. After FusionAuth has updated their user object to indicate that their email was verified, the browser is redirected to this page./email/complete path.
themes[x].templates.emailSent String A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the verification email to be resent. This can happen if the URL in the email expired and the user clicked it. In this case, the user can provide their email address again and FusionAuth will resend the email. After the user submits their email and FusionAuth re-sends a verification email to them, the browser is redirected to this page./email/sent path.
themes[x].templates.emailVerificationRequired String Available since 1.27.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their email address prior to being allowed to proceed with login. This occurs when /email/verification-required path. Unverified behavior is set to Gated in email verification settings on the Tenant.
themes[x].templates.emailVerify String A FreeMarker template that is rendered when the user requests the This page is rendered when a user clicks the URL from the verification email and the /email/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification email that has expired, this page will be rendered and the error will be displayed to the user.
themes[x].templates.helpers String A https://freemarker.apache.org[FreeMarker] template that contains all of the macros and templates used by the rest of the login Theme FreeMarker templates. This allows you to configure the general layout of your UI configuration and login theme without having to copy and paste HTML into each of the templates.
themes[x].templates.index String Available since 1.27.0A FreeMarker template that is rendered when the user requests the This is the root landing page. This page is available to unauthenticated users and will be displayed whenever someone navigates to the FusionAuth host's root page. Prior to version / path. 1.27.0, navigating to this URL would redirect to /admin and would subsequently render the FusionAuth admin login page.
themes[x].templates.oauth2Authorize String A FreeMarker template that is rendered when the user requests the This is the main login page for FusionAuth and is used for all interactive OAuth2 and OpenID Connect workflows./oauth2/authorize path.
themes[x].templates.oauth2AuthorizedNotRegistered String Available since 1.28.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is not registered and the Application configuration requires registration before FusionAuth will complete the redirect./oauth2/authorized-not-registered path.
themes[x].templates.oauth2ChildRegistrationNotAllowed String A FreeMarker template that is rendered when the user requests the This page contains a form where a child must provide their parent's email address to ask their parent to create an account for them in a Consent workflow./oauth2/child-registration-not-allowed path.
themes[x].templates.oauth2ChildRegistrationNotAllowedComplete String A FreeMarker template that is rendered when the user requests the This page is rendered after a child provides their parent's email address for parental consent in a Consent workflow./oauth2/child-registration-not-allowed-complete path.
themes[x].templates.oauth2CompleteRegistration String A FreeMarker template that is rendered when the user requests the This page contains a form that is used for users that have accounts but might be missing required fields./oauth2/complete-registration path.
themes[x].templates.oauth2Consent String Available since 1.50.0A FreeMarker template that is rendered when the user requests the This page contains a form for capturing a user's OAuth scope consent choices. If there are no scopes that require a prompt, the user is redirected automatically./oauth2/consent path.
themes[x].templates.oauth2Device String Available since 1.11.0A FreeMarker template that is rendered when the user requests the This page contains a form for accepting an end user's short code for the interactive portion of the OAuth Device Authorization Grant workflow./oauth2/device path.
themes[x].templates.oauth2DeviceComplete String Available since 1.12.0A FreeMarker template that is rendered when the user requests the This page contains a complete message indicating the device authentication has completed./oauth2/device-complete path.
themes[x].templates.oauth2Error String This page is used if the user starts or is in the middle of the OAuth workflow and any type of error occurs. This could be caused by the user messing with the URL or internally some type of information wasn't passed between the OAuth endpoints correctly. For example, if you are federating login to an external IdP and that IdP does not properly echo the state parameter, FusionAuth's OAuth workflow will break and this page will be displayed.
themes[x].templates.oauth2Logout String A FreeMarker template that is rendered when the user requests the This page is used if the user initiates an OAuth logout. This page causes the user to be logged out of all associated applications or just the initiating application, as configured, via a front-channel mechanism before being redirected./oauth2/logout path.
themes[x].templates.oauth2Passwordless String A FreeMarker template that is rendered when the user requests the This page is rendered when the user starts the passwordless login workflow. The page renders the form where the user types in their email address./oauth2/passwordless path.
themes[x].templates.oauth2Register String A FreeMarker template that is rendered when the user requests the This page is used to register or sign up the user for the application when self-service registration is enabled./oauth2/register path.
themes[x].templates.oauth2StartIdPLink String Available since 1.28.0A FreeMarker template that is rendered when the user requests the This page is used if the linking strategy of the Identity Provider is set to create a pending link. The user is presented with the option to link their account with an existing FusionAuth user account or create a new FusionAuth user./oauth2/start-idp-link path.
themes[x].templates.oauth2TwoFactor String A FreeMarker template that is rendered when the user requests the This page is used if the user has two-factor authentication enabled or two factor authentication is required and they need to type in their code again. FusionAuth will properly handle the processing on the back end. This page contains the form that the user will put their code into./oauth2/two-factor path.
themes[x].templates.oauth2TwoFactorEnable String Available since 1.42.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with the Oauth2 two-factor enable form/oauth2/two-factor-enable path.
themes[x].templates.oauth2TwoFactorEnableComplete String Available since 1.42.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with the Oauth2 two-factor enable complete form/oauth2/two-factor-enable-complete path.
themes[x].templates.oauth2TwoFactorMethods String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with their configured multi-factor authentication options that they may use to complete the authentication challenge./oauth2/two-factor-methods path.
themes[x].templates.oauth2Wait String Available since 1.12.0A FreeMarker template that is rendered when the user requests the This page is rendered when FusionAuth is waiting for an external provider to complete an out of band authentication request. For example, during a HYPR login this page will be displayed until the user completes authentication./oauth2/wait path.
themes[x].templates.oauth2WebAuthn String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form where a user can enter their /oauth2/webauthn path. loginId (username or email address) to authenticate with one of their registered WebAuthn passkeys. This page uses the WebAuthn bootstrap workflow.
themes[x].templates.oauth2WebAuthnReauth String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that lists the WebAuthn passkeys currently available for re-authentication. A user can select one of the listed passkeys to authenticate using the corresponding passkey and user account./oauth2/webauthn-reauth path.
themes[x].templates.oauth2WebAuthnReauthEnable String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains two forms. One allows the user to select one of their existing WebAuthn passkeys to use for re-authentication. The other allows the user to register a new WebAuthn passkey for re-authentication./oauth2/webauthn-reauth-enable path.
themes[x].templates.passwordChange String A FreeMarker template that is rendered when the user requests the This page is used if the user is required to change their password or if they have requested a password reset. This page contains the form that allows the user to provide a new password./password/change path.
themes[x].templates.passwordComplete String A FreeMarker template that is rendered when the user requests the This page is used after the user has successfully updated their password, or reset it. This page should instruct the user that their password was updated and that they need to login again./password/complete path.
themes[x].templates.passwordForgot String A FreeMarker template that is rendered when the user requests the This page is used when a user starts the forgot password workflow. This page renders the form where the user types in their email address./password/forgot path.
themes[x].templates.passwordSent String A FreeMarker template that is rendered when the user requests the This page is used when a user has submitted the forgot password form with their email. FusionAuth does not indicate back to the user if their email address was valid in order to prevent malicious activity that could reveal valid email addresses. Therefore, this page should indicate to the user that if their email was valid, they will receive an email shortly with a link to reset their password./password/sent path.
themes[x].templates.phoneComplete String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their phone number by clicking the URL in the message. After FusionAuth has updated their user object to indicate that their phone number was verified, the browser is redirected to this page./phone/complete path.
themes[x].templates.phoneSent String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the verification message to be resent. This can happen if the URL in the message expired and the user clicked it. In this case, the user can provide their phone number again and FusionAuth will resend the message. After the user submits their phone number and FusionAuth re-sends a verification message to them, the browser is redirected to this page./phone/sent path.
themes[x].templates.phoneVerificationRequired String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their phone number prior to being allowed to proceed with login. This occurs when /phone/verification-required path. Unverified behavior is set to Gated in identities/phone verification settings on the Tenant.
themes[x].templates.phoneVerify String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user clicks the URL from the verification message and the /phone/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification message that has expired, this page will be rendered and the error will be displayed to the user.
themes[x].templates.registrationComplete String A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their email address for a specific application (i.e. a user registration) by clicking the URL in the email. After FusionAuth has updated their registration object to indicate that their email was verified, the browser is redirected to this page./registration/complete path.
themes[x].templates.registrationSent String A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the application specific verification email to be resent. This can happen if the URL in the email expired and the user clicked it. In this case, the user can provide their email address again and FusionAuth will resend the email. After the user submits their email and FusionAuth re-sends a verification email to them, the browser is redirected to this page./registration/sent path.
themes[x].templates.registrationVerificationRequired String Available since 1.27.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their registration prior to being allowed to proceed with the registration flow. This occurs when /registration/verification-required path. Unverified behavior is set to Gated in registration verification settings on the Application.
themes[x].templates.registrationVerify String A FreeMarker template that is rendered when the user requests the This page is used when a user clicks the URL from the application specific verification email and the /registration/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification email that has expired, this page will be rendered and the error will be displayed to the user.
themes[x].templates.samlv2Logout String Available since 1.25.0A FreeMarker template that is rendered when the user requests the This page is used if the user initiates a SAML logout. This page causes the user to be logged out of all associated applications via a front-channel mechanism before being redirected./samlv2/logout path.
themes[x].templates.unauthorized String Available since 1.30.0A FreeMarker template that is rendered when the user requests the This page is used if the user is not authorized to use the application or page. If you have advanced threat detection enabled, this page is generally made available to you./unauthorized path.
total Integer The total number of Themes matching the search criteria. Use this value along with the numberOfResults and startRow in the Search request to perform pagination.
Example Response JSON for Theme Search
{
"themes": [
{
"data": {
"addedBy": "richard"
},
"defaultMessages": "title=Login",
"id": "64773453-bb11-457b-a3d6-7475ec2259d0",
"insertInstant": 1564006815352,
"lastUpdateInstant": 1564084258150,
"localizedMessages": {
"fr": "title=Identifiant",
"es": "title=Iniciar sesión"
},
"name": "Orange Theme",
"stylesheet": "h1 {\r\n color: orange;\r\n text-align: center;\r\n}",
"templates": {
"accountEdit": "[#ftl/]",
"accountIndex": "[#ftl/]",
"accountTwoFactorDisable": "[#ftl/]",
"accountTwoFactorEnable": "[#ftl/]",
"accountTwoFactorIndex": "[#ftl/]",
"accountWebAuthnAdd": "[#ftl/]",
"accountWebAuthnDelete": "[#ftl/]",
"accountWebAuthnIndex": "[#ftl/]",
"emailComplete": "[#ftl/]",
"emailSent": "[#ftl/]",
"emailVerificationRequired": "[#ftl/]",
"emailVerify": "[#ftl/]",
"helpers": "[#ftl/]",
"index": "[#ftl/]",
"oauth2Authorize": "[#ftl/]",
"oauth2AuthorizedNotRegistered": "[#ftl/]",
"oauth2ChildRegistrationNotAllowed": "[#ftl/]",
"oauth2ChildRegistrationNotAllowedComplete": "[#ftl/]",
"oauth2CompleteRegistration": "[#ftl/]",
"oauth2Device": "[#ftl/]",
"oauth2DeviceComplete": "[#ftl/]",
"oauth2Error": "[#ftl/]",
"oauth2Logout": "[#ftl/]",
"oauth2Passwordless": "[#ftl/]",
"oauth2Register": "[#ftl/]",
"oauth2StartIdPLink": "[#ftl/]",
"oauth2TwoFactor": "[#ftl/]",
"oauth2TwoFactorEnable": "[#ftl/]",
"oauth2TwoFactorEnableComplete": "[#ftl/]",
"oauth2TwoFactorMethods": "[#ftl/]",
"oauth2Wait": "[#ftl/]",
"oauth2WebAuthn": "[#ftl/]",
"oauth2WebAuthnReauth": "[#ftl/]",
"oauth2WebAuthnReauthEnable": "[#ftl/]",
"passwordChange": "[#ftl/]",
"passwordComplete": "[#ftl/]",
"passwordForgot": "[#ftl/]",
"passwordSent": "[#ftl/]",
"registrationComplete": "[#ftl/]",
"registrationSent": "[#ftl/]",
"registrationVerificationRequired": "[#ftl/]",
"registrationVerify": "[#ftl/]",
"samlv2Logout": "[#ftl/]",
"unauthorized": "[#ftl/]"
},
"type": "advanced"
},
{
"data": {},
"defaultMessages": "login=Please Log in",
"id": "58324824-6539-4305-8117-b28f26466ab9",
"insertInstant": 1716401547557,
"lastUpdateInstant": 1716401606387,
"localizedMessages": {},
"name": "White Theme",
"type": "simple",
"variables": {
"alertBackgroundColor": "#ffffff",
"alertFontColor": "#ffffff",
"backgroundImageURL": "https://example.com/mybackground.png",
"backgroundRepeat": "no-repeat",
"backgroundSize": "cover",
"borderRadius": "1.00rem",
"deleteButtonColor": "#ffffff",
"deleteButtonFocusColor": "#cccccc",
"deleteButtonTextColor": "#ffffff",
"deleteButtonTextFocusColor": "#cccccc",
"errorFontColor": "#ffffff",
"fontColor": "#ffffff",
"fontFamily": "sans-serif",
"footerDisplay": "flex",
"iconBackgroundColor": "#ffffff",
"iconColor": "#ffffff",
"inputBackgroundColor": "#ffffff",
"inputIconColor": "#ffffff",
"inputTextColor": "#ffffff",
"linkTextColor": "#ffffff",
"linkTextFocusColor": "#cccccc",
"logoImageDisplay": "flex",
"logoImageSize": "7rem",
"logoImageURL": "https://example.com/mylogo.png",
"monoFontColor": "#ffffff",
"monoFontFamily": "monospace",
"pageBackgroundColor": "#ffffff",
"panelBackgroundColor": "#ffffff",
"primaryButtonColor": "#ffffff",
"primaryButtonFocusColor": "#cccccc",
"primaryButtonTextColor": "#ffffff",
"primaryButtonTextFocusColor": "#cccccc"
}
}
],
"total": 2
}
Update an Advanced Theme#
This API is used to update an existing Theme.
You must specify all of the properties of the Theme when calling this API with the PUT HTTP method. When used with PUT, this API doesn't merge the existing Theme and your new data. It replaces the existing Theme with your new data.
Utilize the PATCH HTTP method to send specific changes to merge into an existing Theme.
Request#
OpenAPI Spec
OpenAPI Spec
For backward compatibility, the PATCH method accepts the same media type (specified by a Content-Type of application/json) and body as the PUT request. You can also use the following media types for different behavior:
- JSON Patch/RFC 6902:
application/json-patch+json - JSON Merge Patch/RFC 7396:
merge-patch+json
For details, see the PATCH documentation.
Using a media type of application/json merges the provided request parameters into the existing object. As a result, all parameters are optional with PATCH: only provide the values you want to change. To remove a value, provide a null value. Patching an Array appends all values in the new list to the old list.
Request Parameters#
themeId UUID required The unique Id of the Theme to update.
Request Body#
theme.data Object optional An object that can hold any information about the Theme that should be persisted.
theme.defaultMessages String required A properties file formatted String containing at least all of the message keys defined in the FusionAuth shipped messages file. Required if not copying an existing Theme.
theme.localizedMessages Map<Locale,String> optional A Map of localized versions of the messages. The key is the Locale and the value is a properties file formatted String.
theme.name String required A unique name for the Theme.
theme.stylesheet String optional A CSS stylesheet used to style the templates.
theme.templates.accountEdit String optional Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that enables authenticated users to update their profile./account/edit path.
theme.templates.accountIndex String optional Available since 1.26.0A FreeMarker template that is rendered when the user requests the This is the self-service account landing page. An authenticated user may use this as a starting point for operations such as updating their profile or configuring multi-factor authentication./account path.
theme.templates.accountTwoFactorDisable String optional Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to disable a multi-factor authentication method./account/two-factor/disable path.
theme.templates.accountTwoFactorEdit String optional Available since 1.68.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to edit a multi-factor authentication method./account/two-factor/edit path.
theme.templates.accountTwoFactorEnable String optional Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to enable a multi-factor authentication method. Additionally, this page displays recovery codes when a user enables multi-factor authentication for the first time./account/two-factor/enable path.
theme.templates.accountTwoFactorIndex String optional Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page displays an authenticated user's configured multi-factor authentication methods. Additionally, it provides links to enable and disable a method./account/two-factor path.
theme.templates.accountWebAuthnAdd String optional Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that allows a user to register a new WebAuthn passkey./account/webauthn/add path.
theme.templates.accountWebAuthnDelete String optional Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that allows a user to delete a WebAuthn passkey./account/webauthn/delete path.
theme.templates.accountWebAuthnIndex String optional Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page displays an authenticated user's registered WebAuthn passkeys. Additionally, it provides links to delete an existing passkey and register a new passkey./account/webauthn/ path.
theme.templates.confirmationRequired String optional Available since 1.49.0A FreeMarker template that is rendered when the user requests the This page is displayed when a user attempts to complete an email based workflow that did not begin in the same browser. For example, if the user starts a forgot password workflow, and then opens the link in a separate browser the user will be shown this panel./confirmation-required path.
theme.templates.emailComplete String optional A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their email address by clicking the URL in the email. After FusionAuth has updated their user object to indicate that their email was verified, the browser is redirected to this page./email/complete path.
theme.templates.emailSent String optional A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the verification email to be resent. This can happen if the URL in the email expired and the user clicked it. In this case, the user can provide their email address again and FusionAuth will resend the email. After the user submits their email and FusionAuth re-sends a verification email to them, the browser is redirected to this page./email/sent path.
theme.templates.emailVerificationRequired String optional Available since 1.27.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their email address prior to being allowed to proceed with login. This occurs when /email/verification-required path. Unverified behavior is set to Gated in email verification settings on the Tenant.
theme.templates.emailVerify String optional A FreeMarker template that is rendered when the user requests the This page is rendered when a user clicks the URL from the verification email and the /email/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification email that has expired, this page will be rendered and the error will be displayed to the user.
theme.templates.helpers String optional A https://freemarker.apache.org[FreeMarker] template that contains all of the macros and templates used by the rest of the login Theme FreeMarker templates. This allows you to configure the general layout of your UI configuration and login theme without having to copy and paste HTML into each of the templates.
theme.templates.index String optional Available since 1.27.0A FreeMarker template that is rendered when the user requests the This is the root landing page. This page is available to unauthenticated users and will be displayed whenever someone navigates to the FusionAuth host's root page. Prior to version / path. 1.27.0, navigating to this URL would redirect to /admin and would subsequently render the FusionAuth admin login page.
theme.templates.oauth2Authorize String optional A FreeMarker template that is rendered when the user requests the This is the main login page for FusionAuth and is used for all interactive OAuth2 and OpenID Connect workflows./oauth2/authorize path.
theme.templates.oauth2AuthorizedNotRegistered String optional Available since 1.28.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is not registered and the Application configuration requires registration before FusionAuth will complete the redirect./oauth2/authorized-not-registered path.
theme.templates.oauth2ChildRegistrationNotAllowed String optional A FreeMarker template that is rendered when the user requests the This page contains a form where a child must provide their parent's email address to ask their parent to create an account for them in a Consent workflow./oauth2/child-registration-not-allowed path.
theme.templates.oauth2ChildRegistrationNotAllowedComplete String optional A FreeMarker template that is rendered when the user requests the This page is rendered after a child provides their parent's email address for parental consent in a Consent workflow./oauth2/child-registration-not-allowed-complete path.
theme.templates.oauth2CompleteRegistration String optional A FreeMarker template that is rendered when the user requests the This page contains a form that is used for users that have accounts but might be missing required fields./oauth2/complete-registration path.
theme.templates.oauth2Consent String optional Available since 1.50.0A FreeMarker template that is rendered when the user requests the This page contains a form for capturing a user's OAuth scope consent choices. If there are no scopes that require a prompt, the user is redirected automatically./oauth2/consent path.
theme.templates.oauth2Device String optional Available since 1.11.0A FreeMarker template that is rendered when the user requests the This page contains a form for accepting an end user's short code for the interactive portion of the OAuth Device Authorization Grant workflow./oauth2/device path.
theme.templates.oauth2DeviceComplete String optional Available since 1.12.0A FreeMarker template that is rendered when the user requests the This page contains a complete message indicating the device authentication has completed./oauth2/device-complete path.
theme.templates.oauth2Error String optional This page is used if the user starts or is in the middle of the OAuth workflow and any type of error occurs. This could be caused by the user messing with the URL or internally some type of information wasn't passed between the OAuth endpoints correctly. For example, if you are federating login to an external IdP and that IdP does not properly echo the state parameter, FusionAuth's OAuth workflow will break and this page will be displayed.
theme.templates.oauth2Logout String optional A FreeMarker template that is rendered when the user requests the This page is used if the user initiates an OAuth logout. This page causes the user to be logged out of all associated applications or just the initiating application, as configured, via a front-channel mechanism before being redirected./oauth2/logout path.
theme.templates.oauth2Passwordless String optional A FreeMarker template that is rendered when the user requests the This page is rendered when the user starts the passwordless login workflow. The page renders the form where the user types in their email address./oauth2/passwordless path.
theme.templates.oauth2Register String optional A FreeMarker template that is rendered when the user requests the This page is used to register or sign up the user for the application when self-service registration is enabled./oauth2/register path.
theme.templates.oauth2StartIdPLink String optional Available since 1.28.0A FreeMarker template that is rendered when the user requests the This page is used if the linking strategy of the Identity Provider is set to create a pending link. The user is presented with the option to link their account with an existing FusionAuth user account or create a new FusionAuth user./oauth2/start-idp-link path.
theme.templates.oauth2TwoFactor String optional A FreeMarker template that is rendered when the user requests the This page is used if the user has two-factor authentication enabled or two factor authentication is required and they need to type in their code again. FusionAuth will properly handle the processing on the back end. This page contains the form that the user will put their code into./oauth2/two-factor path.
theme.templates.oauth2TwoFactorEnable String optional Available since 1.42.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with the Oauth2 two-factor enable form/oauth2/two-factor-enable path.
theme.templates.oauth2TwoFactorEnableComplete String optional Available since 1.42.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with the Oauth2 two-factor enable complete form/oauth2/two-factor-enable-complete path.
theme.templates.oauth2TwoFactorMethods String optional Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with their configured multi-factor authentication options that they may use to complete the authentication challenge./oauth2/two-factor-methods path.
theme.templates.oauth2Wait String optional Available since 1.12.0A FreeMarker template that is rendered when the user requests the This page is rendered when FusionAuth is waiting for an external provider to complete an out of band authentication request. For example, during a HYPR login this page will be displayed until the user completes authentication./oauth2/wait path.
theme.templates.oauth2WebAuthn String optional Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form where a user can enter their /oauth2/webauthn path. loginId (username or email address) to authenticate with one of their registered WebAuthn passkeys. This page uses the WebAuthn bootstrap workflow.
theme.templates.oauth2WebAuthnReauth String optional Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that lists the WebAuthn passkeys currently available for re-authentication. A user can select one of the listed passkeys to authenticate using the corresponding passkey and user account./oauth2/webauthn-reauth path.
theme.templates.oauth2WebAuthnReauthEnable String optional Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains two forms. One allows the user to select one of their existing WebAuthn passkeys to use for re-authentication. The other allows the user to register a new WebAuthn passkey for re-authentication./oauth2/webauthn-reauth-enable path.
theme.templates.passwordChange String optional A FreeMarker template that is rendered when the user requests the This page is used if the user is required to change their password or if they have requested a password reset. This page contains the form that allows the user to provide a new password./password/change path.
theme.templates.passwordComplete String optional A FreeMarker template that is rendered when the user requests the This page is used after the user has successfully updated their password, or reset it. This page should instruct the user that their password was updated and that they need to login again./password/complete path.
theme.templates.passwordForgot String optional A FreeMarker template that is rendered when the user requests the This page is used when a user starts the forgot password workflow. This page renders the form where the user types in their email address./password/forgot path.
theme.templates.passwordSent String optional A FreeMarker template that is rendered when the user requests the This page is used when a user has submitted the forgot password form with their email. FusionAuth does not indicate back to the user if their email address was valid in order to prevent malicious activity that could reveal valid email addresses. Therefore, this page should indicate to the user that if their email was valid, they will receive an email shortly with a link to reset their password./password/sent path.
theme.templates.phoneComplete String optional Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their phone number by clicking the URL in the message. After FusionAuth has updated their user object to indicate that their phone number was verified, the browser is redirected to this page./phone/complete path.
theme.templates.phoneSent String optional Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the verification message to be resent. This can happen if the URL in the message expired and the user clicked it. In this case, the user can provide their phone number again and FusionAuth will resend the message. After the user submits their phone number and FusionAuth re-sends a verification message to them, the browser is redirected to this page./phone/sent path.
theme.templates.phoneVerificationRequired String optional Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their phone number prior to being allowed to proceed with login. This occurs when /phone/verification-required path. Unverified behavior is set to Gated in identities/phone verification settings on the Tenant.
theme.templates.phoneVerify String optional Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user clicks the URL from the verification message and the /phone/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification message that has expired, this page will be rendered and the error will be displayed to the user.
theme.templates.registrationComplete String optional A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their email address for a specific application (i.e. a user registration) by clicking the URL in the email. After FusionAuth has updated their registration object to indicate that their email was verified, the browser is redirected to this page./registration/complete path.
theme.templates.registrationSent String optional A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the application specific verification email to be resent. This can happen if the URL in the email expired and the user clicked it. In this case, the user can provide their email address again and FusionAuth will resend the email. After the user submits their email and FusionAuth re-sends a verification email to them, the browser is redirected to this page./registration/sent path.
theme.templates.registrationVerificationRequired String optional Available since 1.27.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their registration prior to being allowed to proceed with the registration flow. This occurs when /registration/verification-required path. Unverified behavior is set to Gated in registration verification settings on the Application.
theme.templates.registrationVerify String optional A FreeMarker template that is rendered when the user requests the This page is used when a user clicks the URL from the application specific verification email and the /registration/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification email that has expired, this page will be rendered and the error will be displayed to the user.
theme.templates.samlv2Logout String optional Available since 1.25.0A FreeMarker template that is rendered when the user requests the This page is used if the user initiates a SAML logout. This page causes the user to be logged out of all associated applications via a front-channel mechanism before being redirected./samlv2/logout path.
theme.templates.unauthorized String optional Available since 1.30.0A FreeMarker template that is rendered when the user requests the This page is used if the user is not authorized to use the application or page. If you have advanced threat detection enabled, this page is generally made available to you./unauthorized path.
Example Advanced Theme Request JSON
{
"theme": {
"data": {
"addedBy": "richard"
},
"defaultMessages": "title=Login",
"localizedMessages": {
"fr": "title=Identifiant",
"es": "title=Iniciar sesión"
},
"name": "Orange Theme",
"templates": {
"accountEdit": "[#ftl/]",
"accountIndex": "[#ftl/]",
"accountTwoFactorDisable": "[#ftl/]",
"accountTwoFactorEnable": "[#ftl/]",
"accountTwoFactorIndex": "[#ftl/]",
"accountWebAuthnAdd": "[#ftl/]",
"accountWebAuthnDelete": "[#ftl/]",
"accountWebAuthnIndex": "[#ftl/]",
"emailComplete": "[#ftl/]",
"emailSent": "[#ftl/]",
"emailVerificationRequired": "[#ftl/]",
"emailVerify": "[#ftl/]",
"helpers": "[#ftl/]",
"index": "[#ftl/]",
"oauth2Authorize": "[#ftl/]",
"oauth2AuthorizedNotRegistered": "[#ftl/]",
"oauth2ChildRegistrationNotAllowed": "[#ftl/]",
"oauth2ChildRegistrationNotAllowedComplete": "[#ftl/]",
"oauth2CompleteRegistration": "[#ftl/]",
"oauth2Device": "[#ftl/]",
"oauth2DeviceComplete": "[#ftl/]",
"oauth2Error": "[#ftl/]",
"oauth2Logout": "[#ftl/]",
"oauth2Passwordless": "[#ftl/]",
"oauth2Register": "[#ftl/]",
"oauth2StartIdPLink": "[#ftl/]",
"oauth2TwoFactor": "[#ftl/]",
"oauth2TwoFactorEnable": "[#ftl/]",
"oauth2TwoFactorEnableComplete": "[#ftl/]",
"oauth2TwoFactorMethods": "[#ftl/]",
"oauth2Wait": "[#ftl/]",
"oauth2WebAuthn": "[#ftl/]",
"oauth2WebAuthnReauth": "[#ftl/]",
"oauth2WebAuthnReauthEnable": "[#ftl/]",
"passwordChange": "[#ftl/]",
"passwordComplete": "[#ftl/]",
"passwordForgot": "[#ftl/]",
"passwordSent": "[#ftl/]",
"registrationComplete": "[#ftl/]",
"registrationSent": "[#ftl/]",
"registrationVerificationRequired": "[#ftl/]",
"registrationVerify": "[#ftl/]",
"samlv2Logout": "[#ftl/]",
"unauthorized": "[#ftl/]"
}
}
}
Response#
The response for this API contains the Theme that was updated.
Response Codes| Code | Description |
|---|---|
| 200 | The request was successful. The response will contain a JSON body. |
| 400 | The request was invalid and/or malformed. The response will contain an Errors JSON Object with the specific errors. This status will also be returned if a paid FusionAuth license is required and is not present. |
| 401 | You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See Authentication. |
| 404 | The object you are trying to update doesn't exist. The response will be empty. |
| 500 | There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty. |
| 503 | The search index is not available or encountered an exception so the request cannot be completed. The response will contain a JSON body. |
Response Body#
theme.data Object An object that can hold any information about the Theme that should be persisted.
theme.defaultMessages String A properties file formatted String containing messages used within the templates.
theme.id UUID The unique Id of the Theme.
theme.insertInstant Long The instant that the theme was added to the FusionAuth database.
theme.lastUpdateInstant Long The instant that the theme was last updated in the FusionAuth database.
theme.localizedMessages Map<Locale,String> A Map of localized versions of the messages. The key is the Locale and the value is a properties file formatted String.
theme.name String A unique name for the Theme.
theme.stylesheet String A CSS stylesheet used to style the templates.
theme.templates.accountEdit String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that enables authenticated users to update their profile./account/edit path.
theme.templates.accountIndex String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This is the self-service account landing page. An authenticated user may use this as a starting point for operations such as updating their profile or configuring multi-factor authentication./account path.
theme.templates.accountTwoFactorDisable String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to disable a multi-factor authentication method./account/two-factor/disable path.
theme.templates.accountTwoFactorEdit String Available since 1.68.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to edit a multi-factor authentication method./account/two-factor/edit path.
theme.templates.accountTwoFactorEnable String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form that accepts a verification code used to enable a multi-factor authentication method. Additionally, this page displays recovery codes when a user enables multi-factor authentication for the first time./account/two-factor/enable path.
theme.templates.accountTwoFactorIndex String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page displays an authenticated user's configured multi-factor authentication methods. Additionally, it provides links to enable and disable a method./account/two-factor path.
theme.templates.accountWebAuthnAdd String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that allows a user to register a new WebAuthn passkey./account/webauthn/add path.
theme.templates.accountWebAuthnDelete String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that allows a user to delete a WebAuthn passkey./account/webauthn/delete path.
theme.templates.accountWebAuthnIndex String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page displays an authenticated user's registered WebAuthn passkeys. Additionally, it provides links to delete an existing passkey and register a new passkey./account/webauthn/ path.
theme.templates.confirmationRequired String Available since 1.49.0A FreeMarker template that is rendered when the user requests the This page is displayed when a user attempts to complete an email based workflow that did not begin in the same browser. For example, if the user starts a forgot password workflow, and then opens the link in a separate browser the user will be shown this panel./confirmation-required path.
theme.templates.emailComplete String A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their email address by clicking the URL in the email. After FusionAuth has updated their user object to indicate that their email was verified, the browser is redirected to this page./email/complete path.
theme.templates.emailSent String A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the verification email to be resent. This can happen if the URL in the email expired and the user clicked it. In this case, the user can provide their email address again and FusionAuth will resend the email. After the user submits their email and FusionAuth re-sends a verification email to them, the browser is redirected to this page./email/sent path.
theme.templates.emailVerificationRequired String Available since 1.27.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their email address prior to being allowed to proceed with login. This occurs when /email/verification-required path. Unverified behavior is set to Gated in email verification settings on the Tenant.
theme.templates.emailVerify String A FreeMarker template that is rendered when the user requests the This page is rendered when a user clicks the URL from the verification email and the /email/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification email that has expired, this page will be rendered and the error will be displayed to the user.
theme.templates.helpers String A https://freemarker.apache.org[FreeMarker] template that contains all of the macros and templates used by the rest of the login Theme FreeMarker templates. This allows you to configure the general layout of your UI configuration and login theme without having to copy and paste HTML into each of the templates.
theme.templates.index String Available since 1.27.0A FreeMarker template that is rendered when the user requests the This is the root landing page. This page is available to unauthenticated users and will be displayed whenever someone navigates to the FusionAuth host's root page. Prior to version / path. 1.27.0, navigating to this URL would redirect to /admin and would subsequently render the FusionAuth admin login page.
theme.templates.oauth2Authorize String A FreeMarker template that is rendered when the user requests the This is the main login page for FusionAuth and is used for all interactive OAuth2 and OpenID Connect workflows./oauth2/authorize path.
theme.templates.oauth2AuthorizedNotRegistered String Available since 1.28.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is not registered and the Application configuration requires registration before FusionAuth will complete the redirect./oauth2/authorized-not-registered path.
theme.templates.oauth2ChildRegistrationNotAllowed String A FreeMarker template that is rendered when the user requests the This page contains a form where a child must provide their parent's email address to ask their parent to create an account for them in a Consent workflow./oauth2/child-registration-not-allowed path.
theme.templates.oauth2ChildRegistrationNotAllowedComplete String A FreeMarker template that is rendered when the user requests the This page is rendered after a child provides their parent's email address for parental consent in a Consent workflow./oauth2/child-registration-not-allowed-complete path.
theme.templates.oauth2CompleteRegistration String A FreeMarker template that is rendered when the user requests the This page contains a form that is used for users that have accounts but might be missing required fields./oauth2/complete-registration path.
theme.templates.oauth2Consent String Available since 1.50.0A FreeMarker template that is rendered when the user requests the This page contains a form for capturing a user's OAuth scope consent choices. If there are no scopes that require a prompt, the user is redirected automatically./oauth2/consent path.
theme.templates.oauth2Device String Available since 1.11.0A FreeMarker template that is rendered when the user requests the This page contains a form for accepting an end user's short code for the interactive portion of the OAuth Device Authorization Grant workflow./oauth2/device path.
theme.templates.oauth2DeviceComplete String Available since 1.12.0A FreeMarker template that is rendered when the user requests the This page contains a complete message indicating the device authentication has completed./oauth2/device-complete path.
theme.templates.oauth2Error String This page is used if the user starts or is in the middle of the OAuth workflow and any type of error occurs. This could be caused by the user messing with the URL or internally some type of information wasn't passed between the OAuth endpoints correctly. For example, if you are federating login to an external IdP and that IdP does not properly echo the state parameter, FusionAuth's OAuth workflow will break and this page will be displayed.
theme.templates.oauth2Logout String A FreeMarker template that is rendered when the user requests the This page is used if the user initiates an OAuth logout. This page causes the user to be logged out of all associated applications or just the initiating application, as configured, via a front-channel mechanism before being redirected./oauth2/logout path.
theme.templates.oauth2Passwordless String A FreeMarker template that is rendered when the user requests the This page is rendered when the user starts the passwordless login workflow. The page renders the form where the user types in their email address./oauth2/passwordless path.
theme.templates.oauth2Register String A FreeMarker template that is rendered when the user requests the This page is used to register or sign up the user for the application when self-service registration is enabled./oauth2/register path.
theme.templates.oauth2StartIdPLink String Available since 1.28.0A FreeMarker template that is rendered when the user requests the This page is used if the linking strategy of the Identity Provider is set to create a pending link. The user is presented with the option to link their account with an existing FusionAuth user account or create a new FusionAuth user./oauth2/start-idp-link path.
theme.templates.oauth2TwoFactor String A FreeMarker template that is rendered when the user requests the This page is used if the user has two-factor authentication enabled or two factor authentication is required and they need to type in their code again. FusionAuth will properly handle the processing on the back end. This page contains the form that the user will put their code into./oauth2/two-factor path.
theme.templates.oauth2TwoFactorEnable String Available since 1.42.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with the Oauth2 two-factor enable form/oauth2/two-factor-enable path.
theme.templates.oauth2TwoFactorEnableComplete String Available since 1.42.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with the Oauth2 two-factor enable complete form/oauth2/two-factor-enable-complete path.
theme.templates.oauth2TwoFactorMethods String Available since 1.26.0A FreeMarker template that is rendered when the user requests the This page contains a form providing a user with their configured multi-factor authentication options that they may use to complete the authentication challenge./oauth2/two-factor-methods path.
theme.templates.oauth2Wait String Available since 1.12.0A FreeMarker template that is rendered when the user requests the This page is rendered when FusionAuth is waiting for an external provider to complete an out of band authentication request. For example, during a HYPR login this page will be displayed until the user completes authentication./oauth2/wait path.
theme.templates.oauth2WebAuthn String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form where a user can enter their /oauth2/webauthn path. loginId (username or email address) to authenticate with one of their registered WebAuthn passkeys. This page uses the WebAuthn bootstrap workflow.
theme.templates.oauth2WebAuthnReauth String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains a form that lists the WebAuthn passkeys currently available for re-authentication. A user can select one of the listed passkeys to authenticate using the corresponding passkey and user account./oauth2/webauthn-reauth path.
theme.templates.oauth2WebAuthnReauthEnable String Available since 1.41.0A FreeMarker template that is rendered when the user requests the This page contains two forms. One allows the user to select one of their existing WebAuthn passkeys to use for re-authentication. The other allows the user to register a new WebAuthn passkey for re-authentication./oauth2/webauthn-reauth-enable path.
theme.templates.passwordChange String A FreeMarker template that is rendered when the user requests the This page is used if the user is required to change their password or if they have requested a password reset. This page contains the form that allows the user to provide a new password./password/change path.
theme.templates.passwordComplete String A FreeMarker template that is rendered when the user requests the This page is used after the user has successfully updated their password, or reset it. This page should instruct the user that their password was updated and that they need to login again./password/complete path.
theme.templates.passwordForgot String A FreeMarker template that is rendered when the user requests the This page is used when a user starts the forgot password workflow. This page renders the form where the user types in their email address./password/forgot path.
theme.templates.passwordSent String A FreeMarker template that is rendered when the user requests the This page is used when a user has submitted the forgot password form with their email. FusionAuth does not indicate back to the user if their email address was valid in order to prevent malicious activity that could reveal valid email addresses. Therefore, this page should indicate to the user that if their email was valid, they will receive an email shortly with a link to reset their password./password/sent path.
theme.templates.phoneComplete String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their phone number by clicking the URL in the message. After FusionAuth has updated their user object to indicate that their phone number was verified, the browser is redirected to this page./phone/complete path.
theme.templates.phoneSent String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the verification message to be resent. This can happen if the URL in the message expired and the user clicked it. In this case, the user can provide their phone number again and FusionAuth will resend the message. After the user submits their phone number and FusionAuth re-sends a verification message to them, the browser is redirected to this page./phone/sent path.
theme.templates.phoneVerificationRequired String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their phone number prior to being allowed to proceed with login. This occurs when /phone/verification-required path. Unverified behavior is set to Gated in identities/phone verification settings on the Tenant.
theme.templates.phoneVerify String Available since 1.59.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user clicks the URL from the verification message and the /phone/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification message that has expired, this page will be rendered and the error will be displayed to the user.
theme.templates.registrationComplete String A FreeMarker template that is rendered when the user requests the This page is used after a user has verified their email address for a specific application (i.e. a user registration) by clicking the URL in the email. After FusionAuth has updated their registration object to indicate that their email was verified, the browser is redirected to this page./registration/complete path.
theme.templates.registrationSent String A FreeMarker template that is rendered when the user requests the This page is used after a user has asked for the application specific verification email to be resent. This can happen if the URL in the email expired and the user clicked it. In this case, the user can provide their email address again and FusionAuth will resend the email. After the user submits their email and FusionAuth re-sends a verification email to them, the browser is redirected to this page./registration/sent path.
theme.templates.registrationVerificationRequired String Available since 1.27.0A FreeMarker template that is rendered when the user requests the This page is rendered when a user is required to verify their registration prior to being allowed to proceed with the registration flow. This occurs when /registration/verification-required path. Unverified behavior is set to Gated in registration verification settings on the Application.
theme.templates.registrationVerify String A FreeMarker template that is rendered when the user requests the This page is used when a user clicks the URL from the application specific verification email and the /registration/verify path. verificationId has expired. FusionAuth expires verificationId after a period of time (which is configurable). If the user has a URL from the verification email that has expired, this page will be rendered and the error will be displayed to the user.
theme.templates.samlv2Logout String Available since 1.25.0A FreeMarker template that is rendered when the user requests the This page is used if the user initiates a SAML logout. This page causes the user to be logged out of all associated applications via a front-channel mechanism before being redirected./samlv2/logout path.
theme.templates.unauthorized String Available since 1.30.0A FreeMarker template that is rendered when the user requests the This page is used if the user is not authorized to use the application or page. If you have advanced threat detection enabled, this page is generally made available to you./unauthorized path.
Example Advanced Theme Response JSON
{
"theme": {
"data": {
"addedBy": "richard"
},
"defaultMessages": "title=Login",
"id": "64773453-bb11-457b-a3d6-7475ec2259d0",
"insertInstant": 1564006815352,
"lastUpdateInstant": 1564084258150,
"localizedMessages": {
"fr": "title=Identifiant",
"es": "title=Iniciar sesión"
},
"name": "Orange Theme",
"stylesheet": "h1 {\r\n color: orange;\r\n text-align: center;\r\n}",
"templates": {
"accountEdit": "[#ftl/]",
"accountIndex": "[#ftl/]",
"accountTwoFactorDisable": "[#ftl/]",
"accountTwoFactorEnable": "[#ftl/]",
"accountTwoFactorIndex": "[#ftl/]",
"accountWebAuthnAdd": "[#ftl/]",
"accountWebAuthnDelete": "[#ftl/]",
"accountWebAuthnIndex": "[#ftl/]",
"emailComplete": "[#ftl/]",
"emailSent": "[#ftl/]",
"emailVerificationRequired": "[#ftl/]",
"emailVerify": "[#ftl/]",
"helpers": "[#ftl/]",
"index": "[#ftl/]",
"oauth2Authorize": "[#ftl/]",
"oauth2AuthorizedNotRegistered": "[#ftl/]",
"oauth2ChildRegistrationNotAllowed": "[#ftl/]",
"oauth2ChildRegistrationNotAllowedComplete": "[#ftl/]",
"oauth2CompleteRegistration": "[#ftl/]",
"oauth2Device": "[#ftl/]",
"oauth2DeviceComplete": "[#ftl/]",
"oauth2Error": "[#ftl/]",
"oauth2Logout": "[#ftl/]",
"oauth2Passwordless": "[#ftl/]",
"oauth2Register": "[#ftl/]",
"oauth2StartIdPLink": "[#ftl/]",
"oauth2TwoFactor": "[#ftl/]",
"oauth2TwoFactorEnable": "[#ftl/]",
"oauth2TwoFactorEnableComplete": "[#ftl/]",
"oauth2TwoFactorMethods": "[#ftl/]",
"oauth2Wait": "[#ftl/]",
"oauth2WebAuthn": "[#ftl/]",
"oauth2WebAuthnReauth": "[#ftl/]",
"oauth2WebAuthnReauthEnable": "[#ftl/]",
"passwordChange": "[#ftl/]",
"passwordComplete": "[#ftl/]",
"passwordForgot": "[#ftl/]",
"passwordSent": "[#ftl/]",
"registrationComplete": "[#ftl/]",
"registrationSent": "[#ftl/]",
"registrationVerificationRequired": "[#ftl/]",
"registrationVerify": "[#ftl/]",
"samlv2Logout": "[#ftl/]",
"unauthorized": "[#ftl/]"
},
"type": "advanced"
}
}
Delete an Advanced Theme#
This API is used to permanently delete a Theme.
Request#
OpenAPI Spec
Request Parameters#
themeId UUID required The unique Id of the Theme to delete.
Response#
This API does not return a JSON response body.
Response Codes| Code | Description |
|---|---|
| 200 | The request was successful. |
| 400 | The request was invalid and/or malformed. The response will contain an Errors JSON Object with the specific errors. This status will also be returned if a paid FusionAuth license is required and is not present. |
| 401 | You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See Authentication. |
| 404 | The object you requested doesn't exist. The response will be empty. |
| 500 | There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty. |
| 503 | The search index is not available or encountered an exception so the request cannot be completed. The response will contain a JSON body. |