API ReferenceBranding
Upload Logos
Upload logo and favicon images for the hosted Universal Login chrome.
RPCs
| Method | Path |
|---|---|
| UploadLogo | POST /v1/branding/logo |
| UploadFavicon | POST /v1/branding/favicon |
Base URL: https://<Domain id="api"/>
Authentication: Bearer token with branding:write.
Request
Both endpoints accept multipart/form-data with a single file field:
- Logo: PNG or SVG, max 512KB, aspect ratio 4:1 recommended.
- Favicon: ICO or PNG, max 64KB, 32x32 or 48x48.
Example
const form = new FormData();
form.append("file", new Blob([pngBytes], { type: "image/png" }), "logo.png");
await fetch("https://api-id.avnology.net/v1/branding/logo", {
method:
var body bytes.Buffer
w := multipart.NewWriter(&body)
fw, _ := w.CreateFormFile("file", "logo.png"
import httpx, os
with open("logo.png", "rb") as f:
httpx.post(
"https://api-id.avnology.net/v1/branding/logo",
files={"file": ("logo.png"
curl -X POST "https://api-id.avnology.net/v1/branding/logo" \
-H "Authorization: Bearer
const form = new FormData();
form.append("file", new Blob([pngBytes], { type: "image/png" }), "logo.png");
await fetch("https://api-id.avnology.net/v1/branding/logo", {
method:
var body bytes.Buffer
w := multipart.NewWriter(&body)
fw, _ := w.CreateFormFile("file", "logo.png"
import httpx, os
with open("logo.png", "rb") as f:
httpx.post(
"https://api-id.avnology.net/v1/branding/logo",
files={"file": ("logo.png"
curl -X POST "https://api-id.avnology.net/v1/branding/logo" \
-H "Authorization: Bearer
const form = new FormData();
form.append("file", new Blob([pngBytes], { type: "image/png" }), "logo.png");
await fetch("https://api-id.avnology.net/v1/branding/logo", {
method:
var body bytes.Buffer
w := multipart.NewWriter(&body)
fw, _ := w.CreateFormFile("file", "logo.png"
import httpx, os
with open("logo.png", "rb") as f:
httpx.post(
"https://api-id.avnology.net/v1/branding/logo",
files={"file": ("logo.png"
curl -X POST "https://api-id.avnology.net/v1/branding/logo" \
-H "Authorization: Bearer
const form = new FormData();
form.append("file", new Blob([pngBytes], { type: "image/png" }), "logo.png");
await fetch("https://api-id.avnology.net/v1/branding/logo", {
method:
var body bytes.Buffer
w := multipart.NewWriter(&body)
fw, _ := w.CreateFormFile("file", "logo.png"
import httpx, os
with open("logo.png", "rb") as f:
httpx.post(
"https://api-id.avnology.net/v1/branding/logo",
files={"file": ("logo.png"
Response (200 OK)
Returns the updated OrgBranding with the new logo_url / favicon_url CDN path.