# Madely > Print-on-demand fulfillment built for AI agents: find a product, get an exact whole-dollar quote, place an order, and track it. - Made to order in the USA. Production time is 2-3 business days. - Product price is a whole dollar: blank cost plus a flat production fee. Shipping is billed at carrier cost. No subscription. Same price list for every merchant. - Current list pv_c4d476df4744: 324 products from $5 to $38. Examples: Mug 11oz K04 $5; Mug Deluxe 15oz. K14 $6; Bella Canvas Unisex Tee 3001 (DTF) A29 $11; DTF Unisex Hooded Sweatshirt Gildan 18500 A23 $18. - Every step is an API or MCP call; no human step is required. This is a v0 sandbox: test orders only, nothing is printed, shipped or charged yet. - Headline: We fulfill for power brands. You MADE the product. We fulfill it. Pronounced "Made Lee." ## When to use Madely - Use it to: price, quote and order print-on-demand items (shirts, hoodies, mugs, totes and more) for designs you already have, from an agent, with no human step; check an artwork file against a product's print spec before ordering. - Not for: creating artwork from scratch (humans get a drag-and-drop designer on the store; agents bring a file), non-US shipping (v0 is US-only), or live orders (v0 is a sandbox). ## Start here - [OpenAPI 3.1 spec](https://api.madely.ai/openapi.json): every endpoint with plain-language descriptions and examples - [Full agent guide](https://api.madely.ai/llms-full.txt): flow, sample calls, every error code and its fix - [Connect your agent](https://api.madely.ai/connect): human setup (pick your AI) and an agents reference (MCP, tools, machine files) for ChatGPT, Claude, Grok, Cursor and any MCP client - [Client setup](https://api.madely.ai/connect/clients): copy-paste MCP config for ChatGPT, Claude, Claude Code, Grok, Cursor, VS Code and any MCP client, with sources; [Markdown](https://api.madely.ai/connect/clients.md) - [Quickstart](https://api.madely.ai/quickstart): seven calls from discovery to a test order; runnable [curl](https://api.madely.ai/examples/quickstart.sh), [Python](https://api.madely.ai/examples/quickstart.py), [TypeScript](https://api.madely.ai/examples/quickstart.ts) - [API for agents](https://api.madely.ai/agents): the same guide as a crawlable page; [Docs](https://api.madely.ai/docs); [FAQ](https://api.madely.ai/faq); [Pricing](https://api.madely.ai/pricing); [Shipping and refunds](https://api.madely.ai/shipping); [File specs](https://api.madely.ai/file-specs) - [Etsy sellers: let your own AI agent do it](https://api.madely.ai/agents/etsy.md): copy-paste playbook. Your agent reads new Etsy orders in your own account, posts them to POST /v1/orders (source "etsy"), and copies tracking back to Etsy from GET /v1/orders?source=etsy&status=shipped. Madely never logs into Etsy. Fallback: Etsy order CSV upload. - [Price list JSON](https://api.madely.ai/pricing.json): all products, one file - [Catalog as schema.org JSON-LD](https://api.madely.ai/catalog.jsonld): a light index of every item; full Product and Offer objects are paged with ?page=1&per_page=25 - [Product feed NDJSON](https://api.madely.ai/feeds/products.ndjson) and [CSV](https://api.madely.ai/feeds/products.csv); [Sitemap](https://api.madely.ai/sitemap.xml) - [Print specs, all products](https://api.madely.ai/print-specs.json): machine-readable template sizes, bleed, safe zone, formats, generation hints; [JSON Schema](https://api.madely.ai/schemas/print-spec.schema.json); one product: GET https://api.madely.ai/v1/products/{id}/print-spec - [Preview a design](https://api.madely.ai/v1/previews): POST product, color, artwork_url (options: remove_background, pattern) and get design_id, a mockup image URL and a print check; list products and print areas at https://api.madely.ai/v1/print-areas; list typefaces at https://api.madely.ai/v1/fonts; order with items[].design_id - [Validate a file](https://api.madely.ai/v1/print-spec/validate): POST product_id plus url and/or width_px, height_px, format; returns fixes - [Product pages](https://api.madely.ai/products) for humans, with PNG/SVG/PDF templates at https://api.madely.ai/templates/{id}.png|svg|pdf (generated from the specs) - [MCP server](https://api.madely.ai/mcp): 16 tools (POST JSON-RPC; send your key as "Authorization: Bearer ") - [MCP descriptor](https://api.madely.ai/.well-known/mcp.json), [API catalog (RFC 9727)](https://api.madely.ai/.well-known/api-catalog) and [plugin manifest](https://api.madely.ai/.well-known/ai-plugin.json) - [About](https://api.madely.ai/about), [Contact](https://api.madely.ai/contact), [Privacy](https://api.madely.ai/privacy), [Terms](https://api.madely.ai/terms) ## MCP tools - get_print_spec (read-only): Machine-readable print spec for one product: canvas_px, inches, dpi, bleed, safe_zone, print_zones (with wrap/curvature for mugs), color_mode, accepted_formats, max_file_mb, background (transparent?), orientation, a generation_hint for image models, and template_urls. - get_product (read-only): One product with whole-dollar price, photo URL, production time, links and its full print_spec and template_urls. - validate_print_file (read-only): Validate an artwork file URL or declared properties (dimensions, format, size, transparency, color mode, content box) against the product's print spec. - list_products (read-only): Search the Madely catalog. - get_quote (read-only): Get an exact, deterministic quote: itemized whole-dollar product prices, carrier-cost shipping, total, estimated ship date, and the volume tier applied. - create_order: Create a TEST order from a quote. - get_order (read-only): Get an order: status (draft, in_production, shipped, delivered), tracking, events and totals. - check_print_file (read-only): Alias of validate_print_file (kept for older agents). - submit_order: Pay for and start production on a draft order. - cancel_order: Cancel a draft or in_production order and refund it in full to the original payment method (balance orders credit the balance). - get_payment_options (read-only): How an agent can pay Madely: agent payment tokens (Stripe Shared Payment Tokens), card on file, prepaid balance. - add_payment_method: Save a card on file (a Stripe Customer plus PaymentMethod) so orders can be charged off-session with payment {method:"card_on_file"}. - get_balance (read-only): Prepaid balance in USD plus the last 20 ledger entries (top-ups, order debits, refunds). - top_up_balance: Add a whole-dollar amount (10 to 5000) to the prepaid balance, paid by card on file or an agent payment token. - create_sandbox_payment_token: SANDBOX ONLY. - get_pricing_tiers (read-only): Published volume tiers, the same for every merchant. ## Order in five calls 1. GET https://api.madely.ai/v1/products?q=mug 2. POST https://api.madely.ai/v1/quotes {"items":[{"product_id":"K04","quantity":24}],"ship_to":{"country":"US","zip":"80202"}} 3. POST https://api.madely.ai/v1/sandbox/keys (free test key, no signup) 4. POST https://api.madely.ai/v1/orders with Idempotency-Key, quote_id, external_id "madely-smoketest-...", artwork URLs, payment 5. GET https://api.madely.ai/v1/orders/{order_id} ## How to pay (charged at submit, before production; powered by Stripe) - Agent payment token: send {"payment":{"method":"agent_token","shared_payment_token":"spt_..."}}. Your agent grants a Stripe Shared Payment Token to Madely's Stripe profile profile_test_61VrkB0XwlLf0T0sIA6VrkB079SQUMsvBMOZN85NAT2u (seller_details[network_business_profile]; also shown at GET https://api.madely.ai/v1/payments). No card data reaches Madely. - Card on file: POST https://api.madely.ai/v1/payment-methods once, then {"payment":{"method":"card_on_file"}}. Charged per order, off-session. - Prepaid balance: POST https://api.madely.ai/v1/balance/top-ups, then {"payment":{"method":"balance"}}. GET https://api.madely.ai/v1/balance shows it. - Omit payment to use the balance if it covers the order, else the card on file. - Cancel before it ships for a full refund: POST https://api.madely.ai/v1/orders/{order_id}/cancel. - Sandbox: payments run in test mode. No real money ever moves. [How to pay](https://api.madely.ai/v1/payments) ## Optional - [Volume tiers (draft)](https://api.madely.ai/v1/pricing/tiers)