Skip to content

Read public appearance settings

GET
/appearance

Returns the branding and display settings the frontend uses at startup.

No sign-in is needed, even when public mode is off. The response uses the same AppearanceConfig schema as the admin endpoints but a different projection: nonempty font-slot IDs, the active logo URL and dimensions when that logo is listed, and the site-name, demo-mode, visual-search and public-mode flags. It leaves out logo_history and doesn’t probe whether each logo is available.

With no appearance row saved, the font-slot and logo fields are left out so clients use their bundled defaults. A missing or dangling active-logo selection also leaves out the logo fields. A listed active logo can still be missing from storage; its URL doesn’t promise a successful read.

The site name comes from a separate settings read and falls back to the shipped name when it’s absent or can’t be read. The public-mode flag falls back to false on a read error. An error reading or decoding the appearance settings fails the whole request. Demo mode and visual-search availability reflect the configuration set at startup.

These settings are read separately, not as one atomic snapshot. The response doesn’t change permissions or load any fonts itself. The web client first applies its cached font and logo choices, then refreshes from this endpoint.

The public appearance projection, without logo history.

Saved install-wide font and logo settings. The admin operations return the font choices, the active logo and, when it isn’t empty, the recent-logo list. The public boot response uses the same schema, adds its four boot fields and leaves out the list. The font PATCH writes only the four font fields. Empty or unknown font IDs fall back to the frontend defaults, and a known font that doesn’t suit its slot falls back to the first suitable catalogue entry.

object
brand_font

Catalogue ID of the brand and hero font. Empty or unknown means Limelight in the current frontend. Left out of responses when empty; omitting it on PATCH, or sending null or an empty string, resets it.

string
display_font

Catalogue ID of the H1–H3 heading font. Empty or unknown means Inter in the current frontend, whatever the body font is. Left out of responses when empty; omitting it on PATCH, or sending null or an empty string, resets it.

string
body_font

Catalogue ID of the body and interface font. Empty or unknown means the system sans-serif stack. Left out of responses when empty; omitting it on PATCH, or sending null or an empty string, resets it.

string
mono_font

Catalogue ID of the font for code and tabular numbers. Empty or unknown means the system monospace stack. Left out of responses when empty; omitting it on PATCH, or sending null or an empty string, resets it.

string
site_name

The install’s display name, sent only on the public boot response. It’s Artist Alley when unset or when its settings can’t be read. Left out of the admin responses and ignored on PATCH; change it in the site settings.

string
Example
Artist Alley
demo_mode

Whether demo mode is on, sent only on the public boot response, even when false. Left out of the admin responses and ignored on PATCH. It only announces the mode; it doesn’t block writes itself.

boolean
visual_search_enabled

Public boot flag for showing reverse-image search, set from whether a visual provider was configured at startup. It doesn’t promise that a later search succeeds. Left out of the admin responses and ignored on PATCH.

boolean
public_mode_enabled

Public boot flag for anonymous browsing, read from the public-mode settings and false if that read fails. Left out of the admin responses and ignored on PATCH. Access rules are enforced separately.

boolean
logo_url

Versioned public URL of the selected logo from the list. Left out for the bundled default or when the selection isn’t in the list; its presence doesn’t prove the image is available. Ignored on the font PATCH. Upload or select a logo to change it; DELETE clears it.

string
Example
/api/v1/appearance/logo?v=9f2b1c4d5e6a
logo_width

Saved width of the selected logo, in pixels. Left out when no listed logo is selected, even while the bundled default is shown, and can be present when the image is unavailable. Ignored on PATCH.

integer
Example
512
logo_height

Saved height of the selected logo, in pixels. Left out when no listed logo is selected, and can be present when the image is unavailable. Ignored on PATCH.

integer
Example
512
logo_history

Recent logos in saved order, most recently chosen first; writes keep at most five. Left out when empty and always left out of the public boot response. The default mark is never an entry. Ignored on the font PATCH, which carries the old list over only if it can read it. After failures or concurrent writes, pins and availability can drift from this list.

Array<object>

One recent logo: the metadata saved at upload, plus whether it’s available and whether it’s active. It points to the original stored bytes; it doesn’t contain the image.

object
hash
required

SHA-256 hash of the uploaded bytes. Use it to select the logo, or as v on the public logo route, while the entry is in the list. It isn’t a fresh integrity check of the stored bytes.

string
Example
9f2b1c4d5e6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c
url
required

Versioned public URL for this entry, active or not. It may fail to load when the entry is unavailable, and cached copies can outlive the entry’s removal from the list.

string
Example
/api/v1/appearance/logo?v=9f2b1c4d5e6a
content_type
required

MIME type worked out from the decoded upload, not the client’s header, and saved with the entry.

string
Example
image/png
width
required

Image width in pixels, saved at upload time.

integer
Example
512
height
required

Image height in pixels, saved at upload time.

integer
Example
512
size_bytes
required

Size of the original uploaded file in bytes, saved at upload time.

integer format: int64
Example
18244
available
required

True when the storage metadata check succeeded while this response was built. False on any check error, or when there’s no storage backend. It isn’t a download or integrity check and doesn’t promise a later fetch will work. When it’s false, clients must clearly show that the logo is unavailable and must not offer it for selection.

boolean
Example
true
active
required

True when this hash matches the saved active selection. It can be true while available is false.

boolean