Skip to content
Skip to Content
Coder Docs

Get user appearance settings

GET
/api/v2/users/{user}/appearance

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

user*string

User ID, name, or me

Response Body

OK

application/json
  1. response
terminal_font?codersdk.TerminalFontName
Value in"""geist-mono""ibm-plex-mono""fira-code""source-code-pro""jetbrains-mono"
theme_dark?string

Ignored when ThemeMode is "single"

theme_light?string

Ignored when ThemeMode is "single"

theme_mode?codersdk.ThemeMode
Value in"""sync""single"
theme_preference?string

ThemePreference is the legacy single-field appearance setting. In "single" mode it mirrors the active theme. In "sync" mode modern clients normally mirror the active OS slot, but older clients can update only this field, so it may diverge from ThemeLight or ThemeDark until a modern client saves the full appearance state again.

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/users/{user}/appearance" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "terminal_font": "",  "theme_dark": "string",  "theme_light": "string",  "theme_mode": "",  "theme_preference": "string"}