Upload a Provider Logo
Uploads your own logo for this provider. The image travels base64 inside JSON, not multipart.
A logo is the provider’s identity rather than its wording, so it follows the same rule as name: it is accepted only for WHITELABEL-owned providers — a catalogue id containing YUNO, such as YUNO_3DS or YUNO_FRAUD_SCREENING. Uploading a logo for anyone else’s provider is rejected with 400.
Writing a logo does not touch the instruction override, and does not add the provider to your allowlist.
Image requirements
| Rule | Detail |
|---|---|
| Format | PNG or JPEG, decided by the file’s own bytes — an SVG renamed .png is refused. |
| Shape | Square. It is drawn into the same fixed box as the catalogue’s own icons. |
| Minimum size | 200x200 pixels. |
| Maximum size | 64 KB decoded. |
| Request body | At most 256 KB, base64 included. Larger bodies are rejected with 413. |
Path Parameters
WHITELABEL catalogue provider id in UPPER_SNAKE_CASE, and it must be a WHITELABEL-owned provider (the id contains YUNO). Case-insensitive — normalized to upper case.
Body
Original file name, at most 255 characters. Stored for display only — the format is decided by the bytes, never by this extension.
The image itself, base64-encoded.
Response
Always stored on success.
The stored key is not returned. Read the provider again with Retrieve a Provider Overlay to get a fresh presigned logo_url, which is the only kind of URL that exists for it.
curl -X PUT 'https://api.whitelabel.com/v1/whitelabel/providers/YUNO_3DS/logo' \
-H 'public-api-key: <YOUR_PUBLIC_KEY>' \
-H 'private-secret-key: <YOUR_SECRET_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"file_name": "acme.png",
"base64_data": "<BASE64_ENCODED_IMAGE>"
}'{
"status": "stored"
}{
"title": "Invalid provider logo",
"status": 400,
"detail": "The logo was rejected",
"violations": [
"The logo must be at least 200x200 pixels. This image is 1x1."
]
}violations lists every problem with the image at once — size, shape and format together — rather than one per round trip.
Errors
| HTTP | Envelope | When |
|---|---|---|
400 | VALIDATION_ERROR | provider_id is not a valid catalogue id. |
400 | problem+json | The logo was rejected: not PNG/JPEG, not square, smaller than 200x200, larger than 64 KB decoded, a missing field, or the provider is not WHITELABEL-owned. |
401 | NOT_AUTHENTICATED | Missing or invalid API keys. |
413 | — | Request body larger than 256 KB. |
/whitelabel/providers/{provider_id}/logoUploads your own logo for this provider. The image travels base64 in JSON, not multipart.
A logo is the provider’s identity rather than its wording, so it is held to the same rule as name: accepted only for WHITELABEL-owned providers (a catalogue id containing YUNO) and rejected with 400 for anyone else’s. The file must be a PNG or a JPEG — decided by the file’s own bytes, never by the extension, so an SVG renamed .png is refused — and square, at least 200x200 pixels and at most 64 KB decoded. Rejections list every violation at once in violations.
The stored key is not returned: read the provider again for a fresh presigned logo_url. Writing a logo does not touch the instruction override, and does not add the provider to your allowlist.
Path Parameters
WHITELABEL catalogue provider id in UPPER_SNAKE_CASE. Case-insensitive; normalized to upper case.
Body application/json
Original file name, at most 255 characters. Stored for display only; the format is decided by the bytes, never by this extension.
The image itself, base64-encoded. PNG or JPEG only (checked against the file’s magic bytes), square, at least 200x200 pixels and at most 64 KB decoded.
Response
Logo stored.
Always stored on success.
The logo was rejected — invalid provider_id, not PNG/JPEG, not square, smaller than 200x200, larger than 64 KB decoded, or the provider is not WHITELABEL-owned.
Every violation of the request, reported together rather than one per round trip.
Unauthorized — invalid or missing API keys.
Request body larger than 256 KB.