Skip to content
xivdyetools.app ↗

Character Equipment ​

2 endpoints · .chara import · 6 languages

Resolve the equipment model keys stored in an Anamnesis / Ktisis / Brio .chara file to in-game item names (six languages), icons, and their families of visually identical items. This powers the web app's Glamour Reader, facewear item links, and the bot's /glamour enrichment.

Why model keys, not item IDs?

A .chara file never names the items a character wears — it stores each slot's ModelBase / ModelVariant (weapons add ModelSet), the lanes of the Item sheet's packed ModelMain. Those keys resolve deterministically, but the slot is a mandatory second key (one gear set shares a ModelMain across head/body/hands/legs/feet), and 35 % of keys are families of items that share one mesh (Augmented / Replica / +1 / role variants). This endpoint does that resolution once, server-side, and caches it per key.

POST /v1/chara/resolve ​

Resolve every worn piece of one character in a single call. The body is the twelve small integers below and nothing else — no names, no appearance data, no screenshot.

POST/v1/chara/resolveResolve .chara gear model keys to items.

Resolve .chara gear model keys to items.

Body · JSON
POST /v1/chara/resolve
STATUS · TIME · X-REQUEST-ID — after Send
// tap Send — nothing is fetched until you ask
FieldTypeNotes
geararray, required, ≤ 12One entry per worn slot. Empty slots (base 0) are rejected — send worn pieces only.
gear[].slotstringMainHand, OffHand, HeadGear, Body, Hands, Legs, Feet, Ears, Neck, Wrists, LeftRing, RightRing — each at most once
gear[].baseinteger 0–65535, requiredThe file's ModelBase
gear[].variantinteger 0–65535The file's ModelVariant (default 0)
gear[].setinteger 0–65535Weapon slots only — the file's ModelSet
glassesinteger 1–65535The file's Glasses.GlassesId (or bare Glasses integer). Omit or 0 for none.

Response ​

json
{
  "success": true,
  "data": {
    "version": "284bb7f44b9c0976",
    "items": {
      "HeadGear": {
        "itemId": 18085,
        "names": { "en": "Beech Mask of Casting", "ja": "ビーチキャスターマスク", "de": "Buchenmaske der Magie", "fr": "Masque d'incantateur en hêtre", "ko": "너도밤나무 마술사 가면", "zh": "山毛榉咏咒面具" },
        "iconId": 41716,
        "familySize": 1,
        "alternates": [],
        "viaMainHand": false,
        "acquisition": "Crafted (CRP Lvl. 61) / Norlaise - Ishgard - The Pillars (19,994 Gil)"
      },
      "Body": null,
      "MainHand": { "itemId": 49486, "names": { "en": "Runaway Bow", "…": "…" }, "iconId": 32065, "familySize": 1, "uiCategory": 4, "alternates": [], "viaMainHand": false, "acquisition": "Hell on Rails (Extreme)" },
      "OffHand":  { "itemId": 49486, "names": { "en": "Runaway Bow", "…": "…" }, "iconId": 32065, "familySize": 1, "uiCategory": 4, "alternates": [], "viaMainHand": true, "acquisition": "Hell on Rails (Extreme)" }
    },
    "glasses": { "id": 40, "names": { "en": "Black Rose-colored Spectacles", "…": "…" }, "iconId": 200018 }
  },
  "meta": { "requestId": "…", "apiVersion": "v1" }
}
FieldMeaning
versionThe XIVAPI game-version key the upstream answered with; null when the whole answer came from cache
items.<slot>Present for every requested slot. null = the key has no Item row (NPC-only / prop models) — show the raw key, it is not an error. A family of only retired items is still named, with retired: true (below).
items.<slot>.itemIdItem sheet row — the family's named row: the lowest eligible row_id that has an acquisition line, else the lowest eligible row_id (over every row of the family when retired). The family's lowest row is always present, as itemId or among alternates, so a client that needs a stable family key should use the smaller of itemId and the alternates ids: itemId can move when a game patch adds or removes an acquisition source
items.<slot>.namesen / ja / de / fr always (soft hyphens stripped); ko / zh when the regional tables know the item — fall back to en per item when absent
items.<slot>.iconIdFor GET /v1/chara/icon/:iconId; null when the row has none
items.<slot>.familySizeEligible rows sharing this (slot, key), after retired-item filtering — every row of the family when retired. 1 = unique. Every family member is visually identical — the file cannot tell them apart and neither can the game.
items.<slot>.uiCategoryThe named item's ItemUICategory row; for a main hand it says which class the weapon or tool is, which decides whether the GPOSERS list writes an Off Hand line. Omitted when unknown.
items.<slot>.alternatesThe other family members (row_id ascending, at most 8), each { itemId, names } plus its own acquisition when known. Every rule set's lowest row in rules is itemId or among them, up to that cap, so a twin that passes the in-game check can be named (a family with more rule sets than the cap holds loses the lowest rows of its last sets in rules order; no .chara corpus family has more than 4 rule sets). The family's lowest row is also among them whenever it is not itemId
items.<slot>.rulesWhat the game allows, as the family's distinct rule sets, the set holding itemId first, then lowest row first: each { itemIds, dyeCount, glamourable, wearMask, grandCompany }. dyeCount is the dye channels (0–2); glamourable is false on relic weapons, whose Replicas carry the look; wearMask has bit 2i for race i as a man and 2i + 1 as a woman, in EquipRaceCategory column order (Hyur, Elezen, Lalafell, Miqo'te, Roegadyn, Au Ra, Hrothgar, Viera), null when unknown; grandCompany is the company the piece is locked to, 0 for any. [] when the upstream answer lacked the fields. There is no job list: since patch 7.4 any job can wear any piece for glamour.
items.OffHand.viaMainHandtrue when the off-hand key is the main-hand item's own ModelSub (quiver, focus, card holder, fist pair…) or the main-hand key itself — the row is the main weapon. Genuine off-hands (shields) resolve on their own and say false.
items.<slot>.acquisitionWhere the named item comes from, as one English line in the GPOSERS glamour-submission format — e.g. Crafted (WVR Lvl. 92) / Independent Merchant - Urqopacha - Worlar's Echo (28,483 Gil). Omitted when unknown. Built after each patch from game data and Teamcraft's data files; describes itemId — each alternate carries its own.
items.<slot>.retiredtrue when every row of the family is a retired item (see below), so nothing obtainable shares the look; the item is named from the whole family anyway. Omitted otherwise — never false.
glassesPresent only when the request carried glasses; null when the row does not exist
glasses.acquisitionWhere to obtain or purchase the "The Faces We Wear" unlock item for the worn facewear style, in the same English format as equipment acquisition lines. Shared by the base and all color variants. Omitted when the unlock source is unknown.

Game naming such as Augmented, Replica and +1 is preserved within a 128-code-point display limit. All upstream and regional names receive whitespace normalization and removal of control/bidi characters and soft hyphens before storage or output. Item searches and Glasses bodies are bounded to 2 MiB and 32 KiB before JSON parsing.

Caching ​

  • Each (slot, key) is cached at the edge for ~7 days, partitioned by normalized upstream base, canonical game version, canonical schema and row shape. A repeat import reuses complete row families. An empty answer (no item row) is cached too.
  • X-Cache: HIT means all data lookups were served from cache; MISS means at least one data lookup needed upstream work or joined a pending lookup. Snapshot discovery is excluded. (Not CORS-exposed — readable from servers, plugins and bots, not from browser code.)
  • Moving game/schema selectors are discovered once per request and memoized for ten minutes. Failed discovery keeps the last complete context; a first failure permits uncached enrichment without reading or writing shared row entries.
  • Concurrent Item/Glasses misses share decoded data within one isolate. Partially overlapping requests fetch only their new keys in one batch; a 256-key pending limit falls back to ordinary fetches without dropping work. Errors and truncated pages are not persisted. Completed in-flight entries are removed; a request between completion and the asynchronous cache write can miss again. Cache contents are local to a Cloudflare data center, so this is not global deduplication. Row freshness remains seven days with the existing one-day stale-serving headroom; no background row refresh is added.
  • The POST response itself is Cache-Control: no-store — caching happens per key behind it, not on the envelope.

Upstream-operation budget ​

The ordinary API admission limit still applies to every request. An additional Chara budget charges actual upstream data operations: one batched Item search, one Glasses fetch, or one icon fetch/revalidation. A completely cold resolve with both Item and Glasses work costs two units. Cached rows, cached empty/null results and existing Item/Glasses waiters cost zero. If the request a waiter joined is itself denied, the waiter performs that operation under its own budget (one unit) instead of receiving the other client's 429. Concurrent icon misses can each fetch and each consume a unit; retained stale icons consume one unit for conditional revalidation, including a successful 304.

Production thresholds are 30 operations per 60 seconds for a public client and a separate 600 per 60 seconds shared service key. These are approximate per-location soft thresholds; runtime limiter failures preserve the public-read fail-open policy. A configured malformed binding is an error, and an explicit denial stops that operation with a request-local 429, retry/budget headers and Cache-Control: no-store. Failed operations are not refunded or cached. Bounded, memoized Item/1 metadata discovery is outside this data-operation budget.

Errors ​

StatuserrorWhen
400INVALID_BODYNot JSON / not an object
400VALIDATION_ERRORBad slot, lane out of 0–65535, duplicate slot, empty piece, bad glasses, more than 12 entries — the message names the field
413INVALID_BODYBody over 8 KB (enforced while the body streams in — Content-Length is not required)
429RATE_LIMITEDAPI admission or the dedicated Chara upstream budget denied the request; honor Retry-After
503UPSTREAM_UNAVAILABLEXIVAPI is down, timed out, re-indexing search after a game patch, or returns oversized bodies, invalid JSON syntax, or failed body reads (details.upstreamStatus). Retry later; treat as "names unavailable", never as a failed import — the dyes in the file are unaffected.

GET /v1/chara/icon/:iconId ​

The item's icon as PNG (the 80 px _hr1 asset), proxied from XIVAPI and edge-cached.

GET/v1/chara/icon/:iconIdItem icon PNG; optional current game-version key.

Item icon PNG; optional current game-version key.

Parameters · path
From items.<slot>.iconId or glasses.iconId — canonical decimal, 1–999999 (no leading zeros, sign or trailing characters)
Parameters · query
Optional current canonical game key: exactly 16 lower-case hexadecimal characters, equal to the configured or discovered current game version. Omit to follow that version.
GET /v1/chara/icon/41716
STATUS · TIME · X-REQUEST-ID — after Send
// tap Send — nothing is fetched until you ask

Returns image/png (always — the upstream content type is never reflected; a 2xx upstream body that is not a PNG is refused) with Cache-Control: public, max-age=300, must-revalidate for the unversioned URL, or public, max-age=2592000, immutable when an explicit canonical version is supplied, Content-Disposition: inline, Content-Security-Policy: sandbox and an X-Cache header (HIT / MISS). 041716 and 41716abc are 400 VALIDATION_ERROR; 404 NOT_FOUND when the upstream has no such asset; 503 UPSTREAM_UNAVAILABLE when XIVAPI is down, answers with something other than a PNG, or exceeds the 1 MB ceiling. A missing icon should cost the tile, not the row.

Asset fetches and internal edge keys share the same game version. An explicit key must equal the configured canonical game pin or captured current discovered key. A game pin alone is sufficient for this comparison; otherwise bounded metadata discovery may be needed. Known mismatch, malformed and repeated version parameters return 400 before icon-cache or asset access. An explicit version without an authoritative current key returns 503; unversioned requests retain their uncached bootstrap fallback. Dedicated-budget denial returns 429. Unrelated query parameters remain ignored. Internal storage is separate from browser cache headers and never exposes upstream validators or cache timestamps. Previously delivered immutable browser responses can keep their original 30-day lifetime.

Validated PNGs are fresh internally for seven days and retained for up to 30 days. A retained stale entry is revalidated with the upstream ETag; a 304 reuses its existing body and is returned as a normal 200 PNG. A changed 200 must pass validation again. Missing/corrupt/expired bodies are fetched unconditionally. Failed refreshes preserve the old timestamp and return the existing error response; they do not silently serve stale success or extend freshness.

Model key packing (for reference) ​

The request carries the raw lanes, but if you want to compute keys yourself (they are what the cache is keyed on):

armour / accessory  ModelMain = base | variant << 16
weapon              ModelMain = set  | base << 16 | variant << 32   (exceeds 2^32 — use BigInt)

HeadGear {361, 5} → 328041 → Item #18085 Beech Mask of Casting. MainHand {634, 19, 1} → 4296213114 → Item #49486 Runaway Bow; its OffHand {698, 149, 1} packs to that item's ModelSub, which is why it resolves through the main hand. @xivdyetools/core exports gearModelKey, weaponModelKey and charaModelKey for this.

Languages ​

en / ja / de / fr come from XIVAPI v2 in the same call. Korean and Chinese come from build-time tables generated from the community regional datamining exports (scripts/build-item-names.mjs — equippable rows only, same Item row IDs as global). The regional clients can lag a patch by weeks or months, so a brand-new item may have no ko / zh key for a while; fall back to en.

The future builder pins source commits and records exact-byte hashes. This preparation retains the historical tables and their legacy metadata; source provenance for those old snapshots remains unresolved pending a controlled data/font refresh. Runtime name normalization protects responses without claiming to authenticate historical data.

Retired item families ​

The resolver excludes Aetherial and Deepmist items, plus Dated items with a known equipment level of 50 or below. It names the family by the lowest eligible row with the exact same slot and packed model that has an acquisition line, else the lowest eligible row (a row with no acquisition line has no known current source, e.g. old non-Augmented tomestone gear that is no longer sold), filters retired rows from alternates and rules, and uses the named item's names, icon and acquisition line. A family with no eligible twin is still the item the character wears: it is named from all of its rows by the same rule, with its other rows in alternates (capped as usual) and rules, and carries retired: true. An off-hand pairs with such a main hand through the same rows. Dated rows with an unknown level or a level above 50 remain eligible. English client names identify these families regardless of the requested display language. Raw row caching includes LevelEquip in shape version 4 so older cached rows cannot bypass the level filter, and ItemUICategory in shape version 5 so older cached rows cannot replay without a category.

FINAL FANTASY XIV © 2010-2026 SQUARE ENIX CO., LTD. All Rights Reserved.
XIV Dye Tools is a fan-made application and is not affiliated with or endorsed by Square Enix. · Discord ↗