Instance branding API
The owner gives the server a name and a logo (Settings → Server → Branding).
Implementation notes
The owner gives the server a name and a logo (Settings → Server → Branding). GET /api/v1/auth/status carries "branding": {"name": "Acme Tasks", "logoVersion": 2} for everyone (name empty and logoVersion 0 without branding), and the page and the web app manifest are served with the name in the title and the logo as favicon, touch icon and app icons, so an installed app shows them.
- GET
/api/v1/settings/branding - PUT
/api/v1/settings/branding - PUT
/api/v1/settings/branding/logo - DELETE
/api/v1/settings/branding/logo
GET /api/v1/settings/branding
Get settings branding · Token or session
Owner. PUT {"name": "…"}: up to 40 characters after trimming, no control characters, empty for OpenTodo's own name (400 invalid_input otherwise). Answers {name, logoVersion}; recorded as settings.changed (branding.name)
Only the server's owner.
| Field | Type | Description |
|---|---|---|
logoVersion required | number | |
name required | string |
PUT /api/v1/settings/branding
Update settings branding · Token or session
Owner. PUT {"name": "…"}: up to 40 characters after trimming, no control characters, empty for OpenTodo's own name (400 invalid_input otherwise). Answers {name, logoVersion}; recorded as settings.changed (branding.name)
Only the server's owner.
| Field | Type | Description |
|---|---|---|
name | string | null |
| Field | Type | Description |
|---|---|---|
logoVersion required | number | |
name required | string |
PUT /api/v1/settings/branding/logo
Update settings branding logo · Token or session
Owner. The raw bytes of a PNG or JPEG, at most 2 MB (413 too_large), at least 192 and at most 4096 pixels a side (400 invalid_input). The server crops the centre square and renders 32, 180, 192 and 512 px PNGs plus a maskable 512 px icon under <data>/branding/, bumps logoVersion and answers {name, logoVersion}; recorded as settings.changed (branding.logo)
Only the server's owner.
| Field | Type | Description |
|---|---|---|
logoVersion required | number | |
name required | string |
DELETE /api/v1/settings/branding/logo
Delete settings branding logo · Token or session
Owner. Removes the rendered files; logoVersion becomes 0 and the app's own icons return
Only the server's owner.
| Field | Type | Description |
|---|---|---|
logoVersion required | number | |
name required | string |