These endpoints allow you to customize the look and feel of pages and templates, including the following:
Each new org contains Okta default branding. You can upload your own assets (colors, background image, logo, and favicon) to replace the default assets. Then you can publish these assets directly to your pages and templates.
Notes:
- Some of the curl code examples on this page include SSWS API token authentication. However, Okta recommends scoped OAuth 2.0 and OIDC access tokens to authenticate with Okta management APIs. OAuth 2.0 and OIDC access tokens provide fine-grain control over the bearer's actions on specific endpoints. See Okta API authentication methods.
- Okta optimizes the
primaryColorContrastHex
andsecondaryColorContrastHex
properties for the highest contrast between the font color and the background or button color. To disable or override the contrast auto-detection, update either contrast value with an accepted contrast hex code. Any update disables future automatic optimizations for the contrast hex.- Contrast color is used by pages to optimize the opacity of text color when primary or secondary color is used as the background.
okta.brands.read
Lists all the themes in your brand.
Important: Currently each org supports only one Theme, therefore this contains a single object only.
Successfully returned the list of themes
Forbidden
Not Found
Too Many Requests
[- {
- "id": "thdul904tTZ6kWVhP0g3",
- "backgroundImage": null,
- "primaryColorHex": "#1662dd",
- "primaryColorContrastHex": "#000000",
- "secondaryColorHex": "#ebebed",
- "secondaryColorContrastHex": "#000000",
- "signInPageTouchPointVariant": "OKTA_DEFAULT",
- "endUserDashboardTouchPointVariant": "OKTA_DEFAULT",
- "errorPageTouchPointVariant": "OKTA_DEFAULT",
- "emailTemplateTouchPointVariant": "OKTA_DEFAULT",
- "loadingPageTouchPointVariant": "OKTA_DEFAULT"
}
]
okta.brands.read
Retrieves a theme for a brand
Successfully retrieved the theme
Forbidden
Not Found
Too Many Requests
{- "id": "thdul904tTZ6kWVhP0g3",
- "backgroundImage": null,
- "primaryColorHex": "#1662dd",
- "primaryColorContrastHex": "#000000",
- "secondaryColorHex": "#ebebed",
- "secondaryColorContrastHex": "#000000",
- "signInPageTouchPointVariant": "OKTA_DEFAULT",
- "endUserDashboardTouchPointVariant": "OKTA_DEFAULT",
- "errorPageTouchPointVariant": "OKTA_DEFAULT",
- "emailTemplateTouchPointVariant": "OKTA_DEFAULT",
- "loadingPageTouchPointVariant": "OKTA_DEFAULT"
}
okta.brands.manage
Replaces a theme for a brand
Successfully replaced the theme
Bad Request
Forbidden
Not Found
Too Many Requests
{- "primaryColorHex": "#1662dd",
- "primaryColorContrastHex": "#000000",
- "secondaryColorHex": "#ebebed",
- "secondaryColorContrastHex": "#000000",
- "signInPageTouchPointVariant": "OKTA_DEFAULT",
- "endUserDashboardTouchPointVariant": "OKTA_DEFAULT",
- "errorPageTouchPointVariant": "OKTA_DEFAULT",
- "emailTemplateTouchPointVariant": "OKTA_DEFAULT",
- "loadingPageTouchPointVariant": "OKTA_DEFAULT"
}
{- "id": "thdul904tTZ6kWVhP0g3",
- "backgroundImage": null,
- "primaryColorHex": "#1662dd",
- "primaryColorContrastHex": "#000000",
- "secondaryColorHex": "#ebebed",
- "secondaryColorContrastHex": "#000000",
- "signInPageTouchPointVariant": "OKTA_DEFAULT",
- "endUserDashboardTouchPointVariant": "OKTA_DEFAULT",
- "errorPageTouchPointVariant": "OKTA_DEFAULT",
- "emailTemplateTouchPointVariant": "OKTA_DEFAULT",
- "loadingPageTouchPointVariant": "OKTA_DEFAULT"
}
okta.brands.manage
Uploads and replaces the background image for the theme. The file must be in PNG, JPG, or GIF format and less than 2 MB in size.
Content Created
Bad Request
Forbidden
Not Found
Too Many Requests
{- "url": "string"
}
okta.brands.manage
Deletes a Theme background image
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}
okta.brands.manage
Uploads and replaces the favicon for the theme
Created
Bad Request
Forbidden
Not Found
Too Many Requests
{- "url": "string"
}
okta.brands.manage
Deletes a Theme favicon. The theme will use the default Okta favicon.
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}
okta.brands.manage
Uploads and replaces the logo for the theme. The file must be in PNG, JPG, or GIF format and less than 100kB in size. For best results use landscape orientation, a transparent background, and a minimum size of 300px by 50px to prevent upscaling.
Success
Bad Request
Forbidden
Not Found
Too Many Requests
{- "url": "string"
}
okta.brands.manage
Deletes a Theme logo. The theme will use the default Okta logo.
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}