List appearance

Returns the signed-in caller's own appearance preference — text size, density and accent — read from their IAM account so it is the same on every device and every Hanzo surface.

GET /v1/account/appearance

Addresshttps://api.hanzo.ai/v1/account/appearance
MethodGET
Operationget_account_appearance
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the signed-in caller's own appearance preference — text size, density and accent — read from their IAM account so it is the same on every device and every Hanzo surface. An unset preference is an empty object.

A transient IAM read failure reports the empty preference rather than a 5xx, so a surface applies its published default and never error-toasts on load — the same fail-soft the key read uses.

Request

GET /v1/account/appearance takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200account.appearanceok
defaultproblem-detailsrefused

200 body — 3 fields.

FieldInTypeAlwaysDescription
accentbodystring—Accent is the one hue — a CSS colour token (a hex, or a bounded functional colour like rgb()/oklch()).
densitybodystring—Density is the spacing step: "compact", "default" or "comfortable".
typebodynumber (double)—Type is the text-size multiplier, clamped to the ramp window [0.85, 1.4].

Failure carries the platform error shape — see Errors.

Examples

hanzo account appearance get
import { Configuration, AccountApi } from 'hanzoai';

const api = new AccountApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getAccountAppearance();
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import AccountApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = AccountApi(client).get_account_appearance()
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.AccountAPI.GetAccountAppearance(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, account_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = account_api::get_account_appearance(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.AccountApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new AccountApi(client).getAccountAppearance();
curl https://api.hanzo.ai/v1/account/appearance \
  -H "Authorization: Bearer $HANZO_API_KEY"

Tool account, op get_account_appearance — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.

curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "account",
         "arguments": {
           "op": "get_account_appearance",
           "input": {}
         }
       }
     }'

Account API · All Hanzo APIs · Interactive reference

Was this page useful?