Apparelizer

Developers

Size recommender API

Send a body measurement, get a size, a fit label, a confidence score and plain-language advice. The same engine runs the widget on your shop. You need a sizing account with the API in its package (Business or Enterprise).

Keys and test keys

Create keys in My shop > Sizing for my shop. A live key starts with szk_. A test (sandbox) key starts with szk_test_: it answers exactly like the live API but counts nothing against your allowance, records no events, saves no chart, never calls the AI and never charges. Use it in your build and in automatic tests.

curl -X POST https://apparelizer.com.automoizer.com/api/v1/sizing/recommend \
  -H "Authorization: Bearer szk_test_..." -H "Content-Type: application/json" \
  -d '{"chart":"dress-1","bust":92,"waist":74,"hip":99,"unit":"cm","preference":"true"}'
{"data":{"size":"M","fit":"relaxed","status":"ok","smaller":"S","larger":"L","available":null,
 "advice":{"confidence":92,"band":"high","reason":"M fits with about 3.0 cm to spare at your bust: a roomy fit.",
           "between":null,"per_measure":[{"measure":"bust","size":"M"}]},
 "notes":[],"conversions":null,"labels":null,"social_proof":null,"ai":null},"sandbox":true}

Endpoints

CallWhat it does
GET /api/v1/sizing/chartsList your charts.
PUT /api/v1/sizing/charts/{ref}Create or replace a chart. Fields: title, chart (text table), unit, gender, notes, tolerance_cm, available_sizes, translations (per language title and notes).
DELETE /api/v1/sizing/charts/{ref}Remove a chart.
POST /api/v1/sizing/recommendSize from measurements. Add "ai":true for AI advice (pay per use, never with a test key).
POST /api/v1/sizing/outcomesReport an order or a return: type, chart, size, order_ref, followed_recommendation (true or false), reason for returns (too_small, too_large, other). Powers the "did the recommendation help?" report.
POST /api/v1/sizing/mcpModel Context Protocol server for AI shopping agents (JSON-RPC 2.0). Tools: list_charts, recommend_size.

Reading the advice

  • confidence is 0 to 100. 75 and above is high, 55 to 74 medium, below 55 low. Show the size on high, and show the reason on medium and low.
  • between tells you when the shopper sits between two sizes: kind "split" (two measures point to different sizes), "near_up" (close to the top of the size) or "near_down" (only just over the smaller size). advice is a sentence you can show as is.
  • Errors come back as an "error" object with a code and a message. 401 bad key, 403 package, 422 bad input, 429 rate limit or allowance.

Quiz questions and sets

  • answers: send the shopper's answers to the seller quiz as {"question_key":"answer_key"}. GET /api/v1/sizing/charts/{ref}/quiz lists the questions, the condition that shows each one (show_if) and the answer keys. The reply has quiz (answers, visible, applied) and advice.adjustments, which say in words what each answer did.
  • Pairs and sets: a chart can be a suit, swim, pajama, separates, bra_set or shoes set (PUT /api/v1/sizing/charts/{ref}/set). recommend then also takes underbust, foot_left and foot_right, and returns pieces (one size per piece with its reason) and set (kind, set_size when it is sold in one size, drop for suits). size is the first piece or the set size.

AI shopping agents (MCP)

POST https://apparelizer.com.automoizer.com/api/v1/sizing/mcp   Authorization: Bearer szk_...
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"recommend_size","arguments":{"chart":"dress-1","bust":92,"waist":74,"hip":99}}}

An agent sends measurements for one call. Nothing about the person is stored; only an anonymous recommendation count is kept.

Plugins and extensions · All developer docs