# Make Parts Now > Make Parts Now makes custom parts in-house in the US: SLS 3D printing in PA12 Nylon or TPU 90A on Formlabs Fuse 1; FDM 3D printing in PLA, PETG, ABS, ASA, TPU 95A, PA-CF (Nylon carbon fiber) or PETG-CF on Bambu Lab P1S and Bambu Lab H2S; and CNC machining in 6061-T6511 Aluminum or C360 Brass on Makera Carvera. Upload a CAD file, get an instant price with ship and arrival dates, and order. US shipping only. AI agents can quote and order without a human. Two ways to pay: - **Checkout link (Option A):** we return a Stripe URL; a person pays by card. - **USDC via x402 (Option B):** an agent account pays autonomously on Base. No human needed. ## Quick start (REST) 1. `POST https://makepartsnow.com/api/agent/v1/accounts` with `{"name", "email", "accept_terms": true, "ship_to"?}`. You get `api_key` (shown once). Send `Authorization: Bearer ` from now on. 2. `GET https://makepartsnow.com/api/agent/v1/capabilities` lists processes, materials, colors, finishes, services, speeds and limits. 3. `POST https://makepartsnow.com/api/agent/v1/uploads` with multipart `file` + `no_controlled_data=true`, or JSON `{"url"}` or `{"filename", "content_base64"}` (JSON bodies up to 16 MB) plus `"no_controlled_data": true`. Poll `GET /parts/{id}` until `status` is `ready`, or wait server-side with `GET /parts/{id}?wait=20` (up to 30 seconds; MCP: `wait_seconds` on `get_part` or `upload_part`). 4. `POST https://makepartsnow.com/api/agent/v1/quotes` with `{"items": [{"part_id", "quantity", "config": {"process": "sls", "material": "sls_pa12", "finishes": ["sls_black_dye"]}}], "ship_to", "speed"}`. The response has prices, `tiers` (price, ship and arrival date for each speed), design warnings in `items[].pricing.warnings`, `next_steps`, and `share_url`, the quote's page for a person to see. If an option is wrong, `ready` is false and `blocking` names the field and the allowed values. A part too large for every process has an empty `allowed`; split it or remove that item. 5. Pay: - `POST /quotes/{id}/checkout` returns `checkout_url` for a human. - `POST /quotes/{id}/pay` returns HTTP 402 with x402 requirements. Sign and retry with the `PAYMENT-SIGNATURE` header. Success returns the order. - If account credit covers the whole total, `/pay` returns HTTP 409 with `status: credit_confirmation_required` and a `credit_confirmation` token instead, and nothing is charged. Call again with `?confirm_credit=` (MCP: `confirm_credit`) to place the order. 6. `GET /orders/{id}` for status and tracking. Set `callback_url` on your account for signed webhooks (`X-MPN-Signature: t=..,v1=HMAC-SHA256(secret, "t.body")`). Retry safely with an `Idempotency-Key` header (up to 255 characters) on POST /quotes, /quotes/{id}/items, /quotes/{id}/checkout and /uploads, or `idempotency_key` on the MCP tools create_quote, create_checkout_link and upload_part. For 7 days the same key with the same request returns the first response instead of creating another quote, part or payment link, and after that the same key runs the request again; the same key with a different request gets 422. A retry while the first request is still running gets 409 `IDEMPOTENCY_IN_PROGRESS` (wait `retry_after_s`). A checkout replay whose link stopped working (expired, replaced by a newer link, or the quote was ordered or discarded) gets a fresh link. Open quotes count toward `max_open_quotes` (see Limits; past it, `POST /quotes` answers 429 `OPEN_QUOTE_LIMIT`). `GET /quotes?status=open|expired|ordered|all&limit=` lists your quotes newest first without repricing them, and `POST /quotes/{id}/discard` closes one you no longer need: it becomes `expired` and can't be paid. A quote past `expires_at` doesn't count until you read or change it again, which re-bases it to live prices. ## Limits The current values are in `limits` from `GET /api/agent/v1/capabilities` (MCP: `get_capabilities`), no key needed. Responses carry no X-RateLimit headers; a 429 has `retry_after_s` and a `Retry-After` header. - 60 requests per minute per key, REST and MCP together (429 RATE_LIMITED). - Files up to 95 MB. 200 uploads per hour and 5 GB per day per account (429 UPLOAD_QUOTA). - 50 open quotes per account (429 OPEN_QUOTE_LIMIT) and 25 items per quote. - Request bodies up to 2 MB, except uploads: multipart and the signed PUT up to 100 MB, JSON up to 16 MB. MCP `upload_part` takes base64 up to about 3 MB; send larger files by URL or `get_upload_url`. - 10 new agent accounts per IP address per day. - No spending limits by default. An admin can set one for an account; `GET /account` shows yours (403 SPENDING_LIMIT). ## Errors Errors are JSON `{"error": true, "status", "message", "code", "field"?, "allowed"?, "next_steps"?, "retry_after_s"?, "request_id"}`. Branch on `code`; codes are only ever added. Wait `retry_after_s` seconds when it is set. MCP tool errors read `Error executing tool : : : `. Every response has an `X-Request-Id` header; quote it (or `request_id`) when you report a problem. - INVALID_ARGUMENT (400, 422), INVALID_CONFIG (422: see `allowed`), AUTH_REQUIRED (401), PAYMENT_REQUIRED (402), FORBIDDEN (403), SPENDING_LIMIT (403) - NOT_FOUND (404), CONFLICT (409), QUOTE_CLOSED (409), QUOTE_NOT_READY (409: see `next_steps`), CREDIT_CONFIRMATION_REQUIRED (409), IDEMPOTENCY_IN_PROGRESS (409), EXPIRED (410) - FILE_TOO_LARGE (413), UNSUPPORTED_FILE_TYPE (415), RATE_LIMITED (429), OPEN_QUOTE_LIMIT (429), UPLOAD_QUOTA (429) - SERVICE_UNAVAILABLE (503), AGENTS_PAUSED (503), INTERNAL_ERROR (500) ## Webhooks Set `callback_url` on your account (`POST /api/agent/v1/accounts` or `PATCH /api/agent/v1/account`) and we POST events for your parts, quotes and orders to it: `part.analyzed`, `quote.ready`, `quote.needs_review`, `order.paid`, `order.status_changed`, `order.shipped`, `order.delayed`, `order.canceled`, `order.refunded`. - Body: `{"event": "order.shipped", "data": {...}, "id": "evt_123", "created": 1790000000}`. - Signature: `X-MPN-Signature: t=,v1=." + raw body)>`. Check it against the raw body and refuse an old `t`. - Any answer other than 2xx is a failure. We retry up to 5 times, after 10 s, 60 s, 5 min, 15 min and 1 h. A retry has the same `id`, and events can arrive more than once or out of order, so dedupe on `id`. - Accept the request when any `v1` matches. For 24 hours after a secret rotation the header carries two: `t=..,v1=,v1=`. - Rotate the secret: `POST /api/agent/v1/account/webhook-secret/rotate` returns the new `webhook_secret` (shown once) and `previous_valid_until`. Until then every callback is signed with both, so switch your receiver within 24 hours. The account email is told, at most once per 24 hours. Rotating again ends the older secret at once. 5 per hour. - Delivery log: `GET /api/agent/v1/account/webhooks/deliveries` lists your last deliveries (kept 30 days): `id`, `event`, `status` (`delivered`, `failed` or `pending`), `attempts`, `response_status` and `error`. `POST /api/agent/v1/account/webhooks/deliveries/{id}/redeliver` sends one again to your current `callback_url`, with the same `id`. `POST /api/agent/v1/account/webhooks/test` sends a `webhook.test` event (5 per hour). Verify a callback (Python): ```python import hashlib, hmac, time def verify(secret: str, header: str, raw_body: bytes, tolerance: int = 300) -> bool: # X-MPN-Signature holds two v1 values during a secret rotation: accept any that matches. fields = [p.split("=", 1) for p in header.split(",") if "=" in p] ts = next((v for k, v in fields if k == "t"), "") if not ts.isdigit() or abs(time.time() - int(ts)) > tolerance: return False mac = hmac.new(secret.encode(), f"{ts}.".encode() + raw_body, hashlib.sha256).hexdigest() return any(k == "v1" and hmac.compare_digest(v, mac) for k, v in fields) ``` Node: ```js const crypto = require("node:crypto"); // rawBody: the request body as a Buffer, before any JSON parsing. Accepts any v1 (two during a secret rotation). function verify(secret, header, rawBody, toleranceS = 300) { const fields = header.split(",").map((p) => p.split("=")); const ts = (fields.find(([k]) => k === "t") || [])[1] || ""; if (!/^[0-9]+$/.test(ts) || Math.abs(Date.now() / 1000 - Number(ts)) > toleranceS) return false; const mac = crypto.createHmac("sha256", secret).update(ts + ".").update(rawBody).digest(); return fields.some(([k, v]) => k === "v1" && /^[0-9a-f]{64}$/.test(v) && crypto.timingSafeEqual(Buffer.from(v, "hex"), mac)); } ``` ## MCP Streamable HTTP endpoint: `https://makepartsnow.com/mcp`. Tools: get_capabilities, create_agent_account, get_account, update_account, upload_part, get_upload_url, get_part, create_quote, get_quote, list_quotes, discard_quote, update_quote, create_checkout_link, pay_with_crypto, get_order, list_orders, set_refund_preference, request_order_cancellation. Authenticate with an agent API key (Bearer), or with OAuth 2.1 + PKCE to act for a website customer (`https://makepartsnow.com/.well-known/oauth-authorization-server`). Every tool returns `structuredContent`. `create_quote`, `get_quote` and `update_quote` declare a typed `outputSchema`, `QuoteView`: the same quote as the REST API's, which the OpenAPI document describes with `CheckoutLink` and `ErrorBody`. Stability: `/mcp` and `/api/agent/v1` change additively within v1. New tools, endpoints and optional fields can appear; nothing is removed or renamed. ## AI assistants (ChatGPT, Claude, Cursor, Gemini, Grok, Hermes, OpenClaw) Streamable HTTP endpoint: `https://makepartsnow.com/mcp/assistant`. No account needed to quote: call `quote_part` with the file and quantity and it returns the price and dates for every speed, then `create_checkout_link` gives a link where the person pays. Sign-in (OAuth) is only needed for `get_order_status`. Clients that require sign-in up front can use `https://makepartsnow.com/mcp/assistant/signin`. Tools: get_manufacturing_options, create_upload_link, analyze_part, quote_part, update_quote, create_checkout_link, get_order_status, delete_uploaded_part. ChatGPT: open Make Parts Now in ChatGPT (https://chatgpt.com/plugins/plugin_asdk_app_6ac6b0603f148191a62de98036e472e1) and choose Try in chat. Claude: open Make Parts Now in Claude's directory (https://claude.ai/directory/makepartsnow) and choose Connect to Claude. Hermes Agent: `hermes plugins install make-parts-now` (our plugin in the Hermes catalog), or add `https://makepartsnow.com/mcp/assistant?client=hermes` under `mcp_servers` in `~/.hermes/config.yaml`. OpenClaw: `openclaw plugins install clawhub:@makepartsnow/make-parts-now` (it connects to `https://makepartsnow.com/mcp/assistant?client=openclaw`). Cursor: add `https://makepartsnow.com/mcp/assistant?client=cursor` as an MCP server `url` in `.cursor/mcp.json`. Gemini CLI: `gemini extensions install https://github.com/makepartsnow/makepartsnow-gemini` (it connects to `https://makepartsnow.com/mcp/assistant?client=gemini`). Grok Build: `grok mcp add --transport http make-parts-now "https://makepartsnow.com/mcp/assistant?client=grok"`. [Setup for each app](https://makepartsnow.com/developers#ai-assistants). ## Speeds economy (cheapest, slowest), standard, fast, faster, fastest (next-day ship, FDM only). Faster speeds add a rush fee and may require overnight shipping. Quotes hold their price for 30 days. ## Rules - No CUI, ITAR, or export-controlled data. Every upload requires `no_controlled_data: true`. - Some parts (CNC non-standard, large quantities) go to manual review. `action_needed` and `next_steps` explain what's happening, and you'll get a `quote.ready` webhook when it's priced. - USDC refunds go to the paying wallet or to account credit. Choose with `POST /orders/{id}/refund-preference`. - `POST /orders/{id}/cancel-request` (MCP: `request_order_cancellation`) asks a person to cancel an order that hasn't shipped. Asking again within 24 hours adds the reason without notifying the shop twice. - `PATCH /account` (MCP: `update_account`) changes the email, ship_to or callback_url; a new email or callback_url is emailed to the previous account email. Key rotation (`POST /account/rotate-key`) is REST-only. ## Guides - [What SLS nylon parts cost](https://makepartsnow.com/sls-nylon-printing-cost): instant-quote prices for 21 open-source parts in SLS PA12 nylon at 1, 10, 50 and 100 units, and what drives the cost. - [3D printed electronics enclosures](https://makepartsnow.com/3d-printed-electronics-enclosures): enclosure prices in SLS nylon and FDM, and design rules for walls, lids, snap fits and threaded inserts. - [Small-batch production](https://makepartsnow.com/small-batch-production): batch prices from 10 to 100+ units, with no tooling and no minimum order. ## Links - [OpenAPI](https://makepartsnow.com/api/agent/v1/openapi.json) - [Developer docs](https://makepartsnow.com/developers) - [Terms of Sale](https://makepartsnow.com/legal/terms) - [Agent Terms](https://makepartsnow.com/legal/agent-terms) - [Controlled data policy](https://makepartsnow.com/legal/controlled-data)