{"openapi":"3.1.0","info":{"title":"Stamped Sidewalks Agent API","version":"1.1.0","description":"Public, agent-facing endpoints. Free: a price quote from the words on a stamp (measured size, price, shipping estimate and a link that opens the design) and order tracking. Paid: a digital design proof payable over HTTP 402 (MPP with the stripe method, or x402 in USDC). Pricing by dimensions alone is the calculate_stamp_price tool on the MCP server at /api/mcp/mcp. See /auth.md for the auth model and /api/v1/openapi.json for the API-key partner API.","contact":{"name":"Stamped Sidewalks","email":"support@stampedsidewalks.com"}},"servers":[{"url":"https://stampedsidewalks.com"}],"x-service-info":{"categories":["shopping","custom-manufacturing","design"],"docs":{"homepage":"https://stampedsidewalks.com","apiReference":"https://stampedsidewalks.com/api/v1/openapi.json","llms":"https://stampedsidewalks.com/llms.txt"}},"paths":{"/api/paid/design-proof":{"post":{"operationId":"createDesignProof","summary":"Stamp design proof (SVG)","description":"Production-quality proof SVG of a custom concrete stamp design — the same reading-orientation render the shop generates for paid orders. Unpaid requests receive an HTTP 402 challenge (MPP WWW-Authenticate: Payment with the stripe SPT method, plus an x402 v1 JSON body when configured). Provide billing_address to calculate the final total including tax before paying. Keep the same design, billing address, Idempotency-Key, and credential on retries to recover the original file.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Generate one unpredictable key per proof; retain it for payment and delivery retries.","schema":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$"}}],"x-payment-info":{"intent":"charge","method":"stripe","amount":"500","currency":"usd","description":"Base price before location-dependent tax (Stamp design proof (SVG)). Use the saved proof's 402 challenge for the final payable amount."},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text","width_inches","height_inches","billing_address"],"additionalProperties":false,"properties":{"billing_address":{"type":"object","additionalProperties":false,"required":["line1","city","country"],"description":"Billing location for digital proof tax. US and Canada also require state/province and postal_code. Keep it identical on payment retries. Legacy proof recovery uses its original request body.","properties":{"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","minLength":1,"maxLength":120},"state":{"type":"string","maxLength":120},"postal_code":{"type":"string","maxLength":20},"country":{"type":"string","pattern":"^[A-Za-z]{2}$"}}},"text":{"type":"string","maxLength":400,"description":"Stamp text; newlines separate lines (max 10)"},"width_inches":{"type":"number","minimum":6,"maximum":94,"description":"The stamp must have one side 46\" or less and the other 94\" or less."},"height_inches":{"type":"number","minimum":6,"maximum":94,"description":"The stamp must have one side 46\" or less and the other 94\" or less."},"font":{"type":"string","enum":["arial-rounded","verdana","red-hat-text","open-sans","archivo-black","oswald","roboto-slab","cinzel-bold","pacifico"],"description":"Font key. One of: arial-rounded (Nunito ExtraBold, letters 1.25\" and up); verdana (DejaVu Sans Bold, letters 1\" and up); red-hat-text (Red Hat Text Bold, letters 1.25\" and up); open-sans (Open Sans Bold, letters 1.25\" and up); archivo-black (Archivo Black, letters 1.25\" and up); oswald (Oswald Bold, letters 1.5\" and up); roboto-slab (Roboto Slab ExtraBold, letters 1.5\" and up); cinzel-bold (Cinzel Bold, letters 2.5\" and up, capitals); pacifico (Pacifico, letters 1.75\" and up). Default arial-rounded."},"letter_height_inches":{"type":"number","minimum":1,"maximum":3,"default":2},"alignment":{"type":"string","enum":["left","center","right"],"default":"center"},"line_spacing":{"type":"number","minimum":1,"maximum":2,"default":1.75}}}}}},"responses":{"200":{"description":"Proof SVG (reading orientation)","content":{"image/svg+xml":{"schema":{"type":"string"}}}},"400":{"description":"Missing idempotency key or conflicting payment headers"},"402":{"description":"Payment Required — MPP Payment challenge in WWW-Authenticate and x402 PaymentRequirements in the JSON body"},"409":{"description":"Request conflict or payment awaiting recovery; do not pay again"},"422":{"description":"Design failed validation or layout"},"429":{"description":"Rate limited"},"503":{"description":"Payment configuration or recovery temporarily unavailable"}}}},"/api/quote-inscription":{"post":{"operationId":"quoteInscription","summary":"Price a stamp from its words (free)","description":"Measures the lettering with the designer's own layout engine and returns the stamp size (each side is the text plus a 1-inch border, at least 6 inches, rounded up to whole inches), the price ($0.60 per square inch, $100 minimum per stamp, excluding tax), a standard shipping estimate, how far ahead of a pour to order, warnings that would stop the order, and design_url, which opens exactly this design in the 3D designer where the person orders it. Read-only; no auth.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lines":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","maxLength":60},"description":"The stamp's words, one array entry per line (1-8 lines, each at most 60 characters). An empty string is a blank line."},"font":{"type":"string","enum":["arial-rounded","verdana","red-hat-text","open-sans","archivo-black","oswald","roboto-slab","cinzel-bold","pacifico"],"description":"Font key. One of: arial-rounded (Nunito ExtraBold, letters 1.25\" and up); verdana (DejaVu Sans Bold, letters 1\" and up); red-hat-text (Red Hat Text Bold, letters 1.25\" and up); open-sans (Open Sans Bold, letters 1.25\" and up); archivo-black (Archivo Black, letters 1.25\" and up); oswald (Oswald Bold, letters 1.5\" and up); roboto-slab (Roboto Slab ExtraBold, letters 1.5\" and up); cinzel-bold (Cinzel Bold, letters 2.5\" and up, capitals); pacifico (Pacifico, letters 1.75\" and up). Default arial-rounded."},"letter_height_inches":{"description":"Capital-letter height in inches. Omit to use the designer's default (1.75\"), stepped down in 0.25\" steps to the font's floor if the stamp wouldn't otherwise have one side 46\" or less and the other 94\" or less.","type":"number","minimum":1,"maximum":3},"depth_inches":{"description":"Impression depth in inches: 0.25 (standard, the default) or 0.125 for cities that specify a 1/8\" impression. Same price.","anyOf":[{"type":"number","const":0.25},{"type":"number","const":0.125}]}},"required":["lines"],"additionalProperties":false}}}},"responses":{"200":{"description":"Quote","content":{"application/json":{"schema":{"type":"object","required":["width_inches","height_inches","unit_price","unit_price_cents","orderable","warnings","design_url"],"properties":{"lines":{"type":"array","items":{"type":"string"},"description":"The lines as they will be stamped"},"font":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"letter_height_floor_inches":{"type":"number"}}},"letter_height_inches":{"type":"number"},"letter_height_source":{"type":"string","enum":["requested","fitted"]},"depth_inches":{"type":"number","enum":[0.25,0.125],"description":"Impression depth quoted, inches"},"width_inches":{"type":"integer","description":"Plate width, whole inches"},"height_inches":{"type":"integer","description":"Plate height, whole inches"},"square_inches":{"type":"integer"},"unit_price":{"type":"string","description":"Formatted US dollars, excluding tax"},"unit_price_cents":{"type":"integer"},"rate_per_square_inch":{"type":"string"},"order_minimum":{"type":"string"},"at_order_minimum":{"type":"boolean"},"shipping":{"type":["object","null"],"description":"Estimate for one stamp; null when no carrier rate applies","properties":{"service":{"type":"string"},"amount":{"type":"string"},"amount_cents":{"type":"integer"},"handling_business_days":{"type":["array","null"],"items":{"type":"integer"},"description":"[min, max] business days to dispatch; null for freight"},"transit_business_days":{"type":"array","items":{"type":"integer"}}}},"turnaround":{"type":"string"},"order_ahead":{"type":"string"},"orderable":{"type":"boolean","description":"False when a blocking warning would stop the order"},"warnings":{"type":"array","items":{"type":"object","required":["code","message","blocking"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"blocking":{"type":"boolean"}}}},"design_url":{"type":"string","format":"uri","description":"Opens exactly this design in the 3D designer, where it is ordered"},"notes":{"type":"string"}}}}}},"400":{"description":"Body is not JSON","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"413":{"description":"Body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"422":{"description":"Invalid lines, font or letter height","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"object"}},"required":["error"]}}}},"429":{"description":"Rate limited; retry after a minute","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Quotes temporarily unavailable; retry","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/api/track":{"post":{"operationId":"trackOrder","summary":"Track an order by number + purchase email (free)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["orderNumber","email"],"additionalProperties":false,"properties":{"orderNumber":{"type":"string","minLength":4,"maxLength":32},"email":{"type":"string","format":"email","maxLength":254}}}}}},"responses":{"200":{"description":"Order status","content":{"application/json":{"schema":{"type":"object","required":["order"],"properties":{"order":{"type":"object","additionalProperties":true,"properties":{"order_number":{"type":"string"},"status":{"type":"string"},"payment_status":{"type":"string"},"production_status":{"type":["string","null"]},"subtotal_cents":{"type":"integer"},"shipping_cents":{"type":"integer"},"tax_cents":{"type":"integer"},"total_cents":{"type":"integer"},"tracking_number":{"type":["string","null"]},"tracking_url":{"type":["string","null"]},"estimated_delivery":{"type":["string","null"]},"ship_date":{"type":["string","null"]},"created_at":{"type":"string"},"items":{"type":"array","items":{"type":"object"}},"packages":{"type":"array","items":{"type":"object"}},"action_needed":{"type":["object","null"],"properties":{"title":{"type":"string"},"message":{"type":"string"},"url":{"type":"string"}}}}}}}}}},"404":{"description":"No order matches that number + email pair","content":{"application/json":{"schema":{"type":"object","properties":{"order":{"type":"null"}}}}}},"422":{"description":"Invalid order number or email","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many lookups (20 per hour per client)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"Lookup failed; retry","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}}}}