← API reference2D ·
Edge banding
Banded edges per part, and the metres of tape they consume.
2D · edgeBanding
When any part carries edgeBanding, the response adds an edgeBanding block: the linear metres each type reference consumes, per part and as an order total. It is exact geometry with no waste margin — the workshop adds its own — and it assumes millimetre input (÷1000 for metres). The key is absent entirely for an unbanded job.
POST /v1/optimize/2d
{
"parts": [
{
"name": "Door",
"w": 600,
"h": 400,
"qty": 2,
"edgeBanding": {
"top": "ABS oak 22",
"bottom": "ABS oak 22",
"left": "ABS white 22",
"right": "ABS white 22"
}
},
{ "name": "Shelf", "w": 800, "h": 300, "edgeBanding": { "top": "ABS oak 22" } }
],
"stock": [{ "w": 2440, "h": 1220, "qty": 10, "price": 42 }],
"options": { "kerf": 3 }
}Uses a public demo key — rate-limited, small jobs only, never billed.
{
"edgeBanding": {
"totalMeters": 4.8,
"byType": [
{ "reference": "ABS oak 22", "meters": 3.2 },
{ "reference": "ABS white 22", "meters": 1.6 }
],
"byPart": [
{
"name": "Door",
"meters": 4,
"byType": [
{ "reference": "ABS oak 22", "meters": 2.4 },
{ "reference": "ABS white 22", "meters": 1.6 }
]
},
{
"name": "Shelf",
"meters": 0.8,
"byType": [{ "reference": "ABS oak 22", "meters": 0.8 }]
}
]
}
}