Skip to content
NestSolver Docs
Browse the docs

Reference

List saved parts

GET /v1/parts

The workspace's nest part library, newest first: each part's id, label, size and holes, to name in a nest's `library`: free.

Headers and parameters

Field Type Meaning
unit (query) string The unit sizes are written in. Without it, the unit the key's owner picked on the web. One of mm , cm , m , in

Responses

Status When Body
200 The saved parts. Parts
401 No live API key. Errors
403 Nesting needs the Bench plan; `upgrade` names it. Errors
422 A unit outside its choices, named at its field. Errors
429 More than 300 free calls this minute (60 on Free), or more than 600 calls from this address. Errors
500 Something went wrong on our side; try again. Errors

Example

A sample request:

curl https://api.nestsolver.com/v1/parts \
  -H "Authorization: Bearer $NESTSOLVER_KEY"

A 200 answer, required fields only; lists show one item:

{
  "unit": "mm",
  "parts": [
    {
      "id": "0192f0c4-7d1e-7c3a-9b2e-5d6f7a8b9c0d",
      "label": "Side panel",
      "width": 600,
      "height": 400,
      "holes": 1,
      "rotation": "fixed",
      "mirror": false
    }
  ]
}