Skip to main content
PATCH
Didit’s Update Branding endpoint lets you change the verification flow’s appearance, palette, fonts and logos for the application identified by your API key.

Overview

Send application/json to update branding fields. Use multipart/form-data to include logo files in the same request. Only the fields you send change. For example, send this JSON body to use your palette on light devices and a branded dark background on dark devices.
Use brand (the default) to keep your palette on every device, or dark for a branded dark background on every device. Without custom colors, all three settings use Didit’s default look and follow the device. See how to preview each appearance. Omit appearance to keep its saved value. An unknown value such as "light", an empty string or null in JSON returns HTTP 400 with an error on appearance. A successful update returns HTTP 200 with the saved setting.

When to use it

  • Theme the flow — set your brand colors, font and corner radii.
  • Upload logos: set the square logo, the rectangular logo and its dark-mode version, and the favicon.
  • Tune the experience — set the public app name, privacy policy URL, and toggles like skipping the welcome screen or hiding the progress bar.

Uploading logos

Send logos as multipart/form-data:
  • image_square: 1:1 aspect ratio.
  • image_rectangular: 2:1 aspect ratio.
  • image_rectangular_dark: 2:1 aspect ratio. The rectangular logo for dark mode, shown on a dark background.
  • image_favicon: max 500 KB.
image_square, image_rectangular and image_rectangular_dark must be PNG, JPG or WebP images, at least 512 px on the long side and at most 1 MB. SVG files are refused. The response returns the resulting logo_square, logo_rectangular, logo_rectangular_dark and favicon URLs. To remove a logo, send the matching delete_logo_square, delete_logo_rectangular, delete_logo_rectangular_dark or delete_favicon flag as true. After you remove the dark-mode logo, logo_rectangular_dark reads null. If one request uploads a logo and also sends its delete flag, the upload wins. A rejected upload returns 400 with the field name and the reason, for example:
  • {"image_rectangular_dark": ["Upload a PNG, JPG or WebP image."]}
  • {"image_rectangular": ["Image must be at least 512 px on its long side. Got 400x200 image dimensions"]}
  • {"image_rectangular": ["Image aspect ratio must be 2:1. Got 1024x1024 image dimensions"]}
  • {"image_square": ["File size should not exceed 1 MB"]}

Notes

  • The application is resolved from the API key — there are no path parameters.
  • Hex colors accept #RRGGBB or #RRGGBBAA. font_weight must be a weight available for the selected font_family.
  • Custom domain and white-label email are not configurable here. Manage those in the Business Console.

Permissions

The API key must be able to update customization for the application.

Authorizations

x-api-key
string
header
required

Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.

Headers

Idempotency-Key
string

Optional retry-safety key you choose for one operation, up to 255 characters (a UUID works). A request repeated with the same key, endpoint, query and body is answered with the first response, same status and same body, and runs and bills nothing a second time. The same key with another endpoint, query or body returns 409 idempotency_key_reused, and while the first request is still running, 409 idempotency_key_in_progress with Retry-After. A failed request (any 4xx or 5xx) is not stored, so you can send it again with the same key. Keys belong to your application, whether you call with an API key or an access token. See Retries and idempotency.

Required string length: 1 - 255

Body

Partial branding update body. Provide only the fields you want to change. Hex colors accept #RRGGBB or #RRGGBBAA. Custom domain and white-label email are not accepted here.

color_primary
string

Headers / primary text color.

color_secondary
string

Paragraph / secondary text color.

color_background
string

Page background color.

color_panel
string

Panel / accent color.

color_panel_10
string

Panel color at 10% opacity.

color_on_panel_1
string

Support text color on panels.

color_on_panel_2
string

Pill / badge color on panels.

color_on_background
string

Text color on background.

color_button_1
string

Primary button color.

color_button_2
string

Secondary button color.

color_button_text_1
string

Primary button text color.

color_button_text_2
string

Secondary button text color.

color_pill_text
string

Text color for pills, inputs and selectors.

appearance
enum<string>

Omit this field to keep the saved appearance.

Available options:
brand,
match_device,
dark
border_radius_panel
integer

Panel corner radius in pixels.

Required range: x >= 0
border_radius_buttons
integer

Button corner radius in pixels.

Required range: x >= 0
font_family
string

Google Font family name (e.g. Inter, AR One Sans).

font_weight
string

Font weight available for the selected family (e.g. regular, 500, 700).

app_public_name
string | null

Public name shown in the verification flow.

privacy_policy_url
string | null

Privacy policy URL shown to the end user.

skip_welcome_screen
boolean

Skip the initial welcome screen.

disable_login_with_didit
boolean

Continue as guest instead of showing the login-with-Didit screen. Cannot be set back to false while a custom domain is configured (400).

hide_progress_bar
boolean

Hide the progress bar during the flow.

callback_seconds
integer

Delay (seconds) before redirecting to the callback URL.

Required range: x >= 0
delete_logo_square
boolean

When true, removes the current square logo.

delete_logo_rectangular
boolean

When true, removes the current rectangular logo.

delete_logo_rectangular_dark
boolean

When true, removes the current dark-mode logo, and logo_rectangular_dark then reads null. If the same multipart request also uploads image_rectangular_dark, the upload wins.

delete_favicon
boolean

When true, removes the current favicon.

Response

Branding updated. The FULL branding object is returned (all fields, not just the ones you changed).

White-label branding for an application: colors, fonts, radii, logo URLs and UI/UX options. Logo URLs are read-only (set them by uploading images). Custom domain and white-label email are not included.

appearance
enum<string>
default:brand
required

brand (default for new and existing customizations) uses your colors on every device. match_device uses your colors on light devices and a dark background with your branding on dark devices. dark uses the dark background with your branding on every device. Without custom colors, the default Didit look follows the device for all three values.

Available options:
brand,
match_device,
dark
color_primary
string
color_secondary
string
color_background
string
color_panel
string
color_panel_10
string
color_on_panel_1
string
color_on_panel_2
string
color_on_background
string
color_button_1
string
color_button_2
string
color_button_text_1
string
color_button_text_2
string
color_pill_text
string
border_radius_panel
integer
border_radius_buttons
integer
font_family
string
font_weight
string
font_url
string | null

Read-only. Resolved Google Fonts stylesheet URL for the selected family.

logo_square
string | null

Read-only URL of the square logo. Upload via image_square.

logo_rectangular
string | null

Read-only URL of the rectangular logo. Upload via image_rectangular.

logo_rectangular_dark
string<uri> | null

Read-only. Temporary signed URL of the rectangular logo for dark mode, shown on a dark background. null when no dark logo is set or rectangular logos are not shown for your account. Upload it with image_rectangular_dark.

favicon
string | null

Read-only URL of the favicon. Upload via image_favicon.

app_public_name
string | null
privacy_policy_url
string | null
skip_welcome_screen
boolean
disable_login_with_didit
boolean
hide_progress_bar
boolean
callback_seconds
integer
Last modified on November 28, 2026