ARCNM

Building blocks

Uploading files

Three ways to get CAD and drawings into ARCNM: upload-and-quote in one call, a reusable presigned upload, or an upload link for someone without an account.

Every quote starts from a file. ARCNM accepts STEP 3D geometry (.step/.stp), the DXF flat pattern of a sheet part (.dxf, see below), 2D drawings as PDF, PNG or JPEG, optional STL/OBJ meshes, and supporting documents, up to 512 MB each (CAD is capped lower — see below). There are two ways in, and an upload link lets someone without an account use the first.

STEP is the only 3D format accepted — it is the one that carries B-rep geometry. IGES, Parasolid, SolidWorks and other native kernel formats are not accepted: a presign or upload declaring them is rejected rather than accepted and dropped later.

A STEP file must hold a solid body. A file that holds only surfaces — a single face, or a surface body with no volume — has no thickness to price: its calculation fails with an error that starts no_solid_body:, and a failed run costs nothing. Export the part as a solid, or upload its flat pattern as a DXF with sheet_gauge_mm and a material.

DXF flat patterns

A sheet part that has no 3D model — or whose model does not unfold — arrives as the flat pattern its cutter reads. Upload the .dxf in the CAD slot (cad_file on /upload-and-quote, role cad_3d on a revision) together with two things a 2D file cannot carry: sheet_gauge_mm, the sheet thickness, and a material (material_grade_id or material_ref). Both are required for a DXF (422 dxf_gauge_required / dxf_material_required). The part is then priced as a flat sheet part cut to that pattern — nested on your stocked formats, the contours cut, the skeleton scrap — with one low-severity note that no 3D model was read (so no bends or forms are known).

What the import reads: every geometric entity of the model space, blocks exploded — polylines (bulges honoured), lines, arcs, circles, ellipses and splines, curves flattened at 0.2 mm. Units come from $INSUNITS: millimetres (4) or inches (1); a file with any other unit, unitless files included, is refused (422 dxf_units_unsupported). One closed outer contour per file; every other closed loop inside it is an opening. A file with two outer contours, an island inside an opening or crossing contours (dxf_multiple_outer_contours), a chain of lines and arcs that does not close (dxf_open_loop, the loose end named in details), no closed contour at all (dxf_no_contour) or one that cannot be read (dxf_unreadable) is refused at upload, before anything is stored.

curl -X POST https://api.arcnm.io/api/v1/calculations/upload-and-quote \
  -H "X-API-Key: $ARCNM_API_KEY" \
  -F part_number=BRK-17 -F sheet_gauge_mm=2 -F material_ref=1.4301 \
  -F "[email protected];type=application/dxf"

CAD size limits

A STEP file may be up to 5 MB for a single part and up to 25 MB for an assembly of several solids, which ARCNM splits into its parts and prices part by part. The limits hold on every upload path. ARCNM tells the two apart by counting the solids in the file once it has arrived, so a single part over 5 MB is refused even under 25 MB. A DXF flat pattern is a single part. A file over its limit answers 413 cad_3d_file_too_large, whose details name both limits and the kind of file found (see Errors).

  • Multipart (/upload-and-quote, a revision's datasets/upload): refused in the same call.
  • JSON (/upload-and-quote-json, the MCP tool upload_and_quote): the file counts at its uncompressed size. Send a large STEP gzip-compressed: it shrinks about five times, while base64 adds a third. One MCP call carries at most 16 MB, so a STEP over about 11 MB reaches ARCNM through MCP only gzip-compressed.
  • Presigned upload: presign takes a STEP of up to 25 MB, since the kind of file is only known from its content. A single part over 5 MB is refused when it is checked after confirm (upload_rejected, failure_reason cad_file_too_large).

One-shot: upload and quote

The fastest path — hand the bytes and the costing inputs to POST /api/v1/calculations/upload-and-quote in a single multipart call, and ARCNM stores the file, creates the part + revision, and enqueues the calculation. This is the quickstart path; use it whenever you're costing a file once. To price the upload in several environments at once, repeat the costing_environment_ids field (up to 16): the file is still uploaded and stored once, and one calculation per environment is enqueued under a shared batch_id. An assembly uses one calculation per different part in each environment. The count is known once the file has been read.


A drawing for a part already priced

Whatever the two files are called, a stored drawing becomes a specific part's drawing with one call: POST /api/v1/calculations/{calculation_id}/drawing takes the data_source_id of a confirmed upload (or of a drawing attached to another part), or the file itself as drawing_file_b64, attaches it to the part revision the calculation prices and — with run true, the default — prices the part again as a new calculation on the same revision, environment and lot (new_calculation; its status says whether it runs or waits on billing). The drawing it replaces stays stored and detaches from the revision; deleting the link_id the answer names detaches the new one again. Over MCP this is attach_drawing in the calculations toolset. An assembly's drawings go through its drawing pack instead, where each is matched to its component.


Reusable: presigned direct upload

When you want to attach a file to several calculations, push large files straight to storage, or separate ingest from costing, use the presign → send → confirm flow on the /uploads resource (uploads:write):

# 1. Ask where and how to send the file.
curl -X POST https://api.arcnm.io/api/v1/uploads/presign \
  -H "X-API-Key: $ARCNM_API_KEY" -H "Content-Type: application/json" \
  -d '{ "name": "bracket.step", "content_type": "application/step", "size_bytes": 184320 }'
# → { "data_source_id": "ds_…", "url": "https://…", "method": "PUT" or "POST",
#     "headers": { … } or null, "fields": { … } or null, "expires_in": 900 }

# 2. Send the bytes straight to storage — the payload never touches the API.
#    `method` says how; a file sent the other way is refused and never arrives.
#    "PUT": the raw bytes as the body, with exactly the `headers` named.
curl -X PUT "<url>" -H "Content-Type: application/step" --data-binary @bracket.step
#    "POST": a multipart form — every entry of `fields` exactly as answered
#    (one --form-string each: it never reads a leading `@` or `<` as a file),
#    then the file as the last field, named `file`.
curl -X POST "<url>" --form-string "key=$KEY" --form-string "policy=$POLICY" \
  --form-string "…=…" -F "[email protected]"

# 3. Confirm — ARCNM checks the file (magic bytes, declared size) and keeps it.
curl -X POST https://api.arcnm.io/api/v1/uploads/confirm \
  -H "X-API-Key: $ARCNM_API_KEY" -H "Content-Type: application/json" \
  -d '{ "data_source_id": "ds_…" }'
# → { "data_source_id": "ds_…", "status": "pending" }

The check runs after confirm answers: status is pending until it is done, confirmed after. Confirm is safe to repeat and answers the current status; listing your uploads shows it too. When the upload cannot be confirmed, confirm answers 409 and says why in details.reason:

details.reason What to do
upload_not_received No file has arrived yet. Send it as method says, then confirm again
upload_rejected The file was refused when it was checked: its content does not match its declared type, it is larger than declared, it is over the CAD size limit for its kind (failure_reason cad_file_too_large, see CAD size limits), or it would exceed your plan's storage. Upload it again, or a smaller file
upload_failed The file could not be checked. Retry it with POST /api/v1/uploads/{id}/retry
upload_cancelled The upload was cancelled. Retry it with POST /api/v1/uploads/{id}/retry to have it checked

The data_source_id is durable: attach it to a revision (POST /api/v1/parts/{part_id}/revisions/{revision_id}/datasets) and quote that revision as many times — and in as many environments — as you like without re-uploading a byte. Attached while it is still pending, the upload answers 409 with details.reason upload_pending, a Retry-After header and the same wait as details.retry_after_s: ask again then. If no file ever arrived, attach and POST /api/v1/uploads/{id}/retry answer upload_not_received instead, as confirm does. upload_rejected, upload_failed and upload_cancelled do not change by waiting; the upload's failure_reason (on the attach refusal and on the upload in GET /api/v1/uploads) names why the check refused or failed it.

Storage. Until it is confirmed, an upload reserves its declared size_bytes of your plan's storage — the most its file type allows when it declares none, so declare the size. Confirm checks the plan again on the size that arrived (402 entitlement_exceeded). If url expires with nothing sent, the reservation is released; a file sent through url after its upload was deleted or refused is removed once url expires.

Why presign? The file bytes go directly to object storage, not through the API, so a 512 MB STEP never touches the request path — faster uploads, and no JSON body-size ceiling to fight.


When the files are on someone else's computer — a customer, a colleague without an account, the person an agent is talking to — issue an upload link and send it to them. They open it in a browser, without signing in, and drop one STEP file per part with its PDF drawing if they have one. Each part is filed and priced in your organization, in the costing environment and folder you named. The MCP tool get_upload_link issues the same link.

# 1. Issue a link for up to three parts (parts:write).
curl -X POST https://api.arcnm.io/api/v1/upload-links \
  -H "X-API-Key: $ARCNM_API_KEY" -H "Content-Type: application/json" \
  -d '{ "environment_id": "<env id>", "folder_id": "<folder id>", "max_uploads": 3 }'
# → { "upload_session_id": "…", "url": "https://arcnm.io/upload#…",
#     "issued_at": "…", "expires_at": "…", "max_uploads": 3, … }

# 2. Send `url` to the person. Once they have uploaded, list exactly the
#    calculations their parts created — nobody else's.
curl "https://api.arcnm.io/api/v1/calculations?upload_session_id=<upload_session_id>" \
  -H "X-API-Key: $ARCNM_API_KEY"

# 3. Optional: end the link before it expires.
curl -X DELETE https://api.arcnm.io/api/v1/upload-links/<upload_session_id> \
  -H "X-API-Key: $ARCNM_API_KEY"
  • A link works for 30 minutes and for max_uploads parts (1 to 20, default 1), whichever ends first. A file the page refuses — not a STEP file, too large — uses none of the parts, so the person can try again, but every attempt counts: a link takes at most max_uploads + 3.
  • The person sets each part's number (taken from the file name) and its quantity, which is priced as the lot size. A part number that already exists becomes a new part with its own number (977 → 977-2): a link never adds a revision to one of your parts, also when another upload of the same number arrives at the same moment.
  • Each different part uses one calculation of your quota if its calculation succeeds, exactly as your own upload would. An assembly uses one per different part, counted once the file is read. Issued with an API key, the calculations carry that key, so their overage is reported against it.
  • If the same file, in the same environment and with the same settings, is already being priced in your organization, the upload joins that calculation (billed once), which is not listed under the link.

A link is a bearer credential: whoever has the URL can upload up to max_uploads parts into your organization until it expires, so send it only to the person meant to use it. Everything else about it is fixed and small:

Not guessable The token is signed by ARCNM and names its link and organization; the link is also a record ARCNM keeps. An altered or made-up token, or one whose record is not in the organization it names, answers upload_link_invalid
Short and bounded 30 minutes, max_uploads parts, max_uploads + 3 attempts. The parts are counted when the files are stored, so uploads sent at the same moment cannot exceed the budget. An organization has at most 50 links open at once — not expired, revoked or used up; past that, issuing answers upload_link_too_many_open
One scope The organization, environment and folder are fixed when the link is issued. The upload names none of them — a request that tries is refused — and sending another organization's credentials beside the token changes nothing
No more than its issuer Issuing needs parts:write and a role that may change data. The link stops working when its issuer can no longer upload in the organization (removed, or made a viewer), when their sign-in credentials are reset (an account recovery ends every sign-in from before, and every link too), and when the API key it was issued with is revoked or expires. A read-only MCP server issues no link
Revocable DELETE /upload-links/{upload_session_id} ends it at once (upload_link_closed, details.reason revoked). Signing out of all devices, recovering the account and withdrawing an app's access (Authorized apps) end every link the person issued — all of them, because a link does not record which app issued it
Nothing to read The page sees your organization's name, the expiry and the parts left, and per upload that it was received — no prices, no ids, nothing else of your organization. When your organization cannot take an upload (its storage is full, the link's environment or folder was deleted, it is out of calculations), the person is not told why
The same checks Every file passes the checks of every upload: a STEP header check, the CAD size limits and the drawing's format check. One upload carries one part: a STEP file and a drawing of up to 25 MB
Rate-limited Every upload through a link counts against your organization's per-minute rate limit as an upload of your own does, and past it is refused (429) without using an attempt. On top: 20 upload attempts per minute per link; 30 uploads and 60 page loads per minute per address
Kept out of logs The token travels in the URL fragment (#…), which a browser never sends to a server, and the page sends it only in the X-Upload-Token header — never with a sign-in of its own, and never as a session. On arrival the page takes it out of the address bar and keeps it for that browser tab only, so it stays out of the browser's history and of a URL copied from the bar
Audited Issuing, every upload (with the uploader's IP address and browser) and revoking are recorded in your audit log — an upload whose files were stored but whose calculation could not be queued too

Allowed types

Kind Content types
3D CAD (role cad_3d) application/step, model/step+xml. Validated against the ISO-10303-21 header — a non-STEP payload returns 422 cad_file_not_step
DXF flat pattern (role cad_3d) application/dxf, image/vnd.dxf. Judged as a DXF (header, units, one closed outer contour) and refused with a dxf_* code otherwise; needs sheet_gauge_mm and a material — see above
Mesh (role mesh) model/stl, application/sla. No B-rep: envelope, mass and surface area only
2D drawings (role drawing_2d) application/pdf, image/png, image/jpeg, image/webp
Documents application/pdf, text/csv, text/plain, Office formats

content_type is required at presign and validated again by magic-byte sniffing on confirm. Executable / scriptable types (HTML, JavaScript, SVG) are rejected outright.


Manage uploads

Operation Endpoint
List your uploads GET /api/v1/uploads
Get a download URL GET /api/v1/uploads/{id}/download-url
Retry a failed ingest POST /api/v1/uploads/{id}/retry
Cancel a pending upload POST /api/v1/uploads/{id}/cancel
Bulk retry / cancel POST /api/v1/uploads/bulk-retry, .../bulk-cancel

See also