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
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: passnext_cursorasafter;limitdefaults 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 takesort: one field,nameascending or-namedescending, 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 thesortthat wrote it. Lines withoutlimit,after, orsortcome in outline order, unpaginated (at most 2000). The change feed pages by event id; BOM history pages newest first withbefore. -
Query parameters are checked
, on every method: a parameter the operation does not declare in this document answers
400 unknown_parameterwith the declared names indetails[].allowed; a declared parameter with a bad value (alimitout of range, an unknownsort, an unusableafter) answers422 validation_failed. A rejected request writes nothing and stores nothing under its Idempotency-Key. -
Write bodies are
application/json(the import routes also takemultipart/form-datawith afile); other content types are415 unsupported_media_type. Only the fields of the request schema are accepted:id,object,links,inserted_at, andupdated_atare ignored, any other field is422 validation_failedwith codeunknown_field, and a value of the wrong JSON type has codeinvalid_type. Strings are at most 10,000 characters, lists 1,000 items, objects 200 keys; text may not contain NUL. -
Every record has
linkswith related URLs. A line's or part's own document links areexternal_links. -
Versioned records (BOMs, groups, lines, parts, orders, order items) carry
lock_versionand anETag. Updates of them require the version aslock_versionin the body orIf-Match; a stale version returns409 conflictwith the stored record inerror.current. Deletes, lifecycle actions, and moves check a version when one is sent.If-Matchtakes one strong entity tag ("3"); a weak tag (W/"3") never matches and a bodylock_versionthat disagrees withIf-Matchis refused, both with412 precondition_failed. -
Every POST accepts
Idempotency-Key. A retry with the same key and body replays the first response withIdempotent-Replayed: true; the same key with another body returns422 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 gets409 idempotency_response_not_storedwith 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_allowedwith anAllowheader. - 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_archivedor409 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 and429 rate_limitedwithRetry-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.
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.
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.
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.
{
"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.
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.
API index
Details of GET /
Version, links to every top-level collection, the OpenAPI document, and the guide. No token needed.
No token needed.
{
"api_version": "v1",
"links": {
"boms": "/api/v1/boms",
"guide": "/api/v1/guide",
"openapi": "/api/v1/openapi.json"
}
}
Errors
- 400
-
bad_request,unknown_parameter
OpenAPI document
Details of GET /openapi.json
This document. No token needed.
No token needed.
{
"openapi": "3.1.0"
}
Errors
- 400
-
bad_request,unknown_parameter
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.
# 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.
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.
{
"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
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.
{
"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.
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 -
Lifecycle filter (default
active). -
search - Matches name, build label, and purpose.
-
sort -
One field, named as the records show it:
nameascending,-namedescending. Ties break byidin 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 defaultidis 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 thesortthat wrote it. -
limit - Page size (default 50, at most 200).
-
after -
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 samesort: anothersortof that list answers422 validation_failedwith detail codecursor_mismatch, and a cursor of another list, or a changed or invented one, answers422 validation_failedwith detail codeinvalid. Cursors of id order (the default) never expire and stay valid across releases.
{
"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
Create a BOM
Details of POST /boms
Creates an empty BOM.
Parameters
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"build_count": 2,
"name": "Desk weather station"
}
{
"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 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 - Record id.
{
"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
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 - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent.
{
"build_count": 3,
"lock_version": 4
}
{
"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 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 - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin 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
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 - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent. -
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"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
Unarchive a BOM
Details of POST /boms/{id}/unarchive
Brings an archived BOM back. A stated version is checked when given.
Parameters
-
id - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent. -
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"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
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 - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent. -
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"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
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 - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent. -
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"attrs": {
"name": "Weather station v2"
},
"keep_parts": true
}
{
"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
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 - Record id.
{
"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
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 - Record id.
{
"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
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 - Record id.
-
step - Only this step.
-
supplier - Only items from this supplier (order, place, and receive).
-
group_id - Only lines in this group and the groups nested in it.
-
limit -
Items per step (default 200, at most 1000);
truncatedsays a step had more.
{
"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.
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 - Record id.
-
flat - Return a flat list.
{
"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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"name": "Power",
"parent_id": null,
"quantity": 1
}
{
"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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"ordered_ids": [
12,
10,
11
],
"parent_id": null
}
{
"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 a group
Details of GET /groups/{id}
One group.
Parameters
-
id - Record id.
{
"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
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 - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent.
{
"lock_version": 2,
"quantity": 4
}
{
"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 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 - Record id.
-
lines - What happens to the lines.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin 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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"lock_version": 2,
"parent_id": 10,
"position": 0
}
{
"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
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 - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent. -
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"lock_version": 2,
"target_id": 11,
"target_lock_version": 5
}
{
"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.
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 - Record id.
-
include -
Add each line's
breakdown. -
group_id -
A group id, or
topfor top-level lines. -
include_subgroups - With group_id, include nested groups.
-
status - Line status; comma-separate several.
-
needs_part - Purchase lines with no selected part.
-
supply - Supply method; comma-separate several.
-
inclusion - Inclusion; comma-separate several.
-
tags - Lines with any of these comma-separated tags.
-
category - Exact category.
-
part_id - Selected part id(s), comma-separated.
-
search - Matches names, notes, references, tags, attributes, and the selected part.
-
deleted - Soft-deleted lines (default exclude).
-
sort -
One field, named as the records show it:
nameascending,-namedescending. Ties break byidin 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 defaultidis 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 thesortthat wrote it. Withoutlimit,after, orsort(empty values count as absent) the lines come unpaginated in outline order; with any of them and nosort, in id order.name,category,quantity,inserted_at,updated_at, andidsort 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, anduncoveredfrom the quantity analysis, which runs once per page. -
limit - Page size (default 50, at most 200).
-
after -
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 samesort: anothersortof that list answers422 validation_failedwith detail codecursor_mismatch, and a cursor of another list, or a changed or invented one, answers422 validation_failedwith detail codeinvalid. Cursors of id order (the default) never expire and stay valid across releases.
{
"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
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 - Record id.
-
dry_run -
Validate and compute the quantity impact without writing. The response has
dry_run: trueandimpact. -
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"group_id": 10,
"name": "M3x8 socket head screw",
"quantity": "4",
"references": [
"H1",
"H2",
"H3",
"H4"
],
"spares": "2",
"supply": "purchase",
"unit": "pcs"
}
{
"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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"group_id": 10,
"ordered_ids": [
101,
100
]
}
{
"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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"attrs": {
"supply": "on_hand"
},
"line_ids": [
100,
101
],
"operation": "update"
}
{
"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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"attrs": {
"supply": "on_hand"
},
"expected_versions": {
"100": 3
},
"line_ids": [
100,
101
],
"operation": "update"
}
{
"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 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 - Record id.
{
"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
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 - Record id.
-
dry_run -
Validate and compute the quantity impact without writing. The response has
dry_run: trueandimpact. -
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent.
{
"lock_version": 3,
"quantity": "6"
}
{
"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 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 - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent.
{
"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
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 - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent. -
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"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
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 - Record id.
{
"data": {
"object": "line_deletion_impact"
}
}
Errors
- 400
-
bad_request,unknown_parameter - 401
-
unauthorized - 404
-
not_found - 429
-
rate_limited
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"group_id": 11
}
{
"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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"group_id": 11,
"lock_version": 3,
"position": 0
}
{
"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.
List alternates
Details of GET /lines/{line_id}/alternates
Alternates of a line with candidate and replaced parts.
Parameters
-
line_id - Record id.
-
status - Decision filter.
-
limit - Page size (default 50, at most 200).
-
after -
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 samesort: anothersortof that list answers422 validation_failedwith detail codecursor_mismatch, and a cursor of another list, or a changed or invented one, answers422 validation_failedwith detail codeinvalid. Cursors of id order (the default) never expire and stay valid across releases.
{
"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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"part_id": 42,
"rationale": "Same footprint, in stock at two suppliers",
"trade_offs": "Tolerance 5% instead of 1%"
}
{
"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 an alternate
Details of GET /alternates/{id}
One alternate.
Parameters
-
id - Record id.
{
"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
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 - Record id.
{
"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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"allocations": "keep",
"decision_reason": "Footprint and tolerance reviewed"
}
{
"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
Reject an alternate
Details of POST /alternates/{id}/reject
Rejects the proposal with an optional reason.
Parameters
-
id - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"decision_reason": "Needs 1% tolerance"
}
{
"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.
List revisions
Details of GET /boms/{bom_id}/revisions
Revisions newest first, without snapshots.
Parameters
-
bom_id - Record id.
-
limit - Page size (default 50, at most 200).
-
after -
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 samesort: anothersortof that list answers422 validation_failedwith detail codecursor_mismatch, and a cursor of another list, or a changed or invented one, answers422 validation_failedwith detail codeinvalid. Cursors of id order (the default) never expire and stay valid across releases.
{
"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
Save a revision
Details of POST /boms/{bom_id}/revisions
Saves a named snapshot with the next per-BOM number.
Parameters
-
bom_id - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"name": "Sent to fab",
"note": "Gerbers v3"
}
{
"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
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 - Record id.
-
from -
A revision id or
draft. -
to -
A revision id or
draft.
{
"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
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 - Record id.
-
id - Record id.
{
"data": {
"object": "revision_restore_impact"
}
}
Errors
- 400
-
bad_request,unknown_parameter - 401
-
unauthorized - 404
-
not_found - 429
-
rate_limited
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 - Record id.
-
id - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"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 a revision
Details of GET /revisions/{id}
One revision with its snapshot.
Parameters
-
id - Record id.
{
"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
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 - Record id.
{
"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
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 - Record id.
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
Parts
The reusable parts catalog.
List parts
Details of GET /parts
Parts with their listings, one page at a time in the
sort
order (default
id
).
Parameters
-
search - Matches name, manufacturer, MPN, internal ref, description, category, and SKUs.
-
category - Exact category.
-
retired - Retired parts (default exclude).
-
sort -
One field, named as the records show it:
nameascending,-namedescending. Ties break byidin 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 defaultidis 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 thesortthat wrote it. -
limit - Page size (default 50, at most 200).
-
after -
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 samesort: anothersortof that list answers422 validation_failedwith detail codecursor_mismatch, and a cursor of another list, or a changed or invented one, answers422 validation_failedwith detail codeinvalid. Cursors of id order (the default) never expire and stay valid across releases.
{
"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
Create a part
Details of POST /parts
Adds a part to the catalog.
Parameters
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"attributes": {
"package": "0603",
"tolerance": "1%"
},
"manufacturer": "Yageo",
"mpn": "RC0603FR-0710KL",
"name": "10k resistor 0603"
}
{
"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 a part
Details of GET /parts/{id}
One part with its listings.
Parameters
-
id - Record id.
{
"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
Update a part
Details of PATCH /parts/{id}
Changes part fields. Requires the version.
Parameters
-
id - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent.
{
"description": "Thick film, 1%",
"lock_version": 1
}
{
"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 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 - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin 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
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 - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent. -
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"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
Unretire a part
Details of POST /parts/{id}/unretire
Brings a retired part back. A stated version is checked.
Parameters
-
id - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent. -
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"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
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.
{
"data": [
{
"object": "duplicate_group"
}
],
"next_cursor": null
}
Errors
- 400
-
bad_request,unknown_parameter - 401
-
unauthorized - 429
-
rate_limited
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 - Record id.
{
"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
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 - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent. -
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"lock_version": 2,
"merged_lock_version": 1,
"merged_part_id": 43
}
{
"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.
List listings
Details of GET /parts/{part_id}/listings
Listings of a part, preferred first.
Parameters
-
part_id - Record id.
-
limit - Page size (default 50, at most 200).
-
after -
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 samesort: anothersortof that list answers422 validation_failedwith detail codecursor_mismatch, and a cursor of another list, or a changed or invented one, answers422 validation_failedwith detail codeinvalid. Cursors of id order (the default) never expire and stay valid across releases.
{
"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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"confidence": "verified",
"currency": "USD",
"observed_at": "2026-11-20T10:00:00Z",
"pack_size": "100",
"price": "1.20",
"sku": "311-10.0KHRCT-ND",
"supplier": "DigiKey"
}
{
"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 a listing
Details of GET /listings/{id}
One listing.
Parameters
-
id - Record id.
{
"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
Update a listing
Details of PATCH /listings/{id}
Changes listing fields. Listings are not versioned; the last write wins.
Parameters
-
id - Record id.
{
"observed_at": "2026-11-21T09:00:00Z",
"price": "1.05"
}
{
"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 a listing
Details of DELETE /listings/{id}
Deletes the listing. When it was preferred, the oldest remaining listing becomes preferred.
Parameters
-
id - Record id.
Answers 204 with no body.
Errors
- 400
-
bad_request,unknown_parameter - 401
-
unauthorized - 404
-
not_found - 429
-
rate_limited - 503
-
busy
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"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.
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 - Status; comma-separate several.
-
supplier - Case-insensitive supplier match.
-
bom_id - Orders with allocations to lines of this BOM.
-
search - Matches supplier, reference, notes, and item descriptions.
-
sort -
One field, named as the records show it:
nameascending,-namedescending. Ties break byidin 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 defaultidis 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 thesortthat wrote it. -
limit - Page size (default 50, at most 200).
-
after -
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 samesort: anothersortof that list answers422 validation_failedwith detail codecursor_mismatch, and a cursor of another list, or a changed or invented one, answers422 validation_failedwith detail codeinvalid. Cursors of id order (the default) never expire and stay valid across releases.
{
"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
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 -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"items": [
{
"allocations": [
{
"line_id": 100,
"quantity": "9"
}
],
"part_id": 42,
"quantity": "10",
"unit_price": "0.12"
}
],
"reference": "DK-12345",
"status": "ordered",
"supplier": "DigiKey"
}
{
"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
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 -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"entries": [
{
"line_id": 100,
"quantity": "10",
"unit_price": "0.12"
}
],
"order": {
"status": "ordered",
"supplier": "DigiKey"
}
}
{
"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
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 - Record id.
{
"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 an order
Details of GET /orders/{id}
One order with items, allocations, receipts, and the computed summary.
Parameters
-
id - Record id.
{
"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
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 - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent.
{
"lock_version": 2,
"status": "shipped"
}
{
"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 an order
Details of DELETE /orders/{id}
Deletes an order with no receipts; otherwise
has_receipts
(cancel instead).
Parameters
-
id - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin 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
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 - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent. -
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"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.
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"part_id": 42,
"quantity": "10",
"unit": "pcs",
"unit_price": "0.12"
}
{
"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
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 - Matches supplier, reference, and item description.
-
part_id - Only items of this part.
-
include_received - Include items already fully received.
-
limit - Page size (default 50, at most 200).
{
"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
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 - Record id.
{
"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 an order item
Details of GET /order-items/{id}
One item with part, allocations, and receipts.
Parameters
-
id - Record id.
{
"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
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 - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent.
{
"lock_version": 1,
"quantity": "12"
}
{
"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 an order item
Details of DELETE /order-items/{id}
Deletes an item with no receipts, with its allocations.
Parameters
-
id - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin 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
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 - Record id.
-
If-Match -
The record version this write is based on (the
ETagyou read). Alternative tolock_versionin the body; the body wins when both are sent. -
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"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.
Allocations of a line
Details of GET /lines/{line_id}/allocations
Allocations covering the line, oldest first.
Parameters
-
line_id - Record id.
-
limit - Page size (default 50, at most 200).
-
after -
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 samesort: anothersortof that list answers422 validation_failedwith detail codecursor_mismatch, and a cursor of another list, or a changed or invented one, answers422 validation_failedwith detail codeinvalid. Cursors of id order (the default) never expire and stay valid across releases.
{
"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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"quantity": "5",
"ready_quantity": "5",
"source": "stock"
}
{
"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
Allocations of an order item
Details of GET /order-items/{order_item_id}/allocations
Allocations drawing on the item.
Parameters
-
order_item_id - Record id.
-
limit - Page size (default 50, at most 200).
-
after -
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 samesort: anothersortof that list answers422 validation_failedwith detail codecursor_mismatch, and a cursor of another list, or a changed or invented one, answers422 validation_failedwith detail codeinvalid. Cursors of id order (the default) never expire and stay valid across releases.
{
"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 an allocation
Details of GET /allocations/{id}
One allocation.
Parameters
-
id - Record id.
{
"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
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 - Record id.
{
"ready_quantity": "3"
}
{
"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
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 - 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.
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"receipts": [
{
"order_item_id": 200,
"quantity_received": "4"
},
{
"exception": "damaged",
"order_item_id": 201,
"quantity_accepted": "1",
"quantity_received": "2"
}
]
}
{
"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
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 - Record id.
-
include_voided - Include voided receipts (default true).
-
limit - Page size (default 50, at most 200).
-
after -
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 samesort: anothersortof that list answers422 validation_failedwith detail codecursor_mismatch, and a cursor of another list, or a changed or invented one, answers422 validation_failedwith detail codeinvalid. Cursors of id order (the default) never expire and stay valid across releases.
{
"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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"quantity_accepted": "4",
"quantity_received": "4",
"received_on": "2026-11-21"
}
{
"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 a receipt
Details of GET /receipts/{id}
One receipt.
Parameters
-
id - Record id.
{
"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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"replacement": {
"exception": "damaged",
"quantity_accepted": "3",
"quantity_received": "4"
}
}
{
"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
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.
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 -
A category slug from
GET /suppliers/categories. -
kind - One kind, several separated by commas, or the parameter repeated: distributor, manufacturer, retailer, marketplace, surplus, service.
-
search - Case-insensitive substring of name, host, summary, description, best for, ships from, ships to, or currencies.
-
sort -
One field, named as the records show it:
nameascending,-namedescending. Ties break byidin 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 defaultidis 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 thesortthat wrote it. Exception: the four ratings andreviewed_atput a supplier without a value last in both directions, sosort=-price_ratinglists the lowest prices first and the unrated suppliers after them. -
limit - Page size (default 50, at most 200).
-
after -
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 samesort: anothersortof that list answers422 validation_failedwith detail codecursor_mismatch, and a cursor of another list, or a changed or invented one, answers422 validation_failedwith detail codeinvalid. Cursors of id order (the default) never expire and stay valid across releases.
{
"data": [
{
"object": "supplier"
}
],
"next_cursor": null
}
Errors
- 400
-
bad_request,unknown_parameter - 401
-
unauthorized - 422
-
validation_failed - 429
-
rate_limited
Supplier categories and kinds
Details of GET /suppliers/categories
The fixed category and kind lists of the directory, with labels. Not paginated.
{
"data": {
"object": "supplier_categories"
}
}
Errors
- 400
-
bad_request,unknown_parameter - 401
-
unauthorized - 429
-
rate_limited
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 - Record id.
{
"data": {
"object": "supplier"
}
}
Errors
- 400
-
bad_request,unknown_parameter - 401
-
unauthorized - 404
-
not_found - 429
-
rate_limited
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 -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"categories": [
"electronic_components"
],
"name": "Tayda Electronics",
"reason": "Cheap passives and pots, ships single units worldwide.",
"url": "https://www.taydaelectronics.com/"
}
{
"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
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 - Page size (default 50, at most 200).
-
after -
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 samesort: anothersortof that list answers422 validation_failedwith detail codecursor_mismatch, and a cursor of another list, or a changed or invented one, answers422 validation_failedwith detail codeinvalid. Cursors of id order (the default) never expire and stay valid across releases.
{
"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.
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 - Record id.
-
before - Only events older than this event id.
-
line_id - Only events about this line.
-
limit - Page size (default 50, at most 200).
{
"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
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 - Cursor: an event id (default 0, the beginning).
-
bom_id - Only events about this BOM, including order events covering its lines.
-
limit - Page size (default 50, at most 200).
{
"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 an event
Details of GET /events/{id}
One event of the account.
Parameters
-
id - Record id.
{
"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
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 - Record id.
{
"data": {
"event_id": 9001,
"reason": null,
"undoable": true
}
}
Errors
- 400
-
bad_request,unknown_parameter - 401
-
unauthorized - 404
-
not_found - 429
-
rate_limited
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 -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"event_ids": [
9001,
9002
]
}
{
"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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"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.
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 - Record id.
-
include_orders - Add each line's allocations.
-
include_comments - Add the BOM's comments.
{
"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
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 - Record id.
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
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 - Record id.
-
format - Response format.
{
"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
Order list as CSV
Details of GET /boms/{id}/order-list.csv
The order list as CSV, one row per supplier item.
Parameters
-
id - Record id.
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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"format": "csv",
"text": "Reference,Value,Footprint,Qty\nR1 R2 R3,10k,R_0603,3\nC1,100n,C_0603,1\n"
}
{
"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
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 - Record id.
-
Idempotency-Key -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"format": "csv",
"mode": "all_or_nothing",
"text": "Reference,Value,Footprint,Qty\nR1 R2 R3,10k,R_0603,3\nC1,100n,C_0603,1\n"
}
{
"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
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 -
A unique key per intended write (a UUID). A retry with the same key and body replays the first response with
Idempotent-Replayed: trueand 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.
{
"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"
}
{
"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
Comments
Notes and questions on BOMs, groups, lines, and orders.
Open questions
Details of GET /boms/{id}/questions
Unresolved question threads of the BOM, oldest first, with the line or group they concern.
Parameters
idpath, requiredlimitqueryafterquerynext_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 samesort: anothersortof that list answers422 validation_failedwith detail codecursor_mismatch, and a cursor of another list, or a changed or invented one, answers422 validation_failedwith detail codeinvalid. Cursors of id order (the default) never expire and stay valid across releases.{ "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
bad_request,unknown_parameterunauthorizednot_foundvalidation_failedrate_limitedList comments
Details of GET /comments
Thread roots oldest first, with replies. Filter by target and state.
Parameters
bom_idquerygroup_idqueryline_idqueryorder_idquerytargetquerykindqueryresolvedquerylimitqueryafterquerynext_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 samesort: anothersortof that list answers422 validation_failedwith detail codecursor_mismatch, and a cursor of another list, or a changed or invented one, answers422 validation_failedwith detail codeinvalid. Cursors of id order (the default) never expire and stay valid across releases.{ "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
bad_request,unknown_parameterunauthorizedvalidation_failedrate_limitedComment or ask a question
Details of POST /comments
Starts a thread on a BOM, group, line, or order (
bom_id,group_id,line_id, ororder_id).kind: questionmakes it an open question until resolved.Parameters
Idempotency-KeyheaderIdempotent-Replayed: trueand 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.{ "body": "Is 5% tolerance acceptable here?", "kind": "question", "line_id": 100 }{ "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
bad_request,unknown_parameterunauthorizednot_foundbom_archived,bom_trashed,idempotency_in_progress,idempotency_response_not_storedunsupported_media_type,request_too_largevalidation_failed,no_target,idempotency_key_reusedrate_limitedbusyGet a comment
Details of GET /comments/{id}
One comment with its replies.
Parameters
idpath, required{ "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
bad_request,unknown_parameterunauthorizednot_foundrate_limitedEdit a comment
Details of PATCH /comments/{id}
Edits the body (or kind) and stamps
edited_at.Parameters
idpath, required{ "body": "Is 5% tolerance acceptable for R3?" }{ "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
bad_request,unknown_parameterunauthorizednot_foundbom_archived,bom_trashedunsupported_media_type,request_too_largevalidation_failedrate_limitedbusyDelete a comment
Details of DELETE /comments/{id}
Deletes the comment and, for a thread root, its replies.
Parameters
idpath, requiredAnswers
204with no body.Errors
bad_request,unknown_parameterunauthorizednot_foundbom_archived,bom_trashedrate_limitedbusyReply
Details of POST /comments/{id}/replies
Replies to the thread (a reply to a reply attaches to the root).
Parameters
idpath, requiredIdempotency-KeyheaderIdempotent-Replayed: trueand 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.{ "body": "Yes, it is a pull-up." }{ "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
bad_request,unknown_parameterunauthorizednot_foundbom_archived,bom_trashed,idempotency_in_progress,idempotency_response_not_storedunsupported_media_type,request_too_largevalidation_failed,idempotency_key_reusedrate_limitedbusyResolve a thread
Details of POST /comments/{id}/resolve
Resolves the thread and records who resolved it.
Parameters
idpath, requiredIdempotency-KeyheaderIdempotent-Replayed: trueand 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.{ "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
bad_request,unknown_parameterunauthorizednot_foundbom_archived,bom_trashed,idempotency_in_progress,idempotency_response_not_storedidempotency_key_reused,validation_failedrate_limitedbusyReopen a thread
Details of POST /comments/{id}/reopen
Reopens a resolved thread.
Parameters
idpath, requiredIdempotency-KeyheaderIdempotent-Replayed: trueand 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.{ "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
bad_request,unknown_parameterunauthorizednot_foundbom_archived,bom_trashed,idempotency_in_progress,idempotency_response_not_storedidempotency_key_reused,validation_failedrate_limitedbusy