Get user appearance settings
GET
CoderSessionTokenheader
Coder-Session-Token<token>user*stringUser ID, name, or me
OK
application/json- response
terminal_font?codersdk.TerminalFontNameValue in
"""geist-mono""ibm-plex-mono""fira-code""source-code-pro""jetbrains-mono"theme_dark?stringIgnored when ThemeMode is "single"
theme_light?stringIgnored when ThemeMode is "single"
theme_mode?codersdk.ThemeModeValue in
"""sync""single"theme_preference?stringThemePreference 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"}