stitchu Sign inCreate account

Drafting API reference

This page documents an earlier specification-based drafting endpoint. It is set up to answer only the stitchu website’s own pages and is not offered for use from other sites, apps or servers; there is no public API, partner programme or pricing.

legacy POST /api/draft reference

Request

Shown for reference: a browser request from any other website is refused.

curl https://stitchu-api.<account>.workers.dev/api/draft \
  -H 'content-type: application/json' \
  -d '{
    "spec": { "garment": "dress", "neckline": "sweetheart", "ruffle": "tiered" },
    "measurements": { "bust": 92, "waist": 74, "hip": 98,
                      "shoulder": 39, "backLength": 42, "armLength": 58, "neck": 36 }
  }'

Response

{
  "apiVersion": "1",
  "pattern": {
    "garment": "sweetheart dress",
    "fabricMeters140": 7.0,
    "guideSteps": [ "Print and check the 3 cm calibration square…", … ],
    "pieces": [
      { "name": "Bodice Center Front", "cutInstruction": "cut 1 on fold",
        "commands": [ {"type":"move","x":0,"y":8}, {"type":"curve","x":61,"y":0,"cp1x":34,…} ],
        "seamAllowance": 15 }
    ]
  }
}

Coordinates are in millimetres. Detected drafting failures return 422 undraftable.

No model call

The drafting runs on the engine itself; no AI model is called.

Reviewable output

Inspect the generated pieces and construction instructions together. Engine checks and physical sewing validation are separate.

Nothing stored

The request carries only measurements and a garment description, and the endpoint does not store them.

Try it live

Draft a pattern against the endpoint from this page. It works here because the request comes from the stitchu website, and it is rate-limited.

the response appears here…

Grade a size run

One design, a whole size chart. POST /api/grade drafts one spec across an EU size range, every size from the same engine. Like the draft endpoint, it answers only this website.

the size run appears here…

Want an API?

It is not offered today. Leave your email if you want to hear if that changes; it is used for that message only.