curl -X PATCH 'https://verification.didit.me/v3/customization/' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"color_primary": "#123456", "font_family": "AR One Sans"}'{
"color_primary": "#123456",
"color_secondary": "#9DA1A1",
"color_background": "#FFFFFF",
"color_panel": "#2567FF",
"color_panel_10": "#1A1A1A",
"color_on_panel_1": "#9DA1A1",
"color_on_panel_2": "#F4F4F6",
"color_on_background": "#000000",
"color_button_1": "#2567FF",
"color_button_2": "#F8F8F8",
"color_button_text_1": "#FFFFFF",
"color_button_text_2": "#000000",
"color_pill_text": "#111827",
"appearance": "dark",
"border_radius_panel": 10,
"border_radius_buttons": 16,
"font_family": "AR One Sans",
"font_weight": "400",
"font_url": "https://fonts.googleapis.com/css2?family=AR+One+Sans",
"logo_square": null,
"logo_rectangular": "https://cdn.didit.me/white_label/logo_rectangular/...",
"logo_rectangular_dark": null,
"favicon": null,
"app_public_name": "Acme Verify",
"privacy_policy_url": "https://acme.com/privacy",
"skip_welcome_screen": true,
"disable_login_with_didit": false,
"hide_progress_bar": false,
"callback_seconds": 3
}Update Branding Customization API
Set the verification flow’s white-label appearance, change brand colors and fonts, or upload logos for your application with the Didit Management API.
curl -X PATCH 'https://verification.didit.me/v3/customization/' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"color_primary": "#123456", "font_family": "AR One Sans"}'{
"color_primary": "#123456",
"color_secondary": "#9DA1A1",
"color_background": "#FFFFFF",
"color_panel": "#2567FF",
"color_panel_10": "#1A1A1A",
"color_on_panel_1": "#9DA1A1",
"color_on_panel_2": "#F4F4F6",
"color_on_background": "#000000",
"color_button_1": "#2567FF",
"color_button_2": "#F8F8F8",
"color_button_text_1": "#FFFFFF",
"color_button_text_2": "#000000",
"color_pill_text": "#111827",
"appearance": "dark",
"border_radius_panel": 10,
"border_radius_buttons": 16,
"font_family": "AR One Sans",
"font_weight": "400",
"font_url": "https://fonts.googleapis.com/css2?family=AR+One+Sans",
"logo_square": null,
"logo_rectangular": "https://cdn.didit.me/white_label/logo_rectangular/...",
"logo_rectangular_dark": null,
"favicon": null,
"app_public_name": "Acme Verify",
"privacy_policy_url": "https://acme.com/privacy",
"skip_welcome_screen": true,
"disable_login_with_didit": false,
"hide_progress_bar": false,
"callback_seconds": 3
}Overview
Sendapplication/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.
{"appearance": "match_device"}
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 asmultipart/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
#RRGGBBor#RRGGBBAA.font_weightmust be a weight available for the selectedfont_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.Related
Authorizations
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
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.
1 - 255Body
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.
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.
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.
brand, match_device, dark