Skip to content

API reference

Everything the web interface does, an agent can do through this API, under its own name.

Basics

The agent API of Maker BOM. A token acts for its owner; every change is attributed to the token's name and appears live in the web UI.

Start with GET /me , then read GET /guide .

Every request except this reference, the OpenAPI document, and the agent guide carries a token in the Authorization header. Get a token in Agents and settings. A token can read and change everything in its account.

Base URL

https://makerbom.io/api/v1
A first request
curl https://makerbom.io/api/v1/me \
  -H "Authorization: Bearer bbom_..."

Give an agent the guide first. It explains the data model, the quantity rules, and the common workflows in a page an agent reads in one go. The OpenAPI document is the full machine-readable contract.

Conventions

  • Authenticate with Authorization: Bearer <token> .
  • Ids are integers. Timestamps are ISO 8601 UTC; dates are YYYY-MM-DD .
  • Decimals (quantities, prices, money) are JSON strings such as "12" or "0.25" , so no precision is lost. Inputs accept a string or a number.
  • Enums are lowercase strings; validation errors list the allowed values.
  • Single records return {"data": {...}} ; lists return {"data": [...], "next_cursor": ...} . Lists page with a cursor: pass next_cursor as after ; limit defaults to 50, at most 200. Lists are ordered by id, ascending, by default; that order never moves a record, so a record changed between two pages is never skipped or repeated. Use it to sync everything. BOMs, parts, orders, and lines also take sort : one field, name ascending or -name descending, ties broken by id, null values last ascending and first descending. In another order a record whose value changes between pages can move. Sorts are named as the records show the field ( inserted_at ), and text sorts by the database collation. A cursor works only with the list and the sort that wrote it. Lines without limit , after , or sort come in outline order, unpaginated (at most 2000). The change feed pages by event id; BOM history pages newest first with before .
  • Query parameters are checked , on every method: a parameter the operation does not declare in this document answers 400 unknown_parameter with the declared names in details[].allowed ; a declared parameter with a bad value (a limit out of range, an unknown sort , an unusable after ) answers 422 validation_failed . A rejected request writes nothing and stores nothing under its Idempotency-Key.
  • Write bodies are application/json (the import routes also take multipart/form-data with a file ); other content types are 415 unsupported_media_type . Only the fields of the request schema are accepted: id , object , links , inserted_at , and updated_at are ignored, any other field is 422 validation_failed with code unknown_field , and a value of the wrong JSON type has code invalid_type . Strings are at most 10,000 characters, lists 1,000 items, objects 200 keys; text may not contain NUL.
  • Every record has links with related URLs. A line's or part's own document links are external_links .
  • Versioned records (BOMs, groups, lines, parts, orders, order items) carry lock_version and an ETag . Updates of them require the version as lock_version in the body or If-Match ; a stale version returns 409 conflict with the stored record in error.current . Deletes, lifecycle actions, and moves check a version when one is sent. If-Match takes one strong entity tag ( "3" ); a weak tag ( W/"3" ) never matches and a body lock_version that disagrees with If-Match is refused, both with 412 precondition_failed .
  • Every POST accepts Idempotency-Key . A retry with the same key and body replays the first response with Idempotent-Replayed: true ; the same key with another body returns 422 idempotency_key_reused . Server errors are stored and replayed too, because a 500 can come after the write committed: after a 500, read the record or the change feed, then use a new key. A response over 1 MB is not stored ( Idempotency-Stored: false ); a retry gets 409 idempotency_response_not_stored with the first status. Previews and dry runs store nothing.
  • Imports accept at most 2,000 data rows per request ( 413 import_too_large ), counted before any work.
  • An unsupported method on a known path is 405 method_not_allowed with an Allow header.
  • Besides the per-token limit, each client address has a limit that applies before authentication.
  • Archived and trashed BOMs are read-only. Writes to their contents (BOM fields, groups, lines, bulk edits, alternates, revisions, imports, comments) return 409 bom_archived or 409 bom_trashed . Reads and exports work. Allocations to lines of an archived BOM stay allowed; a trashed BOM refuses them.
  • Canceling an order or order item sends only the units not yet received back to uncovered; accepted units stay ready.
  • Allocations of soft-deleted lines are kept but inactive: they cover nothing, take no received units, and free their order item's capacity.
  • Line create and update accept dry_run=true ; bulk edits and imports have preview endpoints.
  • Errors use one envelope: {"error": {"code", "message", "details": [{"field", "code", "message"}]}} .
  • Requests are rate limited per token; see X-RateLimit-* headers and 429 rate_limited with Retry-After .

Lists and sorting

Lists come one page at a time. Send the page's next_cursor as after to get the next one; it is null on the last page. A page holds 50 records unless limit asks for up to 200.

Builds, parts, orders, and lines take sort with one field: sort=name ascending, sort=-name descending. Sorts carry the names the records show, such as inserted_at. Ties break by id, and empty values come last ascending and first descending. Text follows the database's linguistic order, which mostly ignores case and accents. The default order is id, the only one in which a record never moves, so use it to copy a whole list. In another order a record that changes between two pages can move. A cursor works only in the list and with the sort that returned it.

Lines sort by name, category, quantity, and creation and update time in the database. Outline position comes from the assembly tree, so adding, moving, or reordering an assembly between two pages shifts the lines after it. Status, required, and uncovered quantities come from the build's quantity analysis, which runs once per page. Without limit, after, or sort a build's lines come in outline order on one page; with any of them and no sort, in id order.

Every operation accepts only the query parameters this reference lists for it. Any other one is 400 unknown_parameter, with the accepted names in details, so a typo never returns a quietly wrong list. A listed parameter with a bad value, such as limit=0 or a cursor from another sort, is 422 validation_failed.

Builds changed most recently first
curl "https://makerbom.io/api/v1/boms?sort=-updated_at&limit=2" \
  -H "Authorization: Bearer bbom_..."

{
  "data": [
    {"id": 12, "object": "bom", "name": "Sensor board", "updated_at": "2026-11-21T09:40:00Z"},
    {"id": 7, "object": "bom", "name": "Desk lamp", "updated_at": "2026-11-20T16:05:00Z"}
  ],
  "next_cursor": "azpbImJvbSIsInVwZGF0ZWRfYXQiLCJkZXNjIiwiMjAyNi0xMS0yMFQxNjowNTowMFoiLDdd"
}

curl "https://makerbom.io/api/v1/boms?order=-updated_at" \
  -H "Authorization: Bearer bbom_..."

{
  "error": {
    "code": "unknown_parameter",
    "message": "Unknown query parameter: order. listBoms accepts after, limit, search, sort, state.",
    "details": [
      {"field": "order", "code": "unknown_parameter",
       "message": "is not a query parameter of listBoms",
       "allowed": ["after", "limit", "search", "sort", "state"]}
    ]
  }
}

Versions and conflicts

Builds, assemblies, lines, parts, orders, and order items carry a lock_version. Send the version you read with every update, in the body or as If-Match. If someone changed the record in between, the answer is 409 with the current record in error.current. Read it, reapply only what you meant to change, and send again.

409 Conflict
curl -X PATCH https://makerbom.io/api/v1/lines/9 \
  -H "Authorization: Bearer bbom_..." \
  -H "Content-Type: application/json" \
  -H 'If-Match: "6"' \
  -d '{"spares": "2"}'

HTTP/1.1 409 Conflict
{
  "error": {
    "code": "conflict",
    "message": "The record changed since the version you sent.",
    "details": [{"field": "lock_version", "code": "stale", "message": "current version is 7"}],
    "current": {"id": 9, "lock_version": 7, "quantity": "6", "spares": "4"}
  }
}

Safe retries

Send an Idempotency-Key header with every POST. If the request is repeated with the same key and body, the first result comes back with Idempotent-Replayed: true and nothing is written twice. Use a new key for each new intent, such as one per order. A request that never finished frees its key for a retry after 105 seconds.

A retried order
curl -X POST https://makerbom.io/api/v1/orders/order-lines \
  -H "Authorization: Bearer bbom_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 3f1c9a2e-order-knobs" \
  -d '{"order": {"supplier": "Thonk", "status": "ordered"},
       "entries": [{"line_id": 100, "quantity": "6"}]}'

Errors

Every error has the same shape. details names each field with a dotted path such as items[0].quantity.

bad_request
400. The JSON or a header is malformed. Fix the request.
unknown_parameter
400. The operation does not declare this query parameter. details lists the allowed names.
unauthorized
401. The token is missing, wrong, or revoked.
not_found
404. No such record in this account, or no such route.
account_held
409. An admin stopped this account from sharing builds.
allocation_decision_required
409. Accept again with allocations set to keep or release.
already_decided
409. The substitute was already accepted or rejected.
already_shared
409. The build is already shared. Update the shared copy or stop sharing.
already_voided
409. The receipt is already voided.
bom_archived
409. The build is archived and read-only.
bom_trashed
409. The build is in the trash and read-only.
changed_since
409. The record changed after the event. Edit it instead of undoing.
conflict
409. The record changed since your version. The stored record is in current.
has_receipts
409. Receipts exist. Cancel instead of deleting.
idempotency_in_progress
409. A request with this key is still running. Retry after Retry-After.
idempotency_response_not_stored
409. The first response was too large to replay. Read the record instead.
import_stale_rows
409. Lines the import matches changed since the preview. Preview again.
in_use
409. The part is still used. Retire or merge it.
no_code
409. The link has no access code.
not_shared
409. The build is not shared.
not_trashed
409. Only a build in the trash can be deleted permanently.
not_undoable
409. This kind of change has no undo.
order_canceled
409. The order is canceled. Record the lines on another order.
taken_down
409. An admin took the build's shared copy down; it cannot be shared again until an admin allows it.
precondition_failed
412. If-Match is weak or disagrees with lock_version. Send one strong version.
import_too_large
413. More than 2,000 rows. Split the import.
request_too_large
415. The body is too large.
unsupported_media_type
415. Send the body as application/json.
cycle
422. The move would put an assembly inside itself.
idempotency_key_reused
422. The key was used for a different request. Use a new key.
import_empty
422. The import has no data rows.
import_invalid_rows
422. Some rows have errors and nothing was imported. details names them.
import_mapping_error
422. The column mapping is invalid.
import_parse_error
422. The import text could not be read.
import_unsupported_version
422. The document is a newer major version of the Maker BOM format than this server reads.
invalid_operation
422. Unknown or empty bulk operation.
line_deleted
422. The line is deleted. Restore it first.
no_lines
422. Name at least one line to order.
no_target
422. Name the build, assembly, line, or order the comment is about.
revision_not_found
422. revision_id is not a revision of this build.
same_group
422. An assembly cannot be merged into itself.
same_part
422. A part cannot be merged into itself.
validation_failed
422. details names each field, what is wrong, and the allowed values.
export_limited
429. The account started its number of exports in this window. Wait the seconds in Retry-After.
rate_limited
429. Too many requests. Wait the seconds in Retry-After.
suggestion_limit
429. The account made its daily number of new supplier suggestions. Nothing was recorded; send it again later.
busy
503. Other writes of this account are still running. Retry after Retry-After.
422 Unprocessable Content
{
  "error": {
    "code": "validation_failed",
    "message": "The request has invalid fields.",
    "details": [
      {"field": "supply", "code": "invalid_value", "message": "is invalid",
       "allowed": ["fabricated", "kit", "on_hand", "purchase", "salvaged", "supplied"]}
    ]
  }
}

Change feed

To follow what happens in an account, ask for the events after the last one you saw. Events come oldest first. Store next_cursor and send it as after next time. Each event names its actor, so an agent can tell its own changes from the maker's.

Events after a cursor
curl "https://makerbom.io/api/v1/events?after=915&bom_id=1" \
  -H "Authorization: Bearer bbom_..."

{
  "data": [
    {
      "id": 916,
      "cursor": "916",
      "action": "comment.resolved",
      "actor": {"kind": "agent", "name": "Claude (sourcing agent)", "api_token_id": 2},
      "bom_id": 1,
      "subject": {"type": "comment", "id": 10},
      "summary": "Resolved a question on Decoupling capacitors",
      "changes": {},
      "occurred_at": "2026-11-21T09:10:00Z"
    }
  ],
  "next_cursor": "916",
  "has_more": false
}

Where to shop

Maker BOM does not look up prices or stock, and it never fetches a supplier's site. Your agent does the shopping. The supplier directory tells it where: GET /suppliers?category=electronic_components lists the published suppliers for a category, with their kind, what they are best for, what to watch out for, where they ship, and how to search them.

Ratings are Maker BOM's own, from 1 to 5, and 5 is best for the buyer on every criterion, so a price_rating of 5 means low prices. The API never returns an average.

An agent searches a site by putting the search words in place of {query} in search_url_template, and follows agent_notes, which say what the site's terms allow. It can suggest a missing supplier with POST /supplier-suggestions; an admin reviews every suggestion before it is published.

Discovery

Public entry points: index, OpenAPI document, guide.

GET /

API index

Details of GET /

Version, links to every top-level collection, the OpenAPI document, and the guide. No token needed.

No token needed.

200 response
{
  "api_version": "v1",
  "links": {
    "boms": "/api/v1/boms",
    "guide": "/api/v1/guide",
    "openapi": "/api/v1/openapi.json"
  }
}

Errors

400
bad_request , unknown_parameter
GET /openapi.json

OpenAPI document

Details of GET /openapi.json

This document. No token needed.

No token needed.

200 response
{
  "openapi": "3.1.0"
}

Errors

400
bad_request , unknown_parameter
GET /guide

Agent guide

Details of GET /guide

A concise Markdown guide for LLM agents: authentication, model, quantity rules, workflows, concurrency, idempotency, errors. No token needed.

No token needed.

200 response
# Maker BOM agent guide
...

Errors

400
bad_request , unknown_parameter

Account

The calling token and its owner, and the export of everything the account holds.

GET /me

Current token

Details of GET /me

The token's name, its owner's email, what the token may do, the rate limit, server time, and the API version. Call it first to verify a token.

200 response
{
  "data": {
    "api_version": "v1",
    "owner": {
      "email": "maker@example.com",
      "id": 1
    },
    "permissions": [
      "boms:read",
      "boms:write",
      "groups:write",
      "lines:write",
      "alternates:write",
      "revisions:write",
      "parts:read",
      "parts:write",
      "orders:read",
      "orders:write",
      "comments:read",
      "comments:write",
      "events:read",
      "imports:write",
      "exports:read"
    ],
    "rate_limit": {
      "enabled": true,
      "limit": 600,
      "window_seconds": 60
    },
    "server_time": "2026-11-21T08:00:00Z",
    "token": {
      "default": false,
      "id": 3,
      "name": "Claude (sourcing agent)",
      "prefix": "bbom_Ab12"
    }
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
429
rate_limited
GET /me/export

Export the account

Details of GET /me/export

Everything the owner's account holds as one JSON document ( format: builder_bom_account , version: 1 ), sent in chunks: the account, API token metadata, every build with its assemblies, requirements (deleted ones too), substitutes, and revisions, parts and listings, orders, items, allocations, receipts, comments, the change history, build views, each build's re-importable builder_bom export, and the account's supplier suggestions. Each table is a list of its rows with every column, in id order. It never holds the password hash, session tokens, a token's secret or hash, events' session references, or another account's records. The last member is always `complete: true`. The 200 status is sent before the body, so an export that stops part way (the account or the connection went away, or the server failed) still ends as a 200: a document that does not parse, or that lacks complete: true , is cut short and must be fetched again. Each account may start 3 exports per rate-limit window, from the browser and all its tokens together, counted on each server machine on its own and reset when the server restarts; past that the answer is 429 export_limited with Retry-After . No operation of the API deletes an account; the owner does that in the browser.

200 response
{
  "account": {
    "admin": false,
    "confirmed_at": "2026-11-01T09:00:00Z",
    "email": "maker@example.com",
    "id": 1,
    "inserted_at": "2026-11-01T09:00:00Z",
    "updated_at": "2026-11-01T09:00:00Z"
  },
  "allocations": [],
  "alternates": [],
  "api_tokens": [
    {
      "default": true,
      "id": 3,
      "inserted_at": "2026-11-01T09:00:00Z",
      "last_used_at": "2026-11-21T07:59:00Z",
      "name": "Claude (sourcing agent)",
      "revoked_at": null,
      "token_prefix": "bbom_Ab12",
      "updated_at": "2026-11-01T09:00:00Z"
    }
  ],
  "bom_exports": [
    {
      "assemblies": [],
      "build": {
        "title": "Desk weather station"
      },
      "format": "builderbom",
      "parts": [],
      "requirements": [],
      "version": 1
    }
  ],
  "bom_views": [],
  "boms": [
    {
      "id": 7,
      "name": "Desk weather station",
      "user_id": 1
    }
  ],
  "comments": [],
  "complete": true,
  "events": [],
  "exported_at": "2026-11-21T08:00:00Z",
  "format": "builder_bom_account",
  "groups": [],
  "lines": [],
  "listings": [],
  "marketing_consent_events": [],
  "order_items": [],
  "orders": [],
  "parts": [],
  "receipts": [],
  "reviewed_suppliers": [],
  "revisions": [],
  "shared_builds": [],
  "supplier_suggestions": [],
  "version": 1
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
429
rate_limited , export_limited

BOMs

Bills of materials: lifecycle, duplication, analysis, what to do next.

GET /boms

List BOMs

Details of GET /boms

BOMs of the owner, one page at a time in the sort order (default id ). sort=-updated_at lists the most recently changed first.

Parameters

state query
one of active, archived, trashed, not_trashed, all. Lifecycle filter (default active ).
search query
string. Matches name, build label, and purpose.
sort query
one of id, -id, name, -name, inserted_at, -inserted_at, updated_at, -updated_at. One field, named as the records show it: name ascending, -name descending. Ties break by id in the same direction. Null values sort after every value ascending and before every value descending. Text sorts by the database collation (linguistic order, mostly ignoring case and accents), not by code point. The default id is the only order that never moves a record; in another order a record whose value changes between pages can move, so it can be missed or repeated. A cursor only works with the sort that wrote it.
limit query
integer. Page size (default 50, at most 200).
after query
string. Opaque cursor from the previous page's next_cursor . It holds the list, the sort, the direction, and the last record's sort value and id, so the next page starts right after that record. Send it to the same list with the same sort : another sort of that list answers 422 validation_failed with detail code cursor_mismatch , and a cursor of another list, or a changed or invented one, answers 422 validation_failed with detail code invalid . Cursors of id order (the default) never expire and stay valid across releases.
200 response
{
  "data": [
    {
      "archived_at": null,
      "build_count": 2,
      "build_label": "rev A",
      "id": 7,
      "inserted_at": "2026-11-01T09:00:00Z",
      "links": {
        "analysis": "/api/v1/boms/7/analysis",
        "lines": "/api/v1/boms/7/lines",
        "self": "/api/v1/boms/7"
      },
      "lock_version": 4,
      "name": "Desk weather station",
      "object": "bom",
      "purpose": "Indoor climate logger",
      "state": "active",
      "trashed_at": null,
      "updated_at": "2026-11-21T08:00:00Z"
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
422
validation_failed
429
rate_limited
POST /boms

Create a BOM

Details of POST /boms

Creates an empty BOM.

Parameters

Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "build_count": 2,
  "name": "Desk weather station"
}
201 response
{
  "data": {
    "archived_at": null,
    "build_count": 2,
    "build_label": "rev A",
    "id": 7,
    "inserted_at": "2026-11-01T09:00:00Z",
    "links": {
      "analysis": "/api/v1/boms/7/analysis",
      "lines": "/api/v1/boms/7/lines",
      "self": "/api/v1/boms/7"
    },
    "lock_version": 4,
    "name": "Desk weather station",
    "object": "bom",
    "purpose": "Indoor climate logger",
    "state": "active",
    "trashed_at": null,
    "updated_at": "2026-11-21T08:00:00Z"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
409
idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
GET /boms/{id}

Get a BOM

Details of GET /boms/{id}

One BOM with its cost summary (runs the analysis): estimate and to_buy are priced per part from preferred listings, with packs rounded once per part across every line that selects it; estimated and to_source are per-line sums, as in the group rollups. Lists leave cost out.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "archived_at": null,
    "build_count": 2,
    "build_label": "rev A",
    "cost": {
      "committed": {
        "USD": "28.7"
      },
      "committed_missing": false,
      "committed_missing_count": 0,
      "estimate": {
        "USD": "41.2"
      },
      "estimate_missing_line_ids": [
        104
      ],
      "estimated": {
        "USD": "43.9"
      },
      "to_buy": {
        "USD": "12.5"
      },
      "to_source": {
        "USD": "13.1"
      }
    },
    "id": 7,
    "inserted_at": "2026-11-01T09:00:00Z",
    "links": {
      "analysis": "/api/v1/boms/7/analysis",
      "lines": "/api/v1/boms/7/lines",
      "self": "/api/v1/boms/7"
    },
    "lock_version": 4,
    "name": "Desk weather station",
    "object": "bom",
    "purpose": "Indoor climate logger",
    "state": "active",
    "trashed_at": null,
    "updated_at": "2026-11-21T08:00:00Z"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
PATCH /boms/{id}

Update a BOM

Details of PATCH /boms/{id}

Changes name, build label, purpose, or build count. Requires the version ( lock_version or If-Match ).

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Request body
{
  "build_count": 3,
  "lock_version": 4
}
200 response
{
  "data": {
    "archived_at": null,
    "build_count": 2,
    "build_label": "rev A",
    "id": 7,
    "inserted_at": "2026-11-01T09:00:00Z",
    "links": {
      "analysis": "/api/v1/boms/7/analysis",
      "lines": "/api/v1/boms/7/lines",
      "self": "/api/v1/boms/7"
    },
    "lock_version": 4,
    "name": "Desk weather station",
    "object": "bom",
    "purpose": "Indoor climate logger",
    "state": "active",
    "trashed_at": null,
    "updated_at": "2026-11-21T08:00:00Z"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , bom_archived , bom_trashed
412
precondition_failed
415
unsupported_media_type , request_too_large
422
validation_failed
429
rate_limited
503
busy
DELETE /boms/{id}

Delete a BOM permanently

Details of DELETE /boms/{id}

Deletes a BOM that is in the trash, with its groups, lines, revisions, comments, and allocations. Orders stay. Check GET /boms/{id}/deletion-impact first. A stated version is checked when given.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.

Answers 204 with no body.

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , not_trashed
412
precondition_failed
429
rate_limited
503
busy
POST /boms/{id}/archive

Archive a BOM

Details of POST /boms/{id}/archive

Archives the BOM (reversible). Writes to its contents then return bom_archived . A stated version is checked when given.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
200 response
{
  "data": {
    "archived_at": null,
    "build_count": 2,
    "build_label": "rev A",
    "id": 7,
    "inserted_at": "2026-11-01T09:00:00Z",
    "links": {
      "analysis": "/api/v1/boms/7/analysis",
      "lines": "/api/v1/boms/7/lines",
      "self": "/api/v1/boms/7"
    },
    "lock_version": 4,
    "name": "Desk weather station",
    "object": "bom",
    "purpose": "Indoor climate logger",
    "state": "active",
    "trashed_at": null,
    "updated_at": "2026-11-21T08:00:00Z"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , idempotency_response_not_stored
412
precondition_failed
422
idempotency_key_reused , validation_failed
429
rate_limited
503
busy
POST /boms/{id}/unarchive

Unarchive a BOM

Details of POST /boms/{id}/unarchive

Brings an archived BOM back. A stated version is checked when given.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
200 response
{
  "data": {
    "archived_at": null,
    "build_count": 2,
    "build_label": "rev A",
    "id": 7,
    "inserted_at": "2026-11-01T09:00:00Z",
    "links": {
      "analysis": "/api/v1/boms/7/analysis",
      "lines": "/api/v1/boms/7/lines",
      "self": "/api/v1/boms/7"
    },
    "lock_version": 4,
    "name": "Desk weather station",
    "object": "bom",
    "purpose": "Indoor climate logger",
    "state": "active",
    "trashed_at": null,
    "updated_at": "2026-11-21T08:00:00Z"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , idempotency_response_not_stored
412
precondition_failed
422
idempotency_key_reused , validation_failed
429
rate_limited
503
busy
POST /boms/{id}/trash

Move a BOM to the trash

Details of POST /boms/{id}/trash

Moves the BOM to the trash (reversible). Writes to its contents then return bom_trashed . A stated version is checked when given.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
200 response
{
  "data": {
    "archived_at": null,
    "build_count": 2,
    "build_label": "rev A",
    "id": 7,
    "inserted_at": "2026-11-01T09:00:00Z",
    "links": {
      "analysis": "/api/v1/boms/7/analysis",
      "lines": "/api/v1/boms/7/lines",
      "self": "/api/v1/boms/7"
    },
    "lock_version": 4,
    "name": "Desk weather station",
    "object": "bom",
    "purpose": "Indoor climate logger",
    "state": "active",
    "trashed_at": null,
    "updated_at": "2026-11-21T08:00:00Z"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , idempotency_response_not_stored
412
precondition_failed
422
idempotency_key_reused , validation_failed
429
rate_limited
503
busy
POST /boms/{id}/restore

Restore a BOM from the trash

Details of POST /boms/{id}/restore

Restores a trashed BOM. A stated version is checked when given.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
200 response
{
  "data": {
    "archived_at": null,
    "build_count": 2,
    "build_label": "rev A",
    "id": 7,
    "inserted_at": "2026-11-01T09:00:00Z",
    "links": {
      "analysis": "/api/v1/boms/7/analysis",
      "lines": "/api/v1/boms/7/lines",
      "self": "/api/v1/boms/7"
    },
    "lock_version": 4,
    "name": "Desk weather station",
    "object": "bom",
    "purpose": "Indoor climate logger",
    "state": "active",
    "trashed_at": null,
    "updated_at": "2026-11-21T08:00:00Z"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , idempotency_response_not_stored
412
precondition_failed
422
idempotency_key_reused , validation_failed
429
rate_limited
503
busy
POST /boms/{id}/duplicate

Duplicate a BOM

Details of POST /boms/{id}/duplicate

Copies groups and lines into a new BOM without orders, allocations, receipts, comments, or revisions. With revision_id the copy starts from that revision's snapshot instead of the draft.

Parameters

id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "attrs": {
    "name": "Weather station v2"
  },
  "keep_parts": true
}
201 response
{
  "data": {
    "archived_at": null,
    "build_count": 2,
    "build_label": "rev A",
    "id": 7,
    "inserted_at": "2026-11-01T09:00:00Z",
    "links": {
      "analysis": "/api/v1/boms/7/analysis",
      "lines": "/api/v1/boms/7/lines",
      "self": "/api/v1/boms/7"
    },
    "lock_version": 4,
    "name": "Desk weather station",
    "object": "bom",
    "purpose": "Indoor climate logger",
    "state": "active",
    "trashed_at": null,
    "updated_at": "2026-11-21T08:00:00Z"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
GET /boms/{id}/deletion-impact

What permanent deletion removes

Details of GET /boms/{id}/deletion-impact

Counts of lines, groups, revisions, comments, and allocations that permanent deletion removes, and the orders that lose allocations.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "allocation_count": 4,
    "comment_count": 2,
    "group_count": 3,
    "line_count": 12,
    "order_allocation_count": 2,
    "order_ids": [
      20
    ],
    "revision_count": 1
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
GET /boms/{id}/analysis

Quantity analysis

Details of GET /boms/{id}/analysis

The full analysis: per-line breakdown and status in tree order, group rollups, the BOM summary, cost totals per currency, the identical-part rollup, completeness checks, and order item summaries.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "bom": {
      "archived_at": null,
      "build_count": 2,
      "build_label": "rev A",
      "id": 7,
      "inserted_at": "2026-11-01T09:00:00Z",
      "links": {
        "analysis": "/api/v1/boms/7/analysis",
        "lines": "/api/v1/boms/7/lines",
        "self": "/api/v1/boms/7"
      },
      "lock_version": 4,
      "name": "Desk weather station",
      "object": "bom",
      "purpose": "Indoor climate logger",
      "state": "active",
      "trashed_at": null,
      "updated_at": "2026-11-21T08:00:00Z"
    },
    "checks": [],
    "groups": [],
    "lines": [
      {
        "covered": "8",
        "excess": "0",
        "id": 100,
        "in_progress": "0",
        "line_id": 100,
        "name": "10k pull-up",
        "needs_part": false,
        "on_order": "4",
        "planned": "0",
        "purchase": "fully_ordered",
        "ready": "4",
        "required": "8",
        "status": "in_progress",
        "uncovered": "0"
      }
    ],
    "parts": [],
    "summary": {
      "line_count": 1,
      "status": "in_progress"
    }
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
GET /boms/{id}/checklist

What to do next

Details of GET /boms/{id}/checklist

The same answer as the web What to do next view, in the steps decide, order, place, receive, make, set_aside. decide waits on a judgement (unknown quantity, no part, a proposed substitute, an open question); order lists uncovered purchase units with the preferred listing; place lists each allocation on a planned order (not placed yet, so nothing to receive); receive lists each allocation on a placed, open order with units not yet accepted (an order closed as received or canceled waits on nothing); extra on place and receive items counts units the requirement does not need, such as units still on order for an excluded requirement; make and set_aside list units still to fabricate or to take from stock, salvage, a supplier, or a kit. A line can appear under several steps with its own units. Filters narrow the steps; suppliers and the counts help pick them.

Parameters

id path, required
integer. Record id.
step query
one of decide, order, place, receive, make, set_aside. Only this step.
supplier query
string. Only items from this supplier (order, place, and receive).
group_id query
integer. Only lines in this group and the groups nested in it.
limit query
integer. Items per step (default 200, at most 1000); truncated says a step had more.
200 response
{
  "data": {
    "bom_id": 7,
    "counts": {
      "decide": 0,
      "make": 0,
      "order": 0,
      "receive": 1,
      "set_aside": 0
    },
    "item_count": 1,
    "line_count": 1,
    "steps": [
      {
        "items": [
          {
            "allocation_id": 300,
            "line": {
              "id": 100,
              "name": "10k pull-up",
              "unit": "pcs"
            },
            "note": null,
            "order": {
              "id": 20,
              "status": "ordered",
              "supplier": "DigiKey"
            },
            "order_item_id": 200,
            "quantity": "4",
            "step": "receive",
            "supplier": "DigiKey"
          }
        ],
        "step": "receive"
      }
    ],
    "suppliers": [
      "DigiKey"
    ]
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
422
validation_failed
429
rate_limited

Groups

Functional parts or assemblies inside a BOM, nestable, with a quantity multiplier.

GET /boms/{bom_id}/groups

List groups

Details of GET /boms/{bom_id}/groups

The BOM's groups as a tree (each node has children ), or flat with flat=true . Not paginated.

Parameters

bom_id path, required
integer. Record id.
flat query
boolean. Return a flat list.
200 response
{
  "data": [
    {
      "bom_id": 7,
      "children": [],
      "id": 10,
      "links": {
        "self": "/api/v1/groups/10"
      },
      "lock_version": 1,
      "name": "Electronics",
      "object": "group",
      "parent_id": null,
      "position": 0,
      "quantity": 1
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
422
validation_failed
429
rate_limited
POST /boms/{bom_id}/groups

Create a group

Details of POST /boms/{bom_id}/groups

Adds a group at the end of its parent ( parent_id , null for top level).

Parameters

bom_id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "name": "Power",
  "parent_id": null,
  "quantity": 1
}
201 response
{
  "data": {
    "bom_id": 7,
    "id": 10,
    "links": {
      "self": "/api/v1/groups/10"
    },
    "lock_version": 1,
    "name": "Electronics",
    "object": "group",
    "parent_id": null,
    "position": 0,
    "quantity": 1
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
POST /boms/{bom_id}/groups/reorder

Reorder groups

Details of POST /boms/{bom_id}/groups/reorder

Orders the children of parent_id (null for top level). ordered_ids must list every child exactly once; otherwise validation_failed names the missing, unknown, and duplicate ids.

Parameters

bom_id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "ordered_ids": [
    12,
    10,
    11
  ],
  "parent_id": null
}
200 response
{
  "data": {
    "ordered_ids": [
      12,
      10,
      11
    ]
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
GET /groups/{id}

Get a group

Details of GET /groups/{id}

One group.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "bom_id": 7,
    "id": 10,
    "links": {
      "self": "/api/v1/groups/10"
    },
    "lock_version": 1,
    "name": "Electronics",
    "object": "group",
    "parent_id": null,
    "position": 0,
    "quantity": 1
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
PATCH /groups/{id}

Update a group

Details of PATCH /groups/{id}

Changes name, description, quantity, or parent. Requires the version. A parent inside the group's own subtree is rejected.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Request body
{
  "lock_version": 2,
  "quantity": 4
}
200 response
{
  "data": {
    "bom_id": 7,
    "id": 10,
    "links": {
      "self": "/api/v1/groups/10"
    },
    "lock_version": 1,
    "name": "Electronics",
    "object": "group",
    "parent_id": null,
    "position": 0,
    "quantity": 1
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , bom_archived , bom_trashed
412
precondition_failed
415
unsupported_media_type , request_too_large
422
validation_failed
429
rate_limited
503
busy
DELETE /groups/{id}

Delete a group

Details of DELETE /groups/{id}

Removes a group. lines=move_to_parent (default) moves its lines and subgroups up; lines=delete removes the subtree and soft-deletes its lines.

Parameters

id path, required
integer. Record id.
lines query
one of move_to_parent, delete. What happens to the lines.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.

Answers 204 with no body.

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , bom_archived , bom_trashed
412
precondition_failed
422
validation_failed
429
rate_limited
503
busy
POST /groups/{id}/move

Move a group

Details of POST /groups/{id}/move

Moves the group under parent_id (null for top level) at position (0-based; omitted appends). Rejects cycles.

Parameters

id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "lock_version": 2,
  "parent_id": 10,
  "position": 0
}
200 response
{
  "data": {
    "bom_id": 7,
    "id": 10,
    "links": {
      "self": "/api/v1/groups/10"
    },
    "lock_version": 1,
    "name": "Electronics",
    "object": "group",
    "parent_id": null,
    "position": 0,
    "quantity": 1
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , bom_archived , bom_trashed , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
POST /groups/{id}/merge

Merge a group into another

Details of POST /groups/{id}/merge

Moves the lines and subgroups of this group to the end of target_id and removes this group. The version of this group ( lock_version or If-Match ) and of the target ( target_lock_version ) are checked when sent.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "lock_version": 2,
  "target_id": 11,
  "target_lock_version": 5
}
200 response
{
  "data": {
    "bom_id": 7,
    "id": 10,
    "links": {
      "self": "/api/v1/groups/10"
    },
    "lock_version": 1,
    "name": "Electronics",
    "object": "group",
    "parent_id": null,
    "position": 0,
    "quantity": 1
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , bom_archived , bom_trashed , idempotency_response_not_stored
412
precondition_failed
415
unsupported_media_type , request_too_large
422
validation_failed , same_group , cycle , idempotency_key_reused
429
rate_limited
503
busy

Lines

Requirements of a BOM: quantities, supply method, selected part, bulk edits.

GET /boms/{bom_id}/lines

List lines

Details of GET /boms/{bom_id}/lines

Without limit , after , or sort : every matching line in outline order (assemblies depth-first by position, then top-level lines), unpaginated, at most 2000 ( truncated: true when more exist). With any of them: one page at a time in the sort order (default id , the order for a full sync, in which lines edited or moved between pages are never skipped or repeated). include=breakdown adds each line's quantity breakdown. Filters combine with AND.

Parameters

bom_id path, required
integer. Record id.
include query
one of breakdown. Add each line's breakdown .
group_id query
string. A group id, or top for top-level lines.
include_subgroups query
boolean. With group_id, include nested groups.
status query
one of excluded, unresolved, to_source, in_progress, ready. Line status; comma-separate several.
needs_part query
boolean. Purchase lines with no selected part.
supply query
one of purchase, on_hand, salvaged, fabricated, supplied, kit. Supply method; comma-separate several.
inclusion query
one of required, optional, dnp. Inclusion; comma-separate several.
tags query
string. Lines with any of these comma-separated tags.
category query
string. Exact category.
part_id query
string. Selected part id(s), comma-separated.
search query
string. Matches names, notes, references, tags, attributes, and the selected part.
deleted query
one of exclude, only, include. Soft-deleted lines (default exclude).
sort query
one of id, -id, name, -name, category, -category, quantity, -quantity, inserted_at, -inserted_at, updated_at, -updated_at, position, -position, status, -status, required, -required, uncovered, -uncovered. One field, named as the records show it: name ascending, -name descending. Ties break by id in the same direction. Null values sort after every value ascending and before every value descending. Text sorts by the database collation (linguistic order, mostly ignoring case and accents), not by code point. The default id is the only order that never moves a record; in another order a record whose value changes between pages can move, so it can be missed or repeated. A cursor only works with the sort that wrote it. Without limit , after , or sort (empty values count as absent) the lines come unpaginated in outline order; with any of them and no sort , in id order. name , category , quantity , inserted_at , updated_at , and id sort in the database. The others are computed over the whole build: position (outline order) from the assembly tree, so adding, moving, or reordering an assembly between pages shifts every later line; status (excluded, unresolved, to_source, in_progress, ready), required , and uncovered from the quantity analysis, which runs once per page.
limit query
integer. Page size (default 50, at most 200).
after query
string. Opaque cursor from the previous page's next_cursor . It holds the list, the sort, the direction, and the last record's sort value and id, so the next page starts right after that record. Send it to the same list with the same sort : another sort of that list answers 422 validation_failed with detail code cursor_mismatch , and a cursor of another list, or a changed or invented one, answers 422 validation_failed with detail code invalid . Cursors of id order (the default) never expire and stay valid across releases.
200 response
{
  "data": [
    {
      "attributes": {
        "footprint": "R_0603",
        "value": "10k"
      },
      "bom_id": 7,
      "breakdown": {
        "covered": "8",
        "excess": "0",
        "in_progress": "0",
        "line_id": 100,
        "needs_part": false,
        "on_order": "4",
        "planned": "0",
        "purchase": "fully_ordered",
        "ready": "4",
        "required": "8",
        "status": "in_progress",
        "uncovered": "0"
      },
      "deleted": false,
      "external_links": [],
      "group_id": 10,
      "id": 100,
      "inclusion": "required",
      "links": {
        "alternates": "/api/v1/lines/100/alternates",
        "bom": "/api/v1/boms/7",
        "self": "/api/v1/lines/100"
      },
      "lock_version": 3,
      "name": "10k pull-up",
      "object": "line",
      "part_id": 42,
      "position": 0,
      "quantity": "3",
      "references": [
        "R1",
        "R2",
        "R3"
      ],
      "spares": "2",
      "supply": "purchase",
      "tags": [
        "passive"
      ],
      "unit": "pcs"
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
422
validation_failed
429
rate_limited
POST /boms/{bom_id}/lines

Create a line

Details of POST /boms/{bom_id}/lines

Adds a line at the end of its group. With dry_run=true nothing is written; the response holds the would-be line and its quantity impact under impact .

Parameters

bom_id path, required
integer. Record id.
dry_run query
boolean. Validate and compute the quantity impact without writing. The response has dry_run: true and impact .
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "group_id": 10,
  "name": "M3x8 socket head screw",
  "quantity": "4",
  "references": [
    "H1",
    "H2",
    "H3",
    "H4"
  ],
  "spares": "2",
  "supply": "purchase",
  "unit": "pcs"
}
201 response
{
  "data": {
    "attributes": {
      "footprint": "R_0603",
      "value": "10k"
    },
    "bom_id": 7,
    "deleted": false,
    "external_links": [],
    "group_id": 10,
    "id": 100,
    "inclusion": "required",
    "links": {
      "alternates": "/api/v1/lines/100/alternates",
      "bom": "/api/v1/boms/7",
      "self": "/api/v1/lines/100"
    },
    "lock_version": 3,
    "name": "10k pull-up",
    "object": "line",
    "part_id": 42,
    "position": 0,
    "quantity": "3",
    "references": [
      "R1",
      "R2",
      "R3"
    ],
    "spares": "2",
    "supply": "purchase",
    "tags": [
      "passive"
    ],
    "unit": "pcs"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
POST /boms/{bom_id}/lines/reorder

Reorder lines

Details of POST /boms/{bom_id}/lines/reorder

Orders the lines of one group ( group_id , null for top level). ordered_ids must list every live line of the group exactly once; otherwise validation_failed names the missing, unknown, and duplicate ids.

Parameters

bom_id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "group_id": 10,
  "ordered_ids": [
    101,
    100
  ]
}
200 response
{
  "data": {
    "ordered_ids": [
      12,
      10,
      11
    ]
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
POST /boms/{bom_id}/lines/bulk/preview

Preview a bulk edit

Details of POST /boms/{bom_id}/lines/bulk/preview

Shows per line the changes, validation errors, and required quantity and status before and after, plus the BOM summary before and after. versions maps each line to its lock_version; pass it as expected_versions to the apply. Writes nothing.

Parameters

bom_id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "attrs": {
    "supply": "on_hand"
  },
  "line_ids": [
    100,
    101
  ],
  "operation": "update"
}
200 response
{
  "data": {
    "affected_count": 1,
    "lines": [
      {
        "changes": {
          "supply": [
            "purchase",
            "on_hand"
          ]
        },
        "errors": {},
        "line_id": 100
      }
    ],
    "operation": {
      "update": {
        "supply": "on_hand"
      }
    },
    "valid": true
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , invalid_operation , idempotency_key_reused
429
rate_limited
503
busy
POST /boms/{bom_id}/lines/bulk

Apply a bulk edit

Details of POST /boms/{bom_id}/lines/bulk

Applies the operation to all lines in one transaction, or to none. Send expected_versions (the preview's versions ) and the whole batch fails with conflict , the changed line in error.current , if any of those lines changed since.

Parameters

bom_id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "attrs": {
    "supply": "on_hand"
  },
  "expected_versions": {
    "100": 3
  },
  "line_ids": [
    100,
    101
  ],
  "operation": "update"
}
200 response
{
  "data": {
    "lines": [
      {
        "attributes": {
          "footprint": "R_0603",
          "value": "10k"
        },
        "bom_id": 7,
        "deleted": false,
        "external_links": [],
        "group_id": 10,
        "id": 100,
        "inclusion": "required",
        "links": {
          "alternates": "/api/v1/lines/100/alternates",
          "bom": "/api/v1/boms/7",
          "self": "/api/v1/lines/100"
        },
        "lock_version": 3,
        "name": "10k pull-up",
        "object": "line",
        "part_id": 42,
        "position": 0,
        "quantity": "3",
        "references": [
          "R1",
          "R2",
          "R3"
        ],
        "spares": "2",
        "supply": "purchase",
        "tags": [
          "passive"
        ],
        "unit": "pcs"
      }
    ],
    "preview": {
      "valid": true
    }
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , bom_archived , bom_trashed , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , invalid_operation , idempotency_key_reused
429
rate_limited
503
busy
GET /lines/{id}

Get a line

Details of GET /lines/{id}

One line with its breakdown, selected part and listings, alternates, allocations, and open questions. Soft-deleted lines are returned with deleted: true .

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "allocations": [
      {
        "id": 300,
        "line_id": 100,
        "links": {
          "line": "/api/v1/lines/100",
          "self": "/api/v1/allocations/300"
        },
        "object": "allocation",
        "order_id": 20,
        "order_item_id": 200,
        "quantity": "8",
        "ready_quantity": "0",
        "source": "order"
      }
    ],
    "alternates": [
      {
        "author": {
          "kind": "agent",
          "name": "Claude (sourcing agent)"
        },
        "id": 600,
        "line_id": 100,
        "links": {
          "accept": "/api/v1/alternates/600/accept",
          "self": "/api/v1/alternates/600"
        },
        "object": "alternate",
        "part_id": 43,
        "rationale": "Same footprint, in stock",
        "replaced_part_id": null,
        "status": "proposed",
        "trade_offs": "5% tolerance"
      }
    ],
    "attributes": {
      "footprint": "R_0603",
      "value": "10k"
    },
    "bom_id": 7,
    "breakdown": {
      "covered": "8",
      "excess": "0",
      "in_progress": "0",
      "line_id": 100,
      "needs_part": false,
      "on_order": "4",
      "planned": "0",
      "purchase": "fully_ordered",
      "ready": "4",
      "required": "8",
      "status": "in_progress",
      "uncovered": "0"
    },
    "deleted": false,
    "external_links": [],
    "group_id": 10,
    "id": 100,
    "inclusion": "required",
    "links": {
      "alternates": "/api/v1/lines/100/alternates",
      "bom": "/api/v1/boms/7",
      "self": "/api/v1/lines/100"
    },
    "lock_version": 3,
    "name": "10k pull-up",
    "object": "line",
    "open_questions": [
      {
        "author": {
          "kind": "agent",
          "name": "Claude (sourcing agent)"
        },
        "body": "Is 5% tolerance acceptable here?",
        "bom_id": 7,
        "id": 500,
        "kind": "question",
        "line_id": 100,
        "links": {
          "self": "/api/v1/comments/500"
        },
        "object": "comment",
        "replies": [],
        "resolved": false,
        "target": "line"
      }
    ],
    "part_id": 42,
    "position": 0,
    "quantity": "3",
    "references": [
      "R1",
      "R2",
      "R3"
    ],
    "spares": "2",
    "supply": "purchase",
    "tags": [
      "passive"
    ],
    "unit": "pcs"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
PATCH /lines/{id}

Update a line

Details of PATCH /lines/{id}

Changes any editable field. Requires the version. A new group_id moves the line to the end of that group. With dry_run=true nothing is written and impact shows the quantity change.

Parameters

id path, required
integer. Record id.
dry_run query
boolean. Validate and compute the quantity impact without writing. The response has dry_run: true and impact .
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Request body
{
  "lock_version": 3,
  "quantity": "6"
}
200 response
{
  "data": {
    "attributes": {
      "footprint": "R_0603",
      "value": "10k"
    },
    "bom_id": 7,
    "deleted": false,
    "external_links": [],
    "group_id": 10,
    "id": 100,
    "inclusion": "required",
    "links": {
      "alternates": "/api/v1/lines/100/alternates",
      "bom": "/api/v1/boms/7",
      "self": "/api/v1/lines/100"
    },
    "lock_version": 3,
    "name": "10k pull-up",
    "object": "line",
    "part_id": 42,
    "position": 0,
    "quantity": "3",
    "references": [
      "R1",
      "R2",
      "R3"
    ],
    "spares": "2",
    "supply": "purchase",
    "tags": [
      "passive"
    ],
    "unit": "pcs"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , bom_archived , bom_trashed
412
precondition_failed
415
unsupported_media_type , request_too_large
422
validation_failed
429
rate_limited
503
busy
DELETE /lines/{id}

Delete a line (soft)

Details of DELETE /lines/{id}

Soft-deletes the line; restore it with POST /lines/{id}/restore . Its allocations are kept but become inactive: they cover nothing, take no received units, and free their order item's capacity. Read GET /lines/{id}/deletion-impact first. A stated version is checked. Returns the deleted line.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
200 response
{
  "data": {
    "attributes": {
      "footprint": "R_0603",
      "value": "10k"
    },
    "bom_id": 7,
    "deleted": false,
    "external_links": [],
    "group_id": 10,
    "id": 100,
    "inclusion": "required",
    "links": {
      "alternates": "/api/v1/lines/100/alternates",
      "bom": "/api/v1/boms/7",
      "self": "/api/v1/lines/100"
    },
    "lock_version": 3,
    "name": "10k pull-up",
    "object": "line",
    "part_id": 42,
    "position": 0,
    "quantity": "3",
    "references": [
      "R1",
      "R2",
      "R3"
    ],
    "spares": "2",
    "supply": "purchase",
    "tags": [
      "passive"
    ],
    "unit": "pcs"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , bom_archived , bom_trashed
412
precondition_failed
429
rate_limited
503
busy
POST /lines/{id}/restore

Restore a line

Details of POST /lines/{id}/restore

Restores a soft-deleted line to the end of its group. Its order allocations become active only as far as their items have spare units; reduced or removed allocations are listed in the line.restored event's metadata.allocation_adjustments . A stated version is checked.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
200 response
{
  "data": {
    "attributes": {
      "footprint": "R_0603",
      "value": "10k"
    },
    "bom_id": 7,
    "deleted": false,
    "external_links": [],
    "group_id": 10,
    "id": 100,
    "inclusion": "required",
    "links": {
      "alternates": "/api/v1/lines/100/alternates",
      "bom": "/api/v1/boms/7",
      "self": "/api/v1/lines/100"
    },
    "lock_version": 3,
    "name": "10k pull-up",
    "object": "line",
    "part_id": 42,
    "position": 0,
    "quantity": "3",
    "references": [
      "R1",
      "R2",
      "R3"
    ],
    "spares": "2",
    "supply": "purchase",
    "tags": [
      "passive"
    ],
    "unit": "pcs"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , bom_archived , bom_trashed , idempotency_response_not_stored
412
precondition_failed
422
idempotency_key_reused , validation_failed
429
rate_limited
503
busy
GET /lines/{id}/deletion-impact

What deleting a line affects

Details of GET /lines/{id}/deletion-impact

The active allocations with their order items and orders, and the open questions on the line. Writes nothing.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "object": "line_deletion_impact"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
POST /lines/{id}/duplicate

Duplicate a line

Details of POST /lines/{id}/duplicate

Copies the line after the original (or to another group with group_id ). Body fields override the copy. Allocations, alternates, and the source ref are not copied.

Parameters

id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "group_id": 11
}
201 response
{
  "data": {
    "attributes": {
      "footprint": "R_0603",
      "value": "10k"
    },
    "bom_id": 7,
    "deleted": false,
    "external_links": [],
    "group_id": 10,
    "id": 100,
    "inclusion": "required",
    "links": {
      "alternates": "/api/v1/lines/100/alternates",
      "bom": "/api/v1/boms/7",
      "self": "/api/v1/lines/100"
    },
    "lock_version": 3,
    "name": "10k pull-up",
    "object": "line",
    "part_id": 42,
    "position": 0,
    "quantity": "3",
    "references": [
      "R1",
      "R2",
      "R3"
    ],
    "spares": "2",
    "supply": "purchase",
    "tags": [
      "passive"
    ],
    "unit": "pcs"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
POST /lines/{id}/move

Move a line

Details of POST /lines/{id}/move

Moves the line to group_id (null for top level) at position (0-based; omitted appends).

Parameters

id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "group_id": 11,
  "lock_version": 3,
  "position": 0
}
200 response
{
  "data": {
    "attributes": {
      "footprint": "R_0603",
      "value": "10k"
    },
    "bom_id": 7,
    "deleted": false,
    "external_links": [],
    "group_id": 10,
    "id": 100,
    "inclusion": "required",
    "links": {
      "alternates": "/api/v1/lines/100/alternates",
      "bom": "/api/v1/boms/7",
      "self": "/api/v1/lines/100"
    },
    "lock_version": 3,
    "name": "10k pull-up",
    "object": "line",
    "part_id": 42,
    "position": 0,
    "quantity": "3",
    "references": [
      "R1",
      "R2",
      "R3"
    ],
    "spares": "2",
    "supply": "purchase",
    "tags": [
      "passive"
    ],
    "unit": "pcs"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , bom_archived , bom_trashed , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy

Alternates

Proposed substitutes for a line and their decisions.

GET /lines/{line_id}/alternates

List alternates

Details of GET /lines/{line_id}/alternates

Alternates of a line with candidate and replaced parts.

Parameters

line_id path, required
integer. Record id.
status query
one of proposed, accepted, rejected. Decision filter.
limit query
integer. Page size (default 50, at most 200).
after query
string. Opaque cursor from the previous page's next_cursor . It holds the list, the sort, the direction, and the last record's sort value and id, so the next page starts right after that record. Send it to the same list with the same sort : another sort of that list answers 422 validation_failed with detail code cursor_mismatch , and a cursor of another list, or a changed or invented one, answers 422 validation_failed with detail code invalid . Cursors of id order (the default) never expire and stay valid across releases.
200 response
{
  "data": [
    {
      "author": {
        "kind": "agent",
        "name": "Claude (sourcing agent)"
      },
      "id": 600,
      "line_id": 100,
      "links": {
        "accept": "/api/v1/alternates/600/accept",
        "self": "/api/v1/alternates/600"
      },
      "object": "alternate",
      "part_id": 43,
      "rationale": "Same footprint, in stock",
      "replaced_part_id": null,
      "status": "proposed",
      "trade_offs": "5% tolerance"
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
422
validation_failed
429
rate_limited
POST /lines/{line_id}/alternates

Propose a substitute

Details of POST /lines/{line_id}/alternates

Proposes a candidate part (not the current selection) with rationale and trade-offs. The author is the token.

Parameters

line_id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "part_id": 42,
  "rationale": "Same footprint, in stock at two suppliers",
  "trade_offs": "Tolerance 5% instead of 1%"
}
201 response
{
  "data": {
    "author": {
      "kind": "agent",
      "name": "Claude (sourcing agent)"
    },
    "id": 600,
    "line_id": 100,
    "links": {
      "accept": "/api/v1/alternates/600/accept",
      "self": "/api/v1/alternates/600"
    },
    "object": "alternate",
    "part_id": 43,
    "rationale": "Same footprint, in stock",
    "replaced_part_id": null,
    "status": "proposed",
    "trade_offs": "5% tolerance"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
GET /alternates/{id}

Get an alternate

Details of GET /alternates/{id}

One alternate.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "author": {
      "kind": "agent",
      "name": "Claude (sourcing agent)"
    },
    "id": 600,
    "line_id": 100,
    "links": {
      "accept": "/api/v1/alternates/600/accept",
      "self": "/api/v1/alternates/600"
    },
    "object": "alternate",
    "part_id": 43,
    "rationale": "Same footprint, in stock",
    "replaced_part_id": null,
    "status": "proposed",
    "trade_offs": "5% tolerance"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
GET /alternates/{id}/impact

Impact of accepting

Details of GET /alternates/{id}/impact

The allocations, orders, and receipts tied to the line, and whether accepting needs an allocations decision.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "allocations": [],
    "alternate": {
      "author": {
        "kind": "agent",
        "name": "Claude (sourcing agent)"
      },
      "id": 600,
      "line_id": 100,
      "links": {
        "accept": "/api/v1/alternates/600/accept",
        "self": "/api/v1/alternates/600"
      },
      "object": "alternate",
      "part_id": 43,
      "rationale": "Same footprint, in stock",
      "replaced_part_id": null,
      "status": "proposed",
      "trade_offs": "5% tolerance"
    },
    "orders": [],
    "receipts": [],
    "requires_allocation_decision": false
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
POST /alternates/{id}/accept

Accept an alternate

Details of POST /alternates/{id}/accept

Selects the candidate part on the line and records the replaced part. When the line has active order allocations, send allocations : keep leaves them, release removes them so the units become unallocated on their orders.

Parameters

id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "allocations": "keep",
  "decision_reason": "Footprint and tolerance reviewed"
}
200 response
{
  "data": {
    "author": {
      "kind": "agent",
      "name": "Claude (sourcing agent)"
    },
    "id": 600,
    "line_id": 100,
    "links": {
      "accept": "/api/v1/alternates/600/accept",
      "self": "/api/v1/alternates/600"
    },
    "object": "alternate",
    "part_id": 43,
    "rationale": "Same footprint, in stock",
    "replaced_part_id": null,
    "status": "proposed",
    "trade_offs": "5% tolerance"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , allocation_decision_required , already_decided , bom_archived , bom_trashed , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
POST /alternates/{id}/reject

Reject an alternate

Details of POST /alternates/{id}/reject

Rejects the proposal with an optional reason.

Parameters

id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "decision_reason": "Needs 1% tolerance"
}
200 response
{
  "data": {
    "author": {
      "kind": "agent",
      "name": "Claude (sourcing agent)"
    },
    "id": 600,
    "line_id": 100,
    "links": {
      "accept": "/api/v1/alternates/600/accept",
      "self": "/api/v1/alternates/600"
    },
    "object": "alternate",
    "part_id": 43,
    "rationale": "Same footprint, in stock",
    "replaced_part_id": null,
    "status": "proposed",
    "trade_offs": "5% tolerance"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
already_decided , bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
idempotency_key_reused , validation_failed
429
rate_limited
503
busy

Revisions

Named snapshots of a BOM and comparisons.

GET /boms/{bom_id}/revisions

List revisions

Details of GET /boms/{bom_id}/revisions

Revisions newest first, without snapshots.

Parameters

bom_id path, required
integer. Record id.
limit query
integer. Page size (default 50, at most 200).
after query
string. Opaque cursor from the previous page's next_cursor . It holds the list, the sort, the direction, and the last record's sort value and id, so the next page starts right after that record. Send it to the same list with the same sort : another sort of that list answers 422 validation_failed with detail code cursor_mismatch , and a cursor of another list, or a changed or invented one, answers 422 validation_failed with detail code invalid . Cursors of id order (the default) never expire and stay valid across releases.
200 response
{
  "data": [
    {
      "author": {
        "kind": "user",
        "name": "maker@example.com"
      },
      "bom_id": 7,
      "id": 70,
      "links": {
        "self": "/api/v1/revisions/70"
      },
      "name": "Sent to fab",
      "number": 3,
      "object": "revision"
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
422
validation_failed
429
rate_limited
POST /boms/{bom_id}/revisions

Save a revision

Details of POST /boms/{bom_id}/revisions

Saves a named snapshot with the next per-BOM number.

Parameters

bom_id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "name": "Sent to fab",
  "note": "Gerbers v3"
}
201 response
{
  "data": {
    "author": {
      "kind": "user",
      "name": "maker@example.com"
    },
    "bom_id": 7,
    "id": 70,
    "links": {
      "self": "/api/v1/revisions/70"
    },
    "name": "Sent to fab",
    "number": 3,
    "object": "revision"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
GET /boms/{bom_id}/revisions/compare

Compare versions

Details of GET /boms/{bom_id}/revisions/compare

Added, removed, and modified lines with field-level changes between from and to (revision ids or draft ), plus open orders of removed or modified lines.

Parameters

bom_id path, required
integer. Record id.
from query, required
string. A revision id or draft .
to query, required
string. A revision id or draft .
200 response
{
  "data": {
    "added": [],
    "modified": [
      {
        "changes": {
          "quantity": [
            "2",
            "3"
          ]
        },
        "line_id": 100,
        "name": "10k pull-up"
      }
    ],
    "open_orders": {},
    "removed": [],
    "unchanged_count": 14
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
422
validation_failed
429
rate_limited
GET /boms/{bom_id}/revisions/{id}/restore-impact

What restoring a revision changes

Details of GET /boms/{bom_id}/revisions/{id}/restore-impact

The reconciliation a restore would apply to the draft: lines added, removed, and changed, and the order allocations that would be reduced or removed. Writes nothing.

Parameters

bom_id path, required
integer. Record id.
id path, required
integer. Record id.
200 response
{
  "data": {
    "object": "revision_restore_impact"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
POST /boms/{bom_id}/revisions/{id}/restore

Restore a revision

Details of POST /boms/{bom_id}/revisions/{id}/restore

Makes the draft match the revision. Restored lines take back order-item capacity only as far as it is free; allocation_adjustments lists every allocation reduced or removed. Read the restore impact first.

Parameters

bom_id path, required
integer. Record id.
id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
200 response
{
  "data": {
    "object": "revision_restore"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
422
idempotency_key_reused , validation_failed
429
rate_limited
503
busy
GET /revisions/{id}

Get a revision

Details of GET /revisions/{id}

One revision with its snapshot.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "author": {
      "kind": "user",
      "name": "maker@example.com"
    },
    "bom_id": 7,
    "id": 70,
    "links": {
      "self": "/api/v1/revisions/70"
    },
    "name": "Sent to fab",
    "number": 3,
    "object": "revision",
    "snapshot": {
      "bom": {
        "name": "Desk weather station"
      },
      "format": 1,
      "groups": [],
      "lines": []
    }
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
GET /revisions/{id}/export.json

Export a revision as JSON

Details of GET /revisions/{id}/export.json

The revision's snapshot in the Maker BOM format (version 1) with the private records and revision sections. It carries no computed quantities or orders. POST /imports accepts it, so a revision can seed a new BOM.

Parameters

id path, required
integer. Record id.
200 response
{
  "assemblies": [],
  "build": {
    "title": "Desk weather station"
  },
  "format": "builderbom",
  "parts": [],
  "requirements": [],
  "version": 1
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
GET /revisions/{id}/export.csv

Export a revision as CSV

Details of GET /revisions/{id}/export.csv

One row per line of the revision: line id, group path, name, quantity, unit, spares, inclusion, supply, references, category, tags, part, notes, source ref.

Parameters

id path, required
integer. Record id.
200 response
group,name,quantity,unit,required,status
Power,M3x8 screw,4,pcs,14,to_source

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited

Sharing

A shared build: a read-only snapshot of a build in the Maker BOM format at an unlisted public link. To copy someone else's shared build, fetch its document ( /b/{slug}/builderbom.json ) and post it to POST /imports .

GET /boms/{id}/share

Read the shared build

Details of GET /boms/{id}/share

The build's shared build: its public link, who can open it, the access code (for a link with a code), the revision it shows, and changed_since_shared (the build changed after the snapshot, so PUT would update it). A taken-down shared build answers with stop_reason: taken_down and takedown_reason . 404 when the build is not shared.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "access": "code",
    "access_code": "K7QM-4XRT-9WPA-ZH3C",
    "author_name": "Sam",
    "bom_id": 7,
    "changed_since_shared": false,
    "description": "Indoor climate logger",
    "id": 3,
    "include_notes": true,
    "include_prices": false,
    "license": null,
    "links": {
      "bom": "/api/v1/boms/7",
      "csv": "https://example.com/b/k3m9xq2v7tw4hp6rz5ya2bnc/builderbom.csv",
      "document": "https://example.com/b/k3m9xq2v7tw4hp6rz5ya2bnc/builderbom.json",
      "page": "https://example.com/b/k3m9xq2v7tw4hp6rz5ya2bnc",
      "self": "/api/v1/boms/7/share"
    },
    "lock_version": 1,
    "object": "shared_build",
    "requirement_count": 18,
    "revision_id": 70,
    "revision_label": "Revision 4: Shared copy",
    "shared_at": "2026-11-21T10:00:00Z",
    "slug": "k3m9xq2v7tw4hp6rz5ya2bnc",
    "stop_reason": null,
    "stopped_at": null,
    "takedown_reason": null,
    "title": "Desk weather station",
    "url": "https://example.com/b/k3m9xq2v7tw4hp6rz5ya2bnc"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
POST /boms/{id}/share

Share a build

Details of POST /boms/{id}/share

Saves a revision (or uses revision_id ), builds the Maker BOM document from it once, and publishes it at a new unlisted link. Anyone who can open the link can download and copy the build. With access: code the app generates an access code; it is in the response. Notes are included by default and prices are not. An archived build can be shared only from an existing revision.

Parameters

id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "access": "link",
  "author_name": "Sam",
  "include_notes": true,
  "include_prices": false,
  "title": "Desk weather station"
}
201 response
{
  "data": {
    "access": "code",
    "access_code": "K7QM-4XRT-9WPA-ZH3C",
    "author_name": "Sam",
    "bom_id": 7,
    "changed_since_shared": false,
    "description": "Indoor climate logger",
    "id": 3,
    "include_notes": true,
    "include_prices": false,
    "license": null,
    "links": {
      "bom": "/api/v1/boms/7",
      "csv": "https://example.com/b/k3m9xq2v7tw4hp6rz5ya2bnc/builderbom.csv",
      "document": "https://example.com/b/k3m9xq2v7tw4hp6rz5ya2bnc/builderbom.json",
      "page": "https://example.com/b/k3m9xq2v7tw4hp6rz5ya2bnc",
      "self": "/api/v1/boms/7/share"
    },
    "lock_version": 1,
    "object": "shared_build",
    "requirement_count": 18,
    "revision_id": 70,
    "revision_label": "Revision 4: Shared copy",
    "shared_at": "2026-11-21T10:00:00Z",
    "slug": "k3m9xq2v7tw4hp6rz5ya2bnc",
    "stop_reason": null,
    "stopped_at": null,
    "takedown_reason": null,
    "title": "Desk weather station",
    "url": "https://example.com/b/k3m9xq2v7tw4hp6rz5ya2bnc"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
already_shared , taken_down , account_held , bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , revision_not_found , idempotency_key_reused
429
rate_limited
503
busy
PUT /boms/{id}/share

Update the shared copy

Details of PUT /boms/{id}/share

Takes a new snapshot of the build (a new revision, or revision_id ) at the same link, and applies any settings sent. With snapshot: false only the settings change. Switching access between link and code takes effect at once and ends every visitor's access; switching to code generates a code. Requires lock_version or If-Match .

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Request body
{
  "include_prices": true,
  "lock_version": 1
}
200 response
{
  "data": {
    "access": "code",
    "access_code": "K7QM-4XRT-9WPA-ZH3C",
    "author_name": "Sam",
    "bom_id": 7,
    "changed_since_shared": false,
    "description": "Indoor climate logger",
    "id": 3,
    "include_notes": true,
    "include_prices": false,
    "license": null,
    "links": {
      "bom": "/api/v1/boms/7",
      "csv": "https://example.com/b/k3m9xq2v7tw4hp6rz5ya2bnc/builderbom.csv",
      "document": "https://example.com/b/k3m9xq2v7tw4hp6rz5ya2bnc/builderbom.json",
      "page": "https://example.com/b/k3m9xq2v7tw4hp6rz5ya2bnc",
      "self": "/api/v1/boms/7/share"
    },
    "lock_version": 1,
    "object": "shared_build",
    "requirement_count": 18,
    "revision_id": 70,
    "revision_label": "Revision 4: Shared copy",
    "shared_at": "2026-11-21T10:00:00Z",
    "slug": "k3m9xq2v7tw4hp6rz5ya2bnc",
    "stop_reason": null,
    "stopped_at": null,
    "takedown_reason": null,
    "title": "Desk weather station",
    "url": "https://example.com/b/k3m9xq2v7tw4hp6rz5ya2bnc"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , not_shared , bom_archived , bom_trashed
412
precondition_failed
415
unsupported_media_type , request_too_large
422
validation_failed , revision_not_found
429
rate_limited
503
busy
DELETE /boms/{id}/share

Stop sharing

Details of DELETE /boms/{id}/share

Removes the stored document and the access code; the link answers 410 Gone from now on (a shared cache may serve the old page for up to 60 seconds). A stated version is checked when given.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.

Answers 204 with no body.

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , not_shared
412
precondition_failed
429
rate_limited
503
busy
POST /boms/{id}/share/code

Replace the access code

Details of POST /boms/{id}/share/code

Generates a new access code for a link with a code. The old code stops working at once and every visitor must enter the new one. A stated version is checked when given.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
200 response
{
  "data": {
    "access": "code",
    "access_code": "K7QM-4XRT-9WPA-ZH3C",
    "author_name": "Sam",
    "bom_id": 7,
    "changed_since_shared": false,
    "description": "Indoor climate logger",
    "id": 3,
    "include_notes": true,
    "include_prices": false,
    "license": null,
    "links": {
      "bom": "/api/v1/boms/7",
      "csv": "https://example.com/b/k3m9xq2v7tw4hp6rz5ya2bnc/builderbom.csv",
      "document": "https://example.com/b/k3m9xq2v7tw4hp6rz5ya2bnc/builderbom.json",
      "page": "https://example.com/b/k3m9xq2v7tw4hp6rz5ya2bnc",
      "self": "/api/v1/boms/7/share"
    },
    "lock_version": 1,
    "object": "shared_build",
    "requirement_count": 18,
    "revision_id": 70,
    "revision_label": "Revision 4: Shared copy",
    "shared_at": "2026-11-21T10:00:00Z",
    "slug": "k3m9xq2v7tw4hp6rz5ya2bnc",
    "stop_reason": null,
    "stopped_at": null,
    "takedown_reason": null,
    "title": "Desk weather station",
    "url": "https://example.com/b/k3m9xq2v7tw4hp6rz5ya2bnc"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , not_shared , no_code , idempotency_response_not_stored
412
precondition_failed
422
idempotency_key_reused , validation_failed
429
rate_limited
503
busy

Parts

The reusable parts catalog.

GET /parts

List parts

Details of GET /parts

Parts with their listings, one page at a time in the sort order (default id ).

Parameters

search query
string. Matches name, manufacturer, MPN, internal ref, description, category, and SKUs.
category query
string. Exact category.
retired query
one of exclude, include, only. Retired parts (default exclude).
sort query
one of id, -id, name, -name, category, -category, inserted_at, -inserted_at, updated_at, -updated_at. One field, named as the records show it: name ascending, -name descending. Ties break by id in the same direction. Null values sort after every value ascending and before every value descending. Text sorts by the database collation (linguistic order, mostly ignoring case and accents), not by code point. The default id is the only order that never moves a record; in another order a record whose value changes between pages can move, so it can be missed or repeated. A cursor only works with the sort that wrote it.
limit query
integer. Page size (default 50, at most 200).
after query
string. Opaque cursor from the previous page's next_cursor . It holds the list, the sort, the direction, and the last record's sort value and id, so the next page starts right after that record. Send it to the same list with the same sort : another sort of that list answers 422 validation_failed with detail code cursor_mismatch , and a cursor of another list, or a changed or invented one, answers 422 validation_failed with detail code invalid . Cursors of id order (the default) never expire and stay valid across releases.
200 response
{
  "data": [
    {
      "attributes": {
        "tolerance": "1%"
      },
      "external_links": [],
      "id": 42,
      "links": {
        "listings": "/api/v1/parts/42/listings",
        "self": "/api/v1/parts/42"
      },
      "listings": [
        {
          "confidence": "verified",
          "currency": "USD",
          "id": 50,
          "links": {
            "self": "/api/v1/listings/50"
          },
          "object": "listing",
          "pack_size": "100",
          "part_id": 42,
          "preferred": true,
          "price": "1.2",
          "sku": "311-10.0KHRCT-ND",
          "stale": false,
          "supplier": "DigiKey"
        }
      ],
      "lock_version": 1,
      "manufacturer": "Yageo",
      "mpn": "RC0603FR-0710KL",
      "name": "10k resistor 0603",
      "object": "part",
      "retired": false
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
422
validation_failed
429
rate_limited
POST /parts

Create a part

Details of POST /parts

Adds a part to the catalog.

Parameters

Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "attributes": {
    "package": "0603",
    "tolerance": "1%"
  },
  "manufacturer": "Yageo",
  "mpn": "RC0603FR-0710KL",
  "name": "10k resistor 0603"
}
201 response
{
  "data": {
    "attributes": {
      "tolerance": "1%"
    },
    "external_links": [],
    "id": 42,
    "links": {
      "listings": "/api/v1/parts/42/listings",
      "self": "/api/v1/parts/42"
    },
    "listings": [
      {
        "confidence": "verified",
        "currency": "USD",
        "id": 50,
        "links": {
          "self": "/api/v1/listings/50"
        },
        "object": "listing",
        "pack_size": "100",
        "part_id": 42,
        "preferred": true,
        "price": "1.2",
        "sku": "311-10.0KHRCT-ND",
        "stale": false,
        "supplier": "DigiKey"
      }
    ],
    "lock_version": 1,
    "manufacturer": "Yageo",
    "mpn": "RC0603FR-0710KL",
    "name": "10k resistor 0603",
    "object": "part",
    "retired": false
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
409
idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
GET /parts/{id}

Get a part

Details of GET /parts/{id}

One part with its listings.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "attributes": {
      "tolerance": "1%"
    },
    "external_links": [],
    "id": 42,
    "links": {
      "listings": "/api/v1/parts/42/listings",
      "self": "/api/v1/parts/42"
    },
    "listings": [
      {
        "confidence": "verified",
        "currency": "USD",
        "id": 50,
        "links": {
          "self": "/api/v1/listings/50"
        },
        "object": "listing",
        "pack_size": "100",
        "part_id": 42,
        "preferred": true,
        "price": "1.2",
        "sku": "311-10.0KHRCT-ND",
        "stale": false,
        "supplier": "DigiKey"
      }
    ],
    "lock_version": 1,
    "manufacturer": "Yageo",
    "mpn": "RC0603FR-0710KL",
    "name": "10k resistor 0603",
    "object": "part",
    "retired": false
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
PATCH /parts/{id}

Update a part

Details of PATCH /parts/{id}

Changes part fields. Requires the version.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Request body
{
  "description": "Thick film, 1%",
  "lock_version": 1
}
200 response
{
  "data": {
    "attributes": {
      "tolerance": "1%"
    },
    "external_links": [],
    "id": 42,
    "links": {
      "listings": "/api/v1/parts/42/listings",
      "self": "/api/v1/parts/42"
    },
    "listings": [
      {
        "confidence": "verified",
        "currency": "USD",
        "id": 50,
        "links": {
          "self": "/api/v1/listings/50"
        },
        "object": "listing",
        "pack_size": "100",
        "part_id": 42,
        "preferred": true,
        "price": "1.2",
        "sku": "311-10.0KHRCT-ND",
        "stale": false,
        "supplier": "DigiKey"
      }
    ],
    "lock_version": 1,
    "manufacturer": "Yageo",
    "mpn": "RC0603FR-0710KL",
    "name": "10k resistor 0603",
    "object": "part",
    "retired": false
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress
412
precondition_failed
415
unsupported_media_type , request_too_large
422
validation_failed
429
rate_limited
503
busy
DELETE /parts/{id}

Delete a part

Details of DELETE /parts/{id}

Deletes a part no line, alternate, or order item references; otherwise in_use (retire or merge instead).

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.

Answers 204 with no body.

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , in_use
412
precondition_failed
429
rate_limited
503
busy
POST /parts/{id}/retire

Retire a part

Details of POST /parts/{id}/retire

Hides the part from default listings; existing lines and orders keep it. A stated version is checked.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
200 response
{
  "data": {
    "attributes": {
      "tolerance": "1%"
    },
    "external_links": [],
    "id": 42,
    "links": {
      "listings": "/api/v1/parts/42/listings",
      "self": "/api/v1/parts/42"
    },
    "listings": [
      {
        "confidence": "verified",
        "currency": "USD",
        "id": 50,
        "links": {
          "self": "/api/v1/listings/50"
        },
        "object": "listing",
        "pack_size": "100",
        "part_id": 42,
        "preferred": true,
        "price": "1.2",
        "sku": "311-10.0KHRCT-ND",
        "stale": false,
        "supplier": "DigiKey"
      }
    ],
    "lock_version": 1,
    "manufacturer": "Yageo",
    "mpn": "RC0603FR-0710KL",
    "name": "10k resistor 0603",
    "object": "part",
    "retired": false
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , idempotency_response_not_stored
412
precondition_failed
422
idempotency_key_reused , validation_failed
429
rate_limited
503
busy
POST /parts/{id}/unretire

Unretire a part

Details of POST /parts/{id}/unretire

Brings a retired part back. A stated version is checked.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
200 response
{
  "data": {
    "attributes": {
      "tolerance": "1%"
    },
    "external_links": [],
    "id": 42,
    "links": {
      "listings": "/api/v1/parts/42/listings",
      "self": "/api/v1/parts/42"
    },
    "listings": [
      {
        "confidence": "verified",
        "currency": "USD",
        "id": 50,
        "links": {
          "self": "/api/v1/listings/50"
        },
        "object": "listing",
        "pack_size": "100",
        "part_id": 42,
        "preferred": true,
        "price": "1.2",
        "sku": "311-10.0KHRCT-ND",
        "stale": false,
        "supplier": "DigiKey"
      }
    ],
    "lock_version": 1,
    "manufacturer": "Yageo",
    "mpn": "RC0603FR-0710KL",
    "name": "10k resistor 0603",
    "object": "part",
    "retired": false
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , idempotency_response_not_stored
412
precondition_failed
422
idempotency_key_reused , validation_failed
429
rate_limited
503
busy
GET /parts/duplicates

Likely duplicate parts

Details of GET /parts/duplicates

Groups of parts that share a normalized MPN, or a name and manufacturer when they have no MPN. Nothing is merged; merge with POST /parts/{id}/merge . Not paginated.

200 response
{
  "data": [
    {
      "object": "duplicate_group"
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
429
rate_limited
GET /parts/{id}/where-used

Where a part is used

Details of GET /parts/{id}/where-used

Lines (with their BOM), alternates, and order items that reference the part.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "alternates": [],
    "bom_count": 1,
    "lines": [
      {
        "attributes": {
          "footprint": "R_0603",
          "value": "10k"
        },
        "bom_id": 7,
        "deleted": false,
        "external_links": [],
        "group_id": 10,
        "id": 100,
        "inclusion": "required",
        "links": {
          "alternates": "/api/v1/lines/100/alternates",
          "bom": "/api/v1/boms/7",
          "self": "/api/v1/lines/100"
        },
        "lock_version": 3,
        "name": "10k pull-up",
        "object": "line",
        "part_id": 42,
        "position": 0,
        "quantity": "3",
        "references": [
          "R1",
          "R2",
          "R3"
        ],
        "spares": "2",
        "supply": "purchase",
        "tags": [
          "passive"
        ],
        "unit": "pcs"
      }
    ],
    "order_items": [
      {
        "allocations": [
          {
            "id": 300,
            "line_id": 100,
            "links": {
              "line": "/api/v1/lines/100",
              "self": "/api/v1/allocations/300"
            },
            "object": "allocation",
            "order_id": 20,
            "order_item_id": 200,
            "quantity": "8",
            "ready_quantity": "0",
            "source": "order"
          }
        ],
        "description": "10k resistor 0603 (Yageo RC0603FR-0710KL)",
        "id": 200,
        "links": {
          "self": "/api/v1/order-items/200"
        },
        "lock_version": 1,
        "object": "order_item",
        "order_id": 20,
        "part_id": 42,
        "quantity": "10",
        "receipts": [
          {
            "exception": "none",
            "id": 400,
            "links": {
              "self": "/api/v1/receipts/400"
            },
            "object": "receipt",
            "order_item_id": 200,
            "quantity_accepted": "4",
            "quantity_received": "4",
            "received_on": "2026-11-21",
            "replaces_id": null,
            "voided": false
          }
        ],
        "status": "active",
        "unit": "pcs",
        "unit_price": "0.12"
      }
    ],
    "part_id": 42
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
POST /parts/{id}/merge

Merge a part into this one

Details of POST /parts/{id}/merge

Re-points lines, listings, order items, and alternates of merged_part_id to this part and deletes the merged part. Lines of archived and trashed BOMs are re-pointed too. The version of this part ( lock_version or If-Match ) and of the merged part ( merged_lock_version ) are checked when sent.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "lock_version": 2,
  "merged_lock_version": 1,
  "merged_part_id": 43
}
200 response
{
  "data": {
    "attributes": {
      "tolerance": "1%"
    },
    "external_links": [],
    "id": 42,
    "links": {
      "listings": "/api/v1/parts/42/listings",
      "self": "/api/v1/parts/42"
    },
    "listings": [
      {
        "confidence": "verified",
        "currency": "USD",
        "id": 50,
        "links": {
          "self": "/api/v1/listings/50"
        },
        "object": "listing",
        "pack_size": "100",
        "part_id": 42,
        "preferred": true,
        "price": "1.2",
        "sku": "311-10.0KHRCT-ND",
        "stale": false,
        "supplier": "DigiKey"
      }
    ],
    "lock_version": 1,
    "manufacturer": "Yageo",
    "mpn": "RC0603FR-0710KL",
    "name": "10k resistor 0603",
    "object": "part",
    "retired": false
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , idempotency_response_not_stored
412
precondition_failed
415
unsupported_media_type , request_too_large
422
validation_failed , same_part , idempotency_key_reused
429
rate_limited
503
busy

Listings

Supplier listings with pack size, price, and freshness.

GET /parts/{part_id}/listings

List listings

Details of GET /parts/{part_id}/listings

Listings of a part, preferred first.

Parameters

part_id path, required
integer. Record id.
limit query
integer. Page size (default 50, at most 200).
after query
string. Opaque cursor from the previous page's next_cursor . It holds the list, the sort, the direction, and the last record's sort value and id, so the next page starts right after that record. Send it to the same list with the same sort : another sort of that list answers 422 validation_failed with detail code cursor_mismatch , and a cursor of another list, or a changed or invented one, answers 422 validation_failed with detail code invalid . Cursors of id order (the default) never expire and stay valid across releases.
200 response
{
  "data": [
    {
      "confidence": "verified",
      "currency": "USD",
      "id": 50,
      "links": {
        "self": "/api/v1/listings/50"
      },
      "object": "listing",
      "pack_size": "100",
      "part_id": 42,
      "preferred": true,
      "price": "1.2",
      "sku": "311-10.0KHRCT-ND",
      "stale": false,
      "supplier": "DigiKey"
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
422
validation_failed
429
rate_limited
POST /parts/{part_id}/listings

Add a listing

Details of POST /parts/{part_id}/listings

Adds a supplier listing. The first listing of a part becomes preferred; preferred: true makes a new one preferred.

Parameters

part_id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "confidence": "verified",
  "currency": "USD",
  "observed_at": "2026-11-20T10:00:00Z",
  "pack_size": "100",
  "price": "1.20",
  "sku": "311-10.0KHRCT-ND",
  "supplier": "DigiKey"
}
201 response
{
  "data": {
    "confidence": "verified",
    "currency": "USD",
    "id": 50,
    "links": {
      "self": "/api/v1/listings/50"
    },
    "object": "listing",
    "pack_size": "100",
    "part_id": 42,
    "preferred": true,
    "price": "1.2",
    "sku": "311-10.0KHRCT-ND",
    "stale": false,
    "supplier": "DigiKey"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
GET /listings/{id}

Get a listing

Details of GET /listings/{id}

One listing.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "confidence": "verified",
    "currency": "USD",
    "id": 50,
    "links": {
      "self": "/api/v1/listings/50"
    },
    "object": "listing",
    "pack_size": "100",
    "part_id": 42,
    "preferred": true,
    "price": "1.2",
    "sku": "311-10.0KHRCT-ND",
    "stale": false,
    "supplier": "DigiKey"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
PATCH /listings/{id}

Update a listing

Details of PATCH /listings/{id}

Changes listing fields. Listings are not versioned; the last write wins.

Parameters

id path, required
integer. Record id.
Request body
{
  "observed_at": "2026-11-21T09:00:00Z",
  "price": "1.05"
}
200 response
{
  "data": {
    "confidence": "verified",
    "currency": "USD",
    "id": 50,
    "links": {
      "self": "/api/v1/listings/50"
    },
    "object": "listing",
    "pack_size": "100",
    "part_id": 42,
    "preferred": true,
    "price": "1.2",
    "sku": "311-10.0KHRCT-ND",
    "stale": false,
    "supplier": "DigiKey"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
415
unsupported_media_type , request_too_large
422
validation_failed
429
rate_limited
503
busy
DELETE /listings/{id}

Delete a listing

Details of DELETE /listings/{id}

Deletes the listing. When it was preferred, the oldest remaining listing becomes preferred.

Parameters

id path, required
integer. Record id.

Answers 204 with no body.

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
503
busy
POST /listings/{id}/preferred

Make a listing preferred

Details of POST /listings/{id}/preferred

Makes the listing the single preferred listing of its part. Estimates use the preferred listing.

Parameters

id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
200 response
{
  "data": {
    "confidence": "verified",
    "currency": "USD",
    "id": 50,
    "links": {
      "self": "/api/v1/listings/50"
    },
    "object": "listing",
    "pack_size": "100",
    "part_id": 42,
    "preferred": true,
    "price": "1.2",
    "sku": "311-10.0KHRCT-ND",
    "stale": false,
    "supplier": "DigiKey"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
idempotency_in_progress , idempotency_response_not_stored
422
idempotency_key_reused , validation_failed
429
rate_limited
503
busy

Orders

Purchase orders that can cover lines of several BOMs.

GET /orders

List orders

Details of GET /orders

Orders with their items, one page at a time in the sort order (default id ). sort=-inserted_at lists the newest first.

Parameters

status query
one of planned, ordered, shipped, received, canceled. Status; comma-separate several.
supplier query
string. Case-insensitive supplier match.
bom_id query
integer. Orders with allocations to lines of this BOM.
search query
string. Matches supplier, reference, notes, and item descriptions.
sort query
one of id, -id, supplier, -supplier, inserted_at, -inserted_at, updated_at, -updated_at. One field, named as the records show it: name ascending, -name descending. Ties break by id in the same direction. Null values sort after every value ascending and before every value descending. Text sorts by the database collation (linguistic order, mostly ignoring case and accents), not by code point. The default id is the only order that never moves a record; in another order a record whose value changes between pages can move, so it can be missed or repeated. A cursor only works with the sort that wrote it.
limit query
integer. Page size (default 50, at most 200).
after query
string. Opaque cursor from the previous page's next_cursor . It holds the list, the sort, the direction, and the last record's sort value and id, so the next page starts right after that record. Send it to the same list with the same sort : another sort of that list answers 422 validation_failed with detail code cursor_mismatch , and a cursor of another list, or a changed or invented one, answers 422 validation_failed with detail code invalid . Cursors of id order (the default) never expire and stay valid across releases.
200 response
{
  "data": [
    {
      "currency": "USD",
      "id": 20,
      "items": [
        {
          "allocations": [
            {
              "id": 300,
              "line_id": 100,
              "links": {
                "line": "/api/v1/lines/100",
                "self": "/api/v1/allocations/300"
              },
              "object": "allocation",
              "order_id": 20,
              "order_item_id": 200,
              "quantity": "8",
              "ready_quantity": "0",
              "source": "order"
            }
          ],
          "description": "10k resistor 0603 (Yageo RC0603FR-0710KL)",
          "id": 200,
          "links": {
            "self": "/api/v1/order-items/200"
          },
          "lock_version": 1,
          "object": "order_item",
          "order_id": 20,
          "part_id": 42,
          "quantity": "10",
          "receipts": [
            {
              "exception": "none",
              "id": 400,
              "links": {
                "self": "/api/v1/receipts/400"
              },
              "object": "receipt",
              "order_item_id": 200,
              "quantity_accepted": "4",
              "quantity_received": "4",
              "received_on": "2026-11-21",
              "replaces_id": null,
              "voided": false
            }
          ],
          "status": "active",
          "unit": "pcs",
          "unit_price": "0.12"
        }
      ],
      "links": {
        "self": "/api/v1/orders/20"
      },
      "lock_version": 2,
      "object": "order",
      "reference": "DK-12345",
      "status": "ordered",
      "supplier": "DigiKey"
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
422
validation_failed
429
rate_limited
POST /orders

Create an order

Details of POST /orders

Creates an order, optionally with items , each with allocations to BOM lines, all in one transaction. Use an Idempotency-Key so a retry cannot create a second order.

Parameters

Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "items": [
    {
      "allocations": [
        {
          "line_id": 100,
          "quantity": "9"
        }
      ],
      "part_id": 42,
      "quantity": "10",
      "unit_price": "0.12"
    }
  ],
  "reference": "DK-12345",
  "status": "ordered",
  "supplier": "DigiKey"
}
201 response
{
  "data": {
    "currency": "USD",
    "id": 20,
    "items": [
      {
        "allocations": [
          {
            "id": 300,
            "line_id": 100,
            "links": {
              "line": "/api/v1/lines/100",
              "self": "/api/v1/allocations/300"
            },
            "object": "allocation",
            "order_id": 20,
            "order_item_id": 200,
            "quantity": "8",
            "ready_quantity": "0",
            "source": "order"
          }
        ],
        "description": "10k resistor 0603 (Yageo RC0603FR-0710KL)",
        "id": 200,
        "links": {
          "self": "/api/v1/order-items/200"
        },
        "lock_version": 1,
        "object": "order_item",
        "order_id": 20,
        "part_id": 42,
        "quantity": "10",
        "receipts": [
          {
            "exception": "none",
            "id": 400,
            "links": {
              "self": "/api/v1/receipts/400"
            },
            "object": "receipt",
            "order_item_id": 200,
            "quantity_accepted": "4",
            "quantity_received": "4",
            "received_on": "2026-11-21",
            "replaces_id": null,
            "voided": false
          }
        ],
        "status": "active",
        "unit": "pcs",
        "unit_price": "0.12"
      }
    ],
    "links": {
      "self": "/api/v1/orders/20"
    },
    "lock_version": 2,
    "object": "order",
    "reference": "DK-12345",
    "status": "ordered",
    "summary": {
      "total": {
        "USD": "1.2"
      }
    },
    "supplier": "DigiKey"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
409
bom_trashed , idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
POST /orders/order-lines

Order BOM lines

Details of POST /orders/order-lines

Records an order for lines in one step: order_id (existing) or order (new), and entries of {line_id, quantity} . Lines selecting the same part in the same unit share one item with one allocation per line. A canceled order refuses new lines ( order_canceled ); a deleted line is refused ( line_deleted ). An entry without unit_price is priced per unit from the line's preferred listing when it has one; the event lists those items under priced_from_listing .

Parameters

Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "entries": [
    {
      "line_id": 100,
      "quantity": "10",
      "unit_price": "0.12"
    }
  ],
  "order": {
    "status": "ordered",
    "supplier": "DigiKey"
  }
}
200 response
{
  "data": {
    "id": 20,
    "object": "order"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
order_canceled , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , no_lines , line_deleted , idempotency_key_reused
429
rate_limited
503
busy
GET /orders/{id}/cancel-impact

What canceling an order changes

Details of GET /orders/{id}/cancel-impact

Per line, the units that stop being covered ( stops , not yet received) and the units that stay ready ( stays_ready , already accepted), with totals. Read it before POST /orders/{id}/cancel . Writes nothing.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "lines": [
      {
        "bom_id": 7,
        "bom_name": "Desk weather station",
        "line_id": 100,
        "line_name": "10k pull-up",
        "stays_ready": "4",
        "stops": "6",
        "unit": "pcs"
      }
    ],
    "stays_ready": "4",
    "stops": "6"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
GET /orders/{id}

Get an order

Details of GET /orders/{id}

One order with items, allocations, receipts, and the computed summary.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "currency": "USD",
    "id": 20,
    "items": [
      {
        "allocations": [
          {
            "id": 300,
            "line_id": 100,
            "links": {
              "line": "/api/v1/lines/100",
              "self": "/api/v1/allocations/300"
            },
            "object": "allocation",
            "order_id": 20,
            "order_item_id": 200,
            "quantity": "8",
            "ready_quantity": "0",
            "source": "order"
          }
        ],
        "description": "10k resistor 0603 (Yageo RC0603FR-0710KL)",
        "id": 200,
        "links": {
          "self": "/api/v1/order-items/200"
        },
        "lock_version": 1,
        "object": "order_item",
        "order_id": 20,
        "part_id": 42,
        "quantity": "10",
        "receipts": [
          {
            "exception": "none",
            "id": 400,
            "links": {
              "self": "/api/v1/receipts/400"
            },
            "object": "receipt",
            "order_item_id": 200,
            "quantity_accepted": "4",
            "quantity_received": "4",
            "received_on": "2026-11-21",
            "replaces_id": null,
            "voided": false
          }
        ],
        "status": "active",
        "unit": "pcs",
        "unit_price": "0.12"
      }
    ],
    "links": {
      "self": "/api/v1/orders/20"
    },
    "lock_version": 2,
    "object": "order",
    "reference": "DK-12345",
    "status": "ordered",
    "summary": {
      "total": {
        "USD": "1.2"
      }
    },
    "supplier": "DigiKey"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
PATCH /orders/{id}

Update an order

Details of PATCH /orders/{id}

Changes order fields. Requires the version. Status canceled or received closes the order: units not yet received go back to uncovered and accepted units stay ready. Reopening it (status ordered or shipped ) puts the rest on order again.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Request body
{
  "lock_version": 2,
  "status": "shipped"
}
200 response
{
  "data": {
    "currency": "USD",
    "id": 20,
    "items": [
      {
        "allocations": [
          {
            "id": 300,
            "line_id": 100,
            "links": {
              "line": "/api/v1/lines/100",
              "self": "/api/v1/allocations/300"
            },
            "object": "allocation",
            "order_id": 20,
            "order_item_id": 200,
            "quantity": "8",
            "ready_quantity": "0",
            "source": "order"
          }
        ],
        "description": "10k resistor 0603 (Yageo RC0603FR-0710KL)",
        "id": 200,
        "links": {
          "self": "/api/v1/order-items/200"
        },
        "lock_version": 1,
        "object": "order_item",
        "order_id": 20,
        "part_id": 42,
        "quantity": "10",
        "receipts": [
          {
            "exception": "none",
            "id": 400,
            "links": {
              "self": "/api/v1/receipts/400"
            },
            "object": "receipt",
            "order_item_id": 200,
            "quantity_accepted": "4",
            "quantity_received": "4",
            "received_on": "2026-11-21",
            "replaces_id": null,
            "voided": false
          }
        ],
        "status": "active",
        "unit": "pcs",
        "unit_price": "0.12"
      }
    ],
    "links": {
      "self": "/api/v1/orders/20"
    },
    "lock_version": 2,
    "object": "order",
    "reference": "DK-12345",
    "status": "ordered",
    "summary": {
      "total": {
        "USD": "1.2"
      }
    },
    "supplier": "DigiKey"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress
412
precondition_failed
415
unsupported_media_type , request_too_large
422
validation_failed
429
rate_limited
503
busy
DELETE /orders/{id}

Delete an order

Details of DELETE /orders/{id}

Deletes an order with no receipts; otherwise has_receipts (cancel instead).

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.

Answers 204 with no body.

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , has_receipts
412
precondition_failed
429
rate_limited
503
busy
POST /orders/{id}/cancel

Cancel an order

Details of POST /orders/{id}/cancel

Cancels the order. Units not yet received go back to uncovered; units already accepted on a receipt stay ready. A stated version is checked.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
200 response
{
  "data": {
    "currency": "USD",
    "id": 20,
    "items": [
      {
        "allocations": [
          {
            "id": 300,
            "line_id": 100,
            "links": {
              "line": "/api/v1/lines/100",
              "self": "/api/v1/allocations/300"
            },
            "object": "allocation",
            "order_id": 20,
            "order_item_id": 200,
            "quantity": "8",
            "ready_quantity": "0",
            "source": "order"
          }
        ],
        "description": "10k resistor 0603 (Yageo RC0603FR-0710KL)",
        "id": 200,
        "links": {
          "self": "/api/v1/order-items/200"
        },
        "lock_version": 1,
        "object": "order_item",
        "order_id": 20,
        "part_id": 42,
        "quantity": "10",
        "receipts": [
          {
            "exception": "none",
            "id": 400,
            "links": {
              "self": "/api/v1/receipts/400"
            },
            "object": "receipt",
            "order_item_id": 200,
            "quantity_accepted": "4",
            "quantity_received": "4",
            "received_on": "2026-11-21",
            "replaces_id": null,
            "voided": false
          }
        ],
        "status": "active",
        "unit": "pcs",
        "unit_price": "0.12"
      }
    ],
    "links": {
      "self": "/api/v1/orders/20"
    },
    "lock_version": 2,
    "object": "order",
    "reference": "DK-12345",
    "status": "ordered",
    "summary": {
      "total": {
        "USD": "1.2"
      }
    },
    "supplier": "DigiKey"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , idempotency_response_not_stored
412
precondition_failed
422
idempotency_key_reused , validation_failed
429
rate_limited
503
busy

Order items

Items of an order; quantity counts usable units.

POST /orders/{order_id}/items

Add an order item

Details of POST /orders/{order_id}/items

Adds an item. quantity counts usable units; unit_price is per unit. Without a description the part's label is recorded.

Parameters

order_id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "part_id": 42,
  "quantity": "10",
  "unit": "pcs",
  "unit_price": "0.12"
}
201 response
{
  "data": {
    "allocations": [
      {
        "id": 300,
        "line_id": 100,
        "links": {
          "line": "/api/v1/lines/100",
          "self": "/api/v1/allocations/300"
        },
        "object": "allocation",
        "order_id": 20,
        "order_item_id": 200,
        "quantity": "8",
        "ready_quantity": "0",
        "source": "order"
      }
    ],
    "description": "10k resistor 0603 (Yageo RC0603FR-0710KL)",
    "id": 200,
    "links": {
      "self": "/api/v1/order-items/200"
    },
    "lock_version": 1,
    "object": "order_item",
    "order_id": 20,
    "part_id": 42,
    "quantity": "10",
    "receipts": [
      {
        "exception": "none",
        "id": 400,
        "links": {
          "self": "/api/v1/receipts/400"
        },
        "object": "receipt",
        "order_item_id": 200,
        "quantity_accepted": "4",
        "quantity_received": "4",
        "received_on": "2026-11-21",
        "replaces_id": null,
        "voided": false
      }
    ],
    "status": "active",
    "unit": "pcs",
    "unit_price": "0.12"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
GET /order-items/allocatable

Order items with free units

Details of GET /order-items/allocatable

Items whose units are not all allocated yet, each with its order and summary ( summary.unallocated is the free capacity), to pick an order_item_id for an allocation. Not paginated: limit caps the result.

Parameters

search query
string. Matches supplier, reference, and item description.
part_id query
integer. Only items of this part.
include_received query
boolean. Include items already fully received.
limit query
integer. Page size (default 50, at most 200).
200 response
{
  "data": [
    {
      "item": {
        "id": 200,
        "object": "order_item",
        "quantity": "10"
      },
      "order": {
        "id": 20,
        "object": "order",
        "supplier": "DigiKey"
      },
      "summary": {
        "unallocated": "2"
      }
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
422
validation_failed
429
rate_limited
GET /order-items/{id}/cancel-impact

What canceling an order item changes

Details of GET /order-items/{id}/cancel-impact

Per line, the units that stop being covered and the units that stay ready. Read it before POST /order-items/{id}/cancel . Writes nothing.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "lines": [
      {
        "bom_id": 7,
        "bom_name": "Desk weather station",
        "line_id": 100,
        "line_name": "10k pull-up",
        "stays_ready": "4",
        "stops": "6",
        "unit": "pcs"
      }
    ],
    "stays_ready": "4",
    "stops": "6"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
GET /order-items/{id}

Get an order item

Details of GET /order-items/{id}

One item with part, allocations, and receipts.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "allocations": [
      {
        "id": 300,
        "line_id": 100,
        "links": {
          "line": "/api/v1/lines/100",
          "self": "/api/v1/allocations/300"
        },
        "object": "allocation",
        "order_id": 20,
        "order_item_id": 200,
        "quantity": "8",
        "ready_quantity": "0",
        "source": "order"
      }
    ],
    "description": "10k resistor 0603 (Yageo RC0603FR-0710KL)",
    "id": 200,
    "links": {
      "self": "/api/v1/order-items/200"
    },
    "lock_version": 1,
    "object": "order_item",
    "order_id": 20,
    "part_id": 42,
    "quantity": "10",
    "receipts": [
      {
        "exception": "none",
        "id": 400,
        "links": {
          "self": "/api/v1/receipts/400"
        },
        "object": "receipt",
        "order_item_id": 200,
        "quantity_accepted": "4",
        "quantity_received": "4",
        "received_on": "2026-11-21",
        "replaces_id": null,
        "voided": false
      }
    ],
    "status": "active",
    "unit": "pcs",
    "unit_price": "0.12"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
PATCH /order-items/{id}

Update an order item

Details of PATCH /order-items/{id}

Changes item fields. Requires the version. The quantity cannot drop below the allocated units.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Request body
{
  "lock_version": 1,
  "quantity": "12"
}
200 response
{
  "data": {
    "allocations": [
      {
        "id": 300,
        "line_id": 100,
        "links": {
          "line": "/api/v1/lines/100",
          "self": "/api/v1/allocations/300"
        },
        "object": "allocation",
        "order_id": 20,
        "order_item_id": 200,
        "quantity": "8",
        "ready_quantity": "0",
        "source": "order"
      }
    ],
    "description": "10k resistor 0603 (Yageo RC0603FR-0710KL)",
    "id": 200,
    "links": {
      "self": "/api/v1/order-items/200"
    },
    "lock_version": 1,
    "object": "order_item",
    "order_id": 20,
    "part_id": 42,
    "quantity": "10",
    "receipts": [
      {
        "exception": "none",
        "id": 400,
        "links": {
          "self": "/api/v1/receipts/400"
        },
        "object": "receipt",
        "order_item_id": 200,
        "quantity_accepted": "4",
        "quantity_received": "4",
        "received_on": "2026-11-21",
        "replaces_id": null,
        "voided": false
      }
    ],
    "status": "active",
    "unit": "pcs",
    "unit_price": "0.12"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress
412
precondition_failed
415
unsupported_media_type , request_too_large
422
validation_failed
429
rate_limited
503
busy
DELETE /order-items/{id}

Delete an order item

Details of DELETE /order-items/{id}

Deletes an item with no receipts, with its allocations.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.

Answers 204 with no body.

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , has_receipts
412
precondition_failed
429
rate_limited
503
busy
POST /order-items/{id}/cancel

Cancel an order item

Details of POST /order-items/{id}/cancel

Cancels the item. Units not yet received go back to uncovered; accepted units stay ready.

Parameters

id path, required
integer. Record id.
If-Match header
string. The record version this write is based on (the ETag you read). Alternative to lock_version in the body; the body wins when both are sent.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
200 response
{
  "data": {
    "allocations": [
      {
        "id": 300,
        "line_id": 100,
        "links": {
          "line": "/api/v1/lines/100",
          "self": "/api/v1/allocations/300"
        },
        "object": "allocation",
        "order_id": 20,
        "order_item_id": 200,
        "quantity": "8",
        "ready_quantity": "0",
        "source": "order"
      }
    ],
    "description": "10k resistor 0603 (Yageo RC0603FR-0710KL)",
    "id": 200,
    "links": {
      "self": "/api/v1/order-items/200"
    },
    "lock_version": 1,
    "object": "order_item",
    "order_id": 20,
    "part_id": 42,
    "quantity": "10",
    "receipts": [
      {
        "exception": "none",
        "id": 400,
        "links": {
          "self": "/api/v1/receipts/400"
        },
        "object": "receipt",
        "order_item_id": 200,
        "quantity_accepted": "4",
        "quantity_received": "4",
        "received_on": "2026-11-21",
        "replaces_id": null,
        "voided": false
      }
    ],
    "status": "active",
    "unit": "pcs",
    "unit_price": "0.12"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , idempotency_response_not_stored
412
precondition_failed
422
idempotency_key_reused , validation_failed
429
rate_limited
503
busy

Allocations

Units assigned to cover a line, from an order item or another source.

GET /lines/{line_id}/allocations

Allocations of a line

Details of GET /lines/{line_id}/allocations

Allocations covering the line, oldest first.

Parameters

line_id path, required
integer. Record id.
limit query
integer. Page size (default 50, at most 200).
after query
string. Opaque cursor from the previous page's next_cursor . It holds the list, the sort, the direction, and the last record's sort value and id, so the next page starts right after that record. Send it to the same list with the same sort : another sort of that list answers 422 validation_failed with detail code cursor_mismatch , and a cursor of another list, or a changed or invented one, answers 422 validation_failed with detail code invalid . Cursors of id order (the default) never expire and stay valid across releases.
200 response
{
  "data": [
    {
      "id": 300,
      "line_id": 100,
      "links": {
        "line": "/api/v1/lines/100",
        "self": "/api/v1/allocations/300"
      },
      "object": "allocation",
      "order_id": 20,
      "order_item_id": 200,
      "quantity": "8",
      "ready_quantity": "0",
      "source": "order"
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
422
validation_failed
429
rate_limited
POST /lines/{line_id}/allocations

Allocate units

Details of POST /lines/{line_id}/allocations

Assigns units to the line. source: order needs order_item_id and cannot exceed the item's unallocated units ( over_allocation ). Other sources ( stock , salvaged , fabricated , supplied , kit ) track readiness with ready_quantity .

Parameters

line_id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "quantity": "5",
  "ready_quantity": "5",
  "source": "stock"
}
201 response
{
  "data": {
    "id": 300,
    "line_id": 100,
    "links": {
      "line": "/api/v1/lines/100",
      "self": "/api/v1/allocations/300"
    },
    "object": "allocation",
    "order_id": 20,
    "order_item_id": 200,
    "quantity": "8",
    "ready_quantity": "0",
    "source": "order"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_trashed , idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
GET /order-items/{order_item_id}/allocations

Allocations of an order item

Details of GET /order-items/{order_item_id}/allocations

Allocations drawing on the item.

Parameters

order_item_id path, required
integer. Record id.
limit query
integer. Page size (default 50, at most 200).
after query
string. Opaque cursor from the previous page's next_cursor . It holds the list, the sort, the direction, and the last record's sort value and id, so the next page starts right after that record. Send it to the same list with the same sort : another sort of that list answers 422 validation_failed with detail code cursor_mismatch , and a cursor of another list, or a changed or invented one, answers 422 validation_failed with detail code invalid . Cursors of id order (the default) never expire and stay valid across releases.
200 response
{
  "data": [
    {
      "id": 300,
      "line_id": 100,
      "links": {
        "line": "/api/v1/lines/100",
        "self": "/api/v1/allocations/300"
      },
      "object": "allocation",
      "order_id": 20,
      "order_item_id": 200,
      "quantity": "8",
      "ready_quantity": "0",
      "source": "order"
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
422
validation_failed
429
rate_limited
GET /allocations/{id}

Get an allocation

Details of GET /allocations/{id}

One allocation.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "id": 300,
    "line_id": 100,
    "links": {
      "line": "/api/v1/lines/100",
      "self": "/api/v1/allocations/300"
    },
    "object": "allocation",
    "order_id": 20,
    "order_item_id": 200,
    "quantity": "8",
    "ready_quantity": "0",
    "source": "order"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
PATCH /allocations/{id}

Update an allocation

Details of PATCH /allocations/{id}

Changes quantity, ready quantity, or note. Recording progress on a non-order allocation is an update of ready_quantity . Not versioned.

Parameters

id path, required
integer. Record id.
Request body
{
  "ready_quantity": "3"
}
200 response
{
  "data": {
    "id": 300,
    "line_id": 100,
    "links": {
      "line": "/api/v1/lines/100",
      "self": "/api/v1/allocations/300"
    },
    "object": "allocation",
    "order_id": 20,
    "order_item_id": 200,
    "quantity": "8",
    "ready_quantity": "0",
    "source": "order"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_trashed
415
unsupported_media_type , request_too_large
422
validation_failed
429
rate_limited
503
busy
DELETE /allocations/{id}

Remove an allocation

Details of DELETE /allocations/{id}

Removes the allocation; the units become uncovered on the line and unallocated on the item.

Parameters

id path, required
integer. Record id.

Answers 204 with no body.

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_trashed
429
rate_limited
503
busy

Receipts

What arrived; corrections void a receipt and add a replacement.

POST /orders/{order_id}/receipts

Record receipts for an order

Details of POST /orders/{order_id}/receipts

Records several receipts of one order in one transaction, all or nothing: receipts of {order_item_id, quantity_received, quantity_accepted?, received_on?, exception?, note?} . An entry for an item of another order is refused. Errors name the entry, such as receipts[1].quantity_received .

Parameters

order_id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "receipts": [
    {
      "order_item_id": 200,
      "quantity_received": "4"
    },
    {
      "exception": "damaged",
      "order_item_id": 201,
      "quantity_accepted": "1",
      "quantity_received": "2"
    }
  ]
}
201 response
{
  "data": [
    {
      "exception": "none",
      "id": 400,
      "links": {
        "self": "/api/v1/receipts/400"
      },
      "object": "receipt",
      "order_item_id": 200,
      "quantity_accepted": "4",
      "quantity_received": "4",
      "received_on": "2026-11-21",
      "replaces_id": null,
      "voided": false
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
GET /order-items/{order_item_id}/receipts

List receipts

Details of GET /order-items/{order_item_id}/receipts

Receipts of the item, voided ones included unless include_voided=false .

Parameters

order_item_id path, required
integer. Record id.
include_voided query
boolean. Include voided receipts (default true).
limit query
integer. Page size (default 50, at most 200).
after query
string. Opaque cursor from the previous page's next_cursor . It holds the list, the sort, the direction, and the last record's sort value and id, so the next page starts right after that record. Send it to the same list with the same sort : another sort of that list answers 422 validation_failed with detail code cursor_mismatch , and a cursor of another list, or a changed or invented one, answers 422 validation_failed with detail code invalid . Cursors of id order (the default) never expire and stay valid across releases.
200 response
{
  "data": [
    {
      "exception": "none",
      "id": 400,
      "links": {
        "self": "/api/v1/receipts/400"
      },
      "object": "receipt",
      "order_item_id": 200,
      "quantity_accepted": "4",
      "quantity_received": "4",
      "received_on": "2026-11-21",
      "replaces_id": null,
      "voided": false
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
422
validation_failed
429
rate_limited
POST /order-items/{order_item_id}/receipts

Record a receipt

Details of POST /order-items/{order_item_id}/receipts

Records what arrived. quantity_accepted defaults to quantity_received ; accepted units make allocations ready, first in first out.

Parameters

order_item_id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "quantity_accepted": "4",
  "quantity_received": "4",
  "received_on": "2026-11-21"
}
201 response
{
  "data": {
    "exception": "none",
    "id": 400,
    "links": {
      "self": "/api/v1/receipts/400"
    },
    "object": "receipt",
    "order_item_id": 200,
    "quantity_accepted": "4",
    "quantity_received": "4",
    "received_on": "2026-11-21",
    "replaces_id": null,
    "voided": false
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
GET /receipts/{id}

Get a receipt

Details of GET /receipts/{id}

One receipt.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "exception": "none",
    "id": 400,
    "links": {
      "self": "/api/v1/receipts/400"
    },
    "object": "receipt",
    "order_item_id": 200,
    "quantity_accepted": "4",
    "quantity_received": "4",
    "received_on": "2026-11-21",
    "replaces_id": null,
    "voided": false
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
POST /receipts/{id}/void

Void a receipt

Details of POST /receipts/{id}/void

Voids the receipt (it stays in history) and, with replacement , records the corrected receipt.

Parameters

id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "replacement": {
    "exception": "damaged",
    "quantity_accepted": "3",
    "quantity_received": "4"
  }
}
200 response
{
  "data": {
    "replacement": {
      "exception": "none",
      "id": 401,
      "links": {
        "self": "/api/v1/receipts/400"
      },
      "object": "receipt",
      "order_item_id": 200,
      "quantity_accepted": "4",
      "quantity_received": "4",
      "received_on": "2026-11-21",
      "replaces_id": 400,
      "voided": false
    },
    "voided": {
      "exception": "none",
      "id": 400,
      "links": {
        "self": "/api/v1/receipts/400"
      },
      "object": "receipt",
      "order_item_id": 200,
      "quantity_accepted": "4",
      "quantity_received": "4",
      "received_on": "2026-11-21",
      "replaces_id": null,
      "voided": true
    }
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
already_voided , idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy

Comments

Notes and questions on BOMs, groups, lines, and orders.

GET /boms/{id}/questions

Open questions

Details of GET /boms/{id}/questions

Unresolved question threads of the BOM, oldest first, with the line or group they concern.

Parameters

id path, required
integer. Record id.
limit query
integer. Page size (default 50, at most 200).
after query
string. Opaque cursor from the previous page's next_cursor . It holds the list, the sort, the direction, and the last record's sort value and id, so the next page starts right after that record. Send it to the same list with the same sort : another sort of that list answers 422 validation_failed with detail code cursor_mismatch , and a cursor of another list, or a changed or invented one, answers 422 validation_failed with detail code invalid . Cursors of id order (the default) never expire and stay valid across releases.
200 response
{
  "data": [
    {
      "author": {
        "kind": "agent",
        "name": "Claude (sourcing agent)"
      },
      "body": "Is 5% tolerance acceptable here?",
      "bom_id": 7,
      "id": 500,
      "kind": "question",
      "line_id": 100,
      "links": {
        "self": "/api/v1/comments/500"
      },
      "object": "comment",
      "replies": [],
      "resolved": false,
      "target": "line"
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
422
validation_failed
429
rate_limited
GET /comments

List comments

Details of GET /comments

Thread roots oldest first, with replies. Filter by target and state.

Parameters

bom_id query
integer. Comments anywhere in this BOM.
group_id query
integer. Comments on this group.
line_id query
integer. Comments on this line.
order_id query
integer. Comments on this order.
target query
one of bom. With bom_id, only comments on the BOM itself.
kind query
one of note, question. Kind.
resolved query
boolean. Thread state.
limit query
integer. Page size (default 50, at most 200).
after query
string. Opaque cursor from the previous page's next_cursor . It holds the list, the sort, the direction, and the last record's sort value and id, so the next page starts right after that record. Send it to the same list with the same sort : another sort of that list answers 422 validation_failed with detail code cursor_mismatch , and a cursor of another list, or a changed or invented one, answers 422 validation_failed with detail code invalid . Cursors of id order (the default) never expire and stay valid across releases.
200 response
{
  "data": [
    {
      "author": {
        "kind": "agent",
        "name": "Claude (sourcing agent)"
      },
      "body": "Is 5% tolerance acceptable here?",
      "bom_id": 7,
      "id": 500,
      "kind": "question",
      "line_id": 100,
      "links": {
        "self": "/api/v1/comments/500"
      },
      "object": "comment",
      "replies": [],
      "resolved": false,
      "target": "line"
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
422
validation_failed
429
rate_limited
POST /comments

Comment or ask a question

Details of POST /comments

Starts a thread on a BOM, group, line, or order ( bom_id , group_id , line_id , or order_id ). kind: question makes it an open question until resolved.

Parameters

Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "body": "Is 5% tolerance acceptable here?",
  "kind": "question",
  "line_id": 100
}
201 response
{
  "data": {
    "author": {
      "kind": "agent",
      "name": "Claude (sourcing agent)"
    },
    "body": "Is 5% tolerance acceptable here?",
    "bom_id": 7,
    "id": 500,
    "kind": "question",
    "line_id": 100,
    "links": {
      "self": "/api/v1/comments/500"
    },
    "object": "comment",
    "replies": [],
    "resolved": false,
    "target": "line"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , no_target , idempotency_key_reused
429
rate_limited
503
busy
GET /comments/{id}

Get a comment

Details of GET /comments/{id}

One comment with its replies.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "author": {
      "kind": "agent",
      "name": "Claude (sourcing agent)"
    },
    "body": "Is 5% tolerance acceptable here?",
    "bom_id": 7,
    "id": 500,
    "kind": "question",
    "line_id": 100,
    "links": {
      "self": "/api/v1/comments/500"
    },
    "object": "comment",
    "replies": [],
    "resolved": false,
    "target": "line"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
PATCH /comments/{id}

Edit a comment

Details of PATCH /comments/{id}

Edits the body (or kind) and stamps edited_at .

Parameters

id path, required
integer. Record id.
Request body
{
  "body": "Is 5% tolerance acceptable for R3?"
}
200 response
{
  "data": {
    "author": {
      "kind": "agent",
      "name": "Claude (sourcing agent)"
    },
    "body": "Is 5% tolerance acceptable here?",
    "bom_id": 7,
    "id": 500,
    "kind": "question",
    "line_id": 100,
    "links": {
      "self": "/api/v1/comments/500"
    },
    "object": "comment",
    "replies": [],
    "resolved": false,
    "target": "line"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_archived , bom_trashed
415
unsupported_media_type , request_too_large
422
validation_failed
429
rate_limited
503
busy
DELETE /comments/{id}

Delete a comment

Details of DELETE /comments/{id}

Deletes the comment and, for a thread root, its replies.

Parameters

id path, required
integer. Record id.

Answers 204 with no body.

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_archived , bom_trashed
429
rate_limited
503
busy
POST /comments/{id}/replies

Reply

Details of POST /comments/{id}/replies

Replies to the thread (a reply to a reply attaches to the root).

Parameters

id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "body": "Yes, it is a pull-up."
}
201 response
{
  "data": {
    "author": {
      "kind": "agent",
      "name": "Claude (sourcing agent)"
    },
    "body": "Is 5% tolerance acceptable here?",
    "bom_id": 7,
    "id": 500,
    "kind": "question",
    "line_id": 100,
    "links": {
      "self": "/api/v1/comments/500"
    },
    "object": "comment",
    "replies": [],
    "resolved": false,
    "target": "line"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
POST /comments/{id}/resolve

Resolve a thread

Details of POST /comments/{id}/resolve

Resolves the thread and records who resolved it.

Parameters

id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
200 response
{
  "data": {
    "author": {
      "kind": "agent",
      "name": "Claude (sourcing agent)"
    },
    "body": "Is 5% tolerance acceptable here?",
    "bom_id": 7,
    "id": 500,
    "kind": "question",
    "line_id": 100,
    "links": {
      "self": "/api/v1/comments/500"
    },
    "object": "comment",
    "replies": [],
    "resolved": false,
    "target": "line"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
422
idempotency_key_reused , validation_failed
429
rate_limited
503
busy
POST /comments/{id}/reopen

Reopen a thread

Details of POST /comments/{id}/reopen

Reopens a resolved thread.

Parameters

id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
200 response
{
  "data": {
    "author": {
      "kind": "agent",
      "name": "Claude (sourcing agent)"
    },
    "body": "Is 5% tolerance acceptable here?",
    "bom_id": 7,
    "id": 500,
    "kind": "question",
    "line_id": 100,
    "links": {
      "self": "/api/v1/comments/500"
    },
    "object": "comment",
    "replies": [],
    "resolved": false,
    "target": "line"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
422
idempotency_key_reused , validation_failed
429
rate_limited
503
busy

Suppliers

The supplier directory: published suppliers to shop at, and suggestions for the review queue. Maker BOM never fetches a supplier's site or looks up prices; the agent does the shopping.

GET /suppliers

List published suppliers

Details of GET /suppliers

The supplier directory: suppliers an admin reviewed and published, one page at a time in the sort order (default id ). Maker BOM never fetches a supplier's site and does not look up prices or stock; search the supplier yourself with search_url_template and follow agent_notes . Ratings are 1 to 5 or null, and 5 is best for the buyer on every criterion, so price_rating 5 means low prices. No average is returned. review_stale is true when the entry was last reviewed more than 365 days ago.

Parameters

category query
one of electronic_components, boards_and_modules, connectors_and_cable, batteries_and_power, motors_and_motion, hardware_and_fasteners, raw_materials, printing_supplies, tools_and_equipment, pcb_fabrication, custom_fabrication, kits, surplus_and_salvage. A category slug from GET /suppliers/categories .
kind query
string. One kind, several separated by commas, or the parameter repeated: distributor, manufacturer, retailer, marketplace, surplus, service.
search query
string. Case-insensitive substring of name, host, summary, description, best for, ships from, ships to, or currencies.
sort query
one of id, -id, name, -name, price_rating, -price_rating, ease_rating, -ease_rating, availability_rating, -availability_rating, variety_rating, -variety_rating, reviewed_at, -reviewed_at, published_at, -published_at. One field, named as the records show it: name ascending, -name descending. Ties break by id in the same direction. Null values sort after every value ascending and before every value descending. Text sorts by the database collation (linguistic order, mostly ignoring case and accents), not by code point. The default id is the only order that never moves a record; in another order a record whose value changes between pages can move, so it can be missed or repeated. A cursor only works with the sort that wrote it. Exception: the four ratings and reviewed_at put a supplier without a value last in both directions, so sort=-price_rating lists the lowest prices first and the unrated suppliers after them.
limit query
integer. Page size (default 50, at most 200).
after query
string. Opaque cursor from the previous page's next_cursor . It holds the list, the sort, the direction, and the last record's sort value and id, so the next page starts right after that record. Send it to the same list with the same sort : another sort of that list answers 422 validation_failed with detail code cursor_mismatch , and a cursor of another list, or a changed or invented one, answers 422 validation_failed with detail code invalid . Cursors of id order (the default) never expire and stay valid across releases.
200 response
{
  "data": [
    {
      "object": "supplier"
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
422
validation_failed
429
rate_limited
GET /suppliers/categories

Supplier categories and kinds

Details of GET /suppliers/categories

The fixed category and kind lists of the directory, with labels. Not paginated.

200 response
{
  "data": {
    "object": "supplier_categories"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
429
rate_limited
GET /suppliers/{id}

Get a supplier

Details of GET /suppliers/{id}

One published supplier. A supplier that is waiting for review, rejected, or retired answers 404.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "object": "supplier"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
POST /supplier-suggestions

Suggest a supplier

Details of POST /supplier-suggestions

Proposes a supplier for the admin's review queue. The host of url (lowercased, without www. , port, or path) identifies the supplier, so the same site always lands on the same entry. outcome says what happened: queued (a new queue entry), reason_added (the host was waiting; this account's reason was added), already_suggested (this account suggested it before; its reason was replaced), already_published (it is in the directory; nothing was recorded, and supplier is the directory entry), or not_listed (reviewed before and rejected or retired; the reason is recorded for the admin and the status stays). An account may make a limited number of new suggestions in any 24 hours (20 by default); past that the answer is 429 suggestion_limit and nothing is recorded. That answer carries Retry-After and error.retry_after (seconds) and error.retry_at : the moment the oldest counted suggestion leaves the 24-hour window. It carries no X-RateLimit-* headers, because the request-rate window does not apply.

Parameters

Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "categories": [
    "electronic_components"
  ],
  "name": "Tayda Electronics",
  "reason": "Cheap passives and pots, ships single units worldwide.",
  "url": "https://www.taydaelectronics.com/"
}
200 response
{
  "data": {
    "object": "supplier_suggestion_result"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
409
idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited , suggestion_limit
503
busy
GET /supplier-suggestions

List your supplier suggestions

Details of GET /supplier-suggestions

This account's own suggestions (from the maker and every agent token of the account) in id order, each with its supplier's status. supplier.status_reason is set while the supplier is rejected or retired. Other accounts' suggestions are never listed.

Parameters

limit query
integer. Page size (default 50, at most 200).
after query
string. Opaque cursor from the previous page's next_cursor . It holds the list, the sort, the direction, and the last record's sort value and id, so the next page starts right after that record. Send it to the same list with the same sort : another sort of that list answers 422 validation_failed with detail code cursor_mismatch , and a cursor of another list, or a changed or invented one, answers 422 validation_failed with detail code invalid . Cursors of id order (the default) never expire and stay valid across releases.
200 response
{
  "data": [
    {
      "object": "supplier_suggestion"
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
422
validation_failed
429
rate_limited

Activity

Change feed and display history.

GET /boms/{id}/activity

BOM history

Details of GET /boms/{id}/activity

Display history of the BOM, newest first. Page with before set to the previous next_cursor .

Parameters

id path, required
integer. Record id.
before query
integer. Only events older than this event id.
line_id query
integer. Only events about this line.
limit query
integer. Page size (default 50, at most 200).
200 response
{
  "data": [
    {
      "action": "line.updated",
      "actor": {
        "api_token_id": 3,
        "kind": "agent",
        "name": "Claude (sourcing agent)"
      },
      "bom_id": 7,
      "bom_ids": [
        7
      ],
      "changes": {
        "quantity": [
          "2",
          "3"
        ]
      },
      "cursor": "9001",
      "id": 9001,
      "metadata": {},
      "object": "event",
      "occurred_at": "2026-11-21T08:00:00Z",
      "subject": {
        "id": 100,
        "type": "line"
      },
      "summary": "Updated requirement 10k pull-up"
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
422
validation_failed
429
rate_limited
GET /events

Change feed

Details of GET /events

Events after the cursor after , oldest first. Store next_cursor and poll with it; it equals the sent cursor when nothing is new. has_more says another page is ready.

Parameters

after query
string. Cursor: an event id (default 0, the beginning).
bom_id query
integer. Only events about this BOM, including order events covering its lines.
limit query
integer. Page size (default 50, at most 200).
200 response
{
  "data": [
    {
      "action": "line.updated",
      "actor": {
        "api_token_id": 3,
        "kind": "agent",
        "name": "Claude (sourcing agent)"
      },
      "bom_id": 7,
      "bom_ids": [
        7
      ],
      "changes": {
        "quantity": [
          "2",
          "3"
        ]
      },
      "cursor": "9001",
      "id": 9001,
      "metadata": {},
      "object": "event",
      "occurred_at": "2026-11-21T08:00:00Z",
      "subject": {
        "id": 100,
        "type": "line"
      },
      "summary": "Updated requirement 10k pull-up"
    }
  ],
  "next_cursor": null
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
422
validation_failed
429
rate_limited
GET /events/{id}

Get an event

Details of GET /events/{id}

One event of the account.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "action": "line.updated",
    "actor": {
      "api_token_id": 3,
      "kind": "agent",
      "name": "Claude (sourcing agent)"
    },
    "bom_id": 7,
    "bom_ids": [
      7
    ],
    "changes": {
      "quantity": [
        "2",
        "3"
      ]
    },
    "cursor": "9001",
    "id": 9001,
    "metadata": {},
    "object": "event",
    "occurred_at": "2026-11-21T08:00:00Z",
    "subject": {
      "id": 100,
      "type": "line"
    },
    "summary": "Updated requirement 10k pull-up"
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
GET /events/{id}/undo

Can this change be undone

Details of GET /events/{id}/undo

Says without writing whether POST /events/{id}/undo would succeed now. reason is not_undoable for a kind of change without an undo and changed_since when the record no longer holds what the event left.

Parameters

id path, required
integer. Record id.
200 response
{
  "data": {
    "event_id": 9001,
    "reason": null,
    "undoable": true
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
POST /events/undo-check

Can these changes be undone

Details of POST /events/undo-check

Checks up to 100 events at once without writing: event_ids in, results keyed by event id out, each {undoable, reason} . Unknown ids and ids of other accounts report not_found .

Parameters

Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "event_ids": [
    9001,
    9002
  ]
}
200 response
{
  "data": {
    "results": {
      "9001": {
        "reason": null,
        "undoable": true
      },
      "9002": {
        "reason": "changed_since",
        "undoable": false
      }
    }
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
409
idempotency_in_progress , idempotency_response_not_stored
415
unsupported_media_type , request_too_large
422
validation_failed , idempotency_key_reused
429
rate_limited
503
busy
POST /events/{id}/undo

Undo a change

Details of POST /events/{id}/undo

Reverses one recorded change, such as your own mistake: updates get their old values back (lockable records at their current version), a created line is removed, a deleted line restored, a created allocation removed, a recorded receipt voided. Allowed only while the record still holds what the event left; otherwise changed_since . The undo is recorded as a new event by your token and the original stays in history.

Parameters

id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
200 response
{
  "data": {
    "event_id": 9001,
    "record": {
      "id": 100,
      "object": "line",
      "quantity": "2"
    }
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
conflict , idempotency_in_progress , not_undoable , changed_since , bom_archived , bom_trashed , already_voided , idempotency_response_not_stored
422
idempotency_key_reused , validation_failed
429
rate_limited
503
busy

Import and export

CSV, TSV, and JSON import with preview; CSV and JSON export; order list.

GET /boms/{id}/export.json

Export as JSON

Details of GET /boms/{id}/export.json

The build in the Maker BOM format ( format: builderbom , version: 1 , schema at /schemas/builderbom/v1.json , documented at /docs/format ): the shared sections plus the private records and status sections, and orders and comments when asked. It re-imports through POST /imports ; re-importing into the same build matches its lines.

Parameters

id path, required
integer. Record id.
include_orders query
boolean. Add each line's allocations.
include_comments query
boolean. Add the BOM's comments.
200 response
{
  "assemblies": [],
  "build": {
    "title": "Desk weather station"
  },
  "format": "builderbom",
  "parts": [],
  "requirements": [],
  "version": 1
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
422
validation_failed
429
rate_limited
GET /boms/{id}/export.csv

Export as CSV

Details of GET /boms/{id}/export.csv

One row per live line in tree order with quantities, breakdown, status, selected part, and preferred listing.

Parameters

id path, required
integer. Record id.
200 response
group,name,quantity,unit,required,status
Power,M3x8 screw,4,pcs,14,to_source

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
GET /boms/{id}/order-list

Order list

Details of GET /boms/{id}/order-list

What still needs buying, grouped by supplier and planned against preferred listings. format=csv returns CSV; any other format is refused.

Parameters

id path, required
integer. Record id.
format query
one of json, csv. Response format.
200 response
{
  "data": {
    "bom_id": 7,
    "kit_supplied": [],
    "needs_part": [],
    "suppliers": [
      {
        "items": [],
        "missing_price_count": 0,
        "supplier": "DigiKey",
        "totals": {
          "USD": "1.2"
        }
      }
    ]
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
422
validation_failed
429
rate_limited
GET /boms/{id}/order-list.csv

Order list as CSV

Details of GET /boms/{id}/order-list.csv

The order list as CSV, one row per supplier item.

Parameters

id path, required
integer. Record id.
200 response
group,name,quantity,unit,required,status
Power,M3x8 screw,4,pcs,14,to_source

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
429
rate_limited
POST /boms/{id}/import/preview

Preview an import

Details of POST /boms/{id}/import/preview

Parses, maps, validates, and matches the rows without writing. Use the result to fix the mapping before committing. expected_versions maps every matched line to its lock_version; send it back with the commit.

Parameters

id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "format": "csv",
  "text": "Reference,Value,Footprint,Qty\nR1 R2 R3,10k,R_0603,3\nC1,100n,C_0603,1\n"
}
200 response
{
  "data": {
    "format": "csv",
    "headers": [
      "Reference",
      "Value",
      "Footprint",
      "Qty"
    ],
    "rows": [],
    "summary": {
      "additions": 2,
      "errors": 0,
      "total": 2,
      "unchanged": 0,
      "unmatched": 0,
      "updates": 0
    }
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
413
import_too_large
415
unsupported_media_type , request_too_large
422
validation_failed , import_empty , import_parse_error , import_unsupported_version , import_mapping_error , idempotency_key_reused
429
rate_limited
503
busy
POST /boms/{id}/import

Import into a BOM

Details of POST /boms/{id}/import

Applies an import in one transaction. Rows with a source ref (a mapped column or a derived key) update their line on re-import and never replace a selected part. mode: valid_rows imports the valid rows and reports skipped ones; the default all_or_nothing fails with import_invalid_rows . Send the preview's expected_versions to refuse the commit with 409 import_stale_rows when a matched line changed since.

Parameters

id path, required
integer. Record id.
Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "format": "csv",
  "mode": "all_or_nothing",
  "text": "Reference,Value,Footprint,Qty\nR1 R2 R3,10k,R_0603,3\nC1,100n,C_0603,1\n"
}
200 response
{
  "data": {
    "created": [
      {
        "attributes": {
          "footprint": "R_0603",
          "value": "10k"
        },
        "bom_id": 7,
        "deleted": false,
        "external_links": [],
        "group_id": 10,
        "id": 100,
        "inclusion": "required",
        "links": {
          "alternates": "/api/v1/lines/100/alternates",
          "bom": "/api/v1/boms/7",
          "self": "/api/v1/lines/100"
        },
        "lock_version": 3,
        "name": "10k pull-up",
        "object": "line",
        "part_id": 42,
        "position": 0,
        "quantity": "3",
        "references": [
          "R1",
          "R2",
          "R3"
        ],
        "spares": "2",
        "supply": "purchase",
        "tags": [
          "passive"
        ],
        "unit": "pcs"
      }
    ],
    "removed": [],
    "skipped_rows": [],
    "unchanged": 0,
    "updated": []
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
404
not_found
409
import_stale_rows , bom_archived , bom_trashed , idempotency_in_progress , idempotency_response_not_stored
413
import_too_large
415
unsupported_media_type , request_too_large
422
validation_failed , import_invalid_rows , import_empty , import_parse_error , import_unsupported_version , import_mapping_error , idempotency_key_reused
429
rate_limited
503
busy
POST /imports

Create a BOM from an import

Details of POST /imports

Creates a BOM and imports into it in one transaction. A Maker BOM document brings its own title and description; otherwise bom.name is required. The new BOM records where it came from only when the document's shared.url is a live shared build of this server (taken from that shared build, not from the document). A part of this account is reused by manufacturer part number and gains the document's sources as listings, but its preferred listing never changes. A document over the size limits (2,000 requirements, 500 assemblies, 4,000 parts, 8,000 sources and 10 per part, 2,000 substitutes and 5 per requirement, 20,000 characters per text, multipliers up to 100,000) is refused with 413 import_too_large before anything is written. A document of a newer major version is refused with 422 import_unsupported_version .

Parameters

Idempotency-Key header
string. A unique key per intended write (a UUID). A retry with the same key and body replays the first response with Idempotent-Replayed: true and writes nothing. A request that never finished frees its key for a retry with the same body after a 105 second lease. Keys last 24 hours.
Request body
{
  "bom": {
    "name": "Sensor board rev B"
  },
  "format": "csv",
  "text": "Reference,Value,Footprint,Qty\nR1 R2 R3,10k,R_0603,3\nC1,100n,C_0603,1\n"
}
201 response
{
  "data": {
    "bom": {
      "archived_at": null,
      "build_count": 2,
      "build_label": "rev A",
      "id": 7,
      "inserted_at": "2026-11-01T09:00:00Z",
      "links": {
        "analysis": "/api/v1/boms/7/analysis",
        "lines": "/api/v1/boms/7/lines",
        "self": "/api/v1/boms/7"
      },
      "lock_version": 4,
      "name": "Desk weather station",
      "object": "bom",
      "purpose": "Indoor climate logger",
      "state": "active",
      "trashed_at": null,
      "updated_at": "2026-11-21T08:00:00Z"
    },
    "import": {
      "created": [
        {
          "attributes": {
            "footprint": "R_0603",
            "value": "10k"
          },
          "bom_id": 7,
          "deleted": false,
          "external_links": [],
          "group_id": 10,
          "id": 100,
          "inclusion": "required",
          "links": {
            "alternates": "/api/v1/lines/100/alternates",
            "bom": "/api/v1/boms/7",
            "self": "/api/v1/lines/100"
          },
          "lock_version": 3,
          "name": "10k pull-up",
          "object": "line",
          "part_id": 42,
          "position": 0,
          "quantity": "3",
          "references": [
            "R1",
            "R2",
            "R3"
          ],
          "spares": "2",
          "supply": "purchase",
          "tags": [
            "passive"
          ],
          "unit": "pcs"
        }
      ],
      "removed": [],
      "skipped_rows": [],
      "unchanged": 0,
      "updated": []
    }
  }
}

Errors

400
bad_request , unknown_parameter
401
unauthorized
409
idempotency_in_progress , idempotency_response_not_stored
413
import_too_large
415
unsupported_media_type , request_too_large
422
validation_failed , import_invalid_rows , import_empty , import_parse_error , import_unsupported_version , idempotency_key_reused
429
rate_limited
503
busy