Skip to main content
POST
Sewing Fabric Yardage Calculator

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
ioGarmentType
enum<string>

Garment

Available options:
skirt,
shirt,
dress,
pants,
quilt
ioUnitSystem
enum<string>

Units

Available options:
imperial,
metric
ioFabricWidthImperial
enum<string>

Fabric width

Available options:
45,
54,
60
ioFabricWidthMetric
enum<string>

Fabric width

Available options:
115,
137,
150
ioBust
number

Bust / chest

Required range: x >= 1
ioHip
number

Hip

Required range: x >= 1
ioGarmentLength
number

Length

Required range: x >= 1
ioSleeveLength
number

Sleeve length

Required range: x >= 0
ioBlockSize
number

Finished block size

Required range: x >= 1
ioBlockCount
number

Number of blocks

Required range: x >= 1
ioSeamAllowance
number

Seam allowance

Required range: x >= 0
ioPatternRepeat
number

Pattern repeat

Required range: x >= 0
ioSafetyMargin
number

Extra buffer %

Required range: 0 <= x <= 25

Response

Tool output

tool
string
required
tool_version
string
required

Output-contract version for this tool. Currently "1" for all tools.

outputs
object
required
credits_used
integer
required

Credits this call consumed, after any settlement refund. 0 when metering is disabled.

request_id
string
credits_remaining
integer | null

Credits left in the current monthly allowance, or null when metering is disabled.