The API

Every pattern this site shows is one POST. Previews need no key at all.

Status and designs

GET /api/plushies/status answers which lanes run here — pattern, imageTo3d, blender — whether a PDF can be made, and whether orders are accepted. GET /api/plushies/designs lists the built-in designs with their piece counts.

Preview

POST /api/plushies/patterns/preview with { design, sizeMm, allowance, trim } answers { svg, layout, pattern } — the nested pieces at true proportion. Without plush.pattern the SVG is watermarked and carries no dimensions.

Keep and print

With a session and plush.pattern: POST /api/plushies/patterns saves one; GET /api/plushies/patterns/ID/sheet answers the tiled print document as HTML; GET /api/plushies/patterns/ID/pdf answers the PDF, or 501 where no renderer is installed.

Orders

POST /api/plushies/orders as multipart/form-data with file, kind, design, sizeMm, notes and, signed out, email. It answers 202 with accepting: false while ordering is closed; the request is kept either way. GET /api/plushies/orders lists your own.