Attributes
This page explains how to find out which attributes to send for each category when calling Valuations or Enrich.
| Method | When to use it |
|---|---|
| Schema endpoint | Your app needs the exact list of fields, types, and allowed values (e.g. to build forms or validate). |
| Reference endpoint | For attributes with enumRef (e.g. brand, model): look up allowed values. |
| This page | You want a human-readable summary and copy-paste examples. |
Every model shares one attribute: assetType ("car", "wristwatch", "ring", "property", …). It says what kind of item it is. You can send it instead of model to get the default version for that type. Responses always include it in attributes, and the schema endpoint lists it as a fixed (const) value.
Get the schema from the API
Use the API to fetch the validation schema for a model (car, wristwatch, ring, or a pinned version like wristwatch@0.2). That schema defines every attribute name, type, and allowed values.
List models:
GET /v1/models
X-API-Key: <your-api-key>
{
"models": [
{ "assetType": "wristwatch", "name": "wristwatch@0.2", "deployedAt": "2026-03-25", "isDefault": true }
]
}
Filter by item type with ?assetType=car or ?assetType=car,wristwatch.
Get schema for a model:
curl https://api.gemmai.io/v1/models/wristwatch/schema \
-H "X-API-Key: <your-api-key>"
{
"assetType": "wristwatch",
"version": "wristwatch@0.2",
"schema": {
"type": "object",
"properties": {
"brand": { "type": "string", "description": "the brand of the wristwatch" },
"model": { "type": "string", "description": "the model of the wristwatch" },
"referenceNumber": { "type": "string" },
"strap": { "type": "string", "enum": ["steel", "leather", "fabric", "..."] },
"movement": { "type": "string", "enum": ["automatic", "manual", "quartz", "smart", "solar"] }
},
"required": ["brand"],
"additionalProperties": false
}
}
properties— every attribute you can send; keys are the attribute names.required— attributes you must include for that model.enum— for string fields, the only allowed values.
Look up values (reference data)
Only attributes with an enumRef in the schema support lookup via the reference endpoint. Currently brand and model (for wristwatch and car) have enumRef. Other fields (e.g. strap, condition) use fixed enums in the schema.
curl "https://api.gemmai.io/v1/reference/brand?q=rol&assetType=wristwatch" \
-H "X-API-Key: <your-api-key>"
Response is a list of { value, probability } items. Use the exact value strings when sending attributes to Valuations or Enrich.
Passing already-selected attributes as query params (e.g. brand=Rolex when looking up model) narrows the results to only relevant values for that brand.
Using Enrich to fill in attributes
If you have a photo but don't know all the attributes, use Enrich to get a full set from the image.
POST /v1/fileswithimageUrl→ getfileIdPOST /v1/enrichwithmodelandinput.file→ getnormalizedAttributes- Pass
normalizedAttributesdirectly toPOST /v1/valuations, or show them to the user for editing first
{
"model": "wristwatch",
"input": { "file": { "fileId": "f47ac10b-58cc-4372-a567-0e02b2c3d479" } }
}
→ Response normalizedAttributes includes brand, model, strap, dialColor, movement, condition — all in the correct format for the schema. See the Enrich guide for the full flow.
Quick reference by category
For exact enum values, use the schema endpoint above. The tables below are a human-readable summary.
Wristwatch
| Attribute | Type | Required | Description |
|---|---|---|---|
brand | string | Yes | Brand name (e.g. Rolex). Use reference brand for suggestions. |
model | string | No | Model name (e.g. Submariner). |
referenceNumber | string | No | Reference number (e.g. 116610LN). |
year | number | No | Year of production (1900–current+1). |
strap | string | No | e.g. steel, leather, fabric, yellow gold, rose gold, rubber |
bezel | string | No | Same-style enums as strap/case. |
case | string | No | Case material. Same-style enums. |
movement | string | No | automatic | manual | quartz | smart | solar |
dialColor | string | No | e.g. black, blue, white, champagne, green, skeleton |
caseDiameter | number | No | Case diameter in mm (12–60). |
box | boolean | No | Original box included. |
papers | boolean | No | Original papers included. |
condition | string | No | poor | fair | good | very_good | excellent |
Only brand is required. More attributes give a tighter price range and higher confidence.
{
"model": "wristwatch",
"attributes": { "brand": "Rolex" }
}
Car
All listed attributes are required for a full car valuation.
| Attribute | Type | Required | Description |
|---|---|---|---|
licensePlate | string | Yes | Swedish license plate. |
brand | string | Yes | e.g. Volvo |
model | string | Yes | e.g. XC60 |
yearOfManufacture | number | Yes | Year (1900–current+1). |
odometerReading | number | Yes | Odometer in kilometers. |
fuelType | string | Yes | e.g. Gasoline (Petrol), Diesel, Electric, Plug-in Hybrid (PHEV) |
drive | string | Yes | 2WD | AWD | FWD | RWD |
gearbox | string | Yes | Manual | Automatic | Semi-Automatic |
enginePower | number | Yes | Engine power in horsepower. |
color | string | Yes | e.g. black, white, gray, blue, red |
additionalWheelset | boolean | Yes | Whether the car has an additional wheelset. |
{
"model": "car",
"attributes": {
"licensePlate": "ABC123",
"brand": "Volvo",
"model": "XC60",
"yearOfManufacture": 2020,
"odometerReading": 45000,
"fuelType": "Plug-in Hybrid (PHEV)",
"drive": "AWD",
"gearbox": "Automatic",
"enginePower": 340,
"color": "black",
"additionalWheelset": false
}
}
Ring
| Attribute | Type | Required | Description |
|---|---|---|---|
style | string | Yes | e.g. solitairering, eternityring, signetring, weddingring |
engraving | boolean | Yes | Whether the ring has engraving. |
material | string | Yes | white gold | yellow gold | rose gold | silver | gold plated |
materialPurity | string | Yes | e.g. 9k, 14k, 18k, 21k, 925, 950 |
weight | number | Yes | Weight in grams. |
condition | string | Yes | poor | fair | good | very_good | excellent |
size | number | No | Ring size. |
diamondCarat | number | No | Diamond carat weight (0–5). |
{
"model": "ring",
"attributes": {
"style": "solitairering",
"engraving": false,
"material": "white gold",
"materialPurity": "18k",
"weight": 4.2,
"condition": "excellent",
"diamondCarat": 0.5
}
}
Necklace
If your deployment supports the necklace category, call GET /v1/models/necklace/schema for the exact schema.
| Attribute | Type | Required | Description |
|---|---|---|---|
style | string | Yes | e.g. necklace, collar, pansar, venezia, figaro, pearlnecklace |
material | string | Yes | white gold | yellow gold | rose gold | silver | gold plated |
materialPurity | string | Yes | e.g. 9k, 14k, 18k, 925 |
chainLength | number | Yes | Chain length in cm. |
chainWidth | number | Yes | Chain width in mm. |
weight | number | Yes | Weight in grams. |
condition | string | Yes | poor | fair | good | very_good | excellent |
pendantType | string | No | e.g. stone, gold-shape, pearl, berlock |
Property
Homes in Sweden: apartments, row and semi-detached houses, detached houses and holiday homes. Plots, farms and forest estates are not valued. Leave out a field you don't know; don't send 0. The more you send, the better the estimate: streetAddress and brf help the most, because they let the model find earlier sales of the same home and housing association.
| Attribute | Type | Required | Description |
|---|---|---|---|
housingForm | string | Yes | APARTMENT | ROW_HOUSE | TWIN_HOUSE | LINKED_HOUSE | TERRACED_HOUSE | HOUSE | VACATION_HOUSE | VACATION_HOME | WINTERIZED_VACATION_HOME |
livingArea | number | Yes | Living area (boyta) in m² (10–1000). |
lat | number | Yes | Latitude, WGS 84 (55.0–69.2). |
lng | number | Yes | Longitude, WGS 84 (10.5–24.3). |
tenure | string | No | OWNED | TENANT_OWNERSHIP | SITE_LEASEHOLD | OTHER. Default: TENANT_OWNERSHIP for apartments, OWNED otherwise. |
streetAddress | string | No | e.g. Rörstrandsgatan 12 A. |
brf | string | No | Organisation number of the housing association, e.g. 7164181138. |
numberOfRooms | number | No | 0–25, halves allowed. The kitchen is not counted. |
landArea | number | No | Plot area in m². |
supplementalArea | number | No | Secondary area (biarea) in m². |
fee | number | No | Monthly fee to the housing association, SEK per month. |
runningCosts | number | No | Running costs, SEK per year. |
floor | number | No | Floor of the apartment (−5–100; 1 = entrance level). |
floorCount | number | No | Number of floors in the building. |
constructionYear | number | No | Year built (1500–2030). |
labels | string[] | No | Any of BALCONY, ELEVATOR, PATIO. |
{
"model": "property",
"attributes": {
"housingForm": "APARTMENT",
"livingArea": 58,
"numberOfRooms": 2,
"fee": 3100,
"floor": 4,
"streetAddress": "Atlasgatan 16",
"lat": 59.338635,
"lng": 18.036988
}
}
| Goal | What to call |
|---|---|
| List models and versions | GET /v1/models |
| Get exact attributes and enums | GET /v1/models/{model}/schema |
| Search brands or models | GET /v1/reference/brand?q=... or GET /v1/reference/model?q=...&brand=Rolex |
| Get suggested attributes from a photo | Vision → POST /v1/enrich → use normalizedAttributes |