---
title: "Upload Domain Branding Logo"
method: POST
path: "/api/domains/{domain_id}/branding/logo"
tags: ["domains"]
---

# Upload Domain Branding Logo

`POST /api/domains/{domain_id}/branding/logo`

## Request

- Base URL: `https://api-v1.unusual.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api-v1.unusual.ai/api/domains/{domain_id}/branding/logo`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/login`

Upload a logo image (PNG/SVG/JPEG/WebP/GIF) for the hosted docs pages.

The bytes land in the generated-pages R2 bucket under this domain's
``page/{domain_id}/assets/`` prefix, so the edge worker serves them on the
customer's own docs host at ``/assets/<filename>``; ``branding.logo_url``
is pointed at that URL and the hosted pages are republished. The filename
embeds a content hash, so the worker's immutable cache header is safe and
replacing the logo never fights a stale cache.

## Path parameters

- `domain_id` string, required

## Headers

- `x-view-as` string, nullable

## Request body `multipart/form-data`

- BodyUploadDomainBrandingLogoApiDomainsDomainIdBrandingLogoPost
  - `file` string, binary, required

## Response `200`

Successful Response

- DomainBrandingResponse
  - `id` string, required
  - `domain_id` string, required
  - `site_title` string, nullable
  - `logo_url` string, nullable
  - `logo_source` string, nullable
  - `favicon_url` string, nullable
  - `brand_color` string, nullable
  - `accent_color` string, nullable
  - `text_color` string, nullable
  - `link_color` string, nullable
  - `background_color` string, nullable
  - `button_color` string, nullable
  - `body_font` string, nullable
  - `heading_font` string, nullable
  - `cta_text` string, nullable
  - `cta_url` string, nullable
  - `main_site_url` string, nullable
  - `main_site_text` string, nullable
  - `meta_title_suffix` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/unusual/apis/dashboard-server.md) - [All operations](https://skmtc.dev/unusual/apis/dashboard-server/llms.txt) - [OpenAPI document](https://skmtc.dev/unusual/apis/dashboard-server/revisions/89f716930ead?raw)
