{"openapi":"3.1.0","info":{"title":"Tectonic Maps for AI assistants","description":"Custom 3D-printed route maps, made in the UK. Look up products and delivery dates, build the real map for a route, and give the buyer an approval link: they check it and pay on tectonicmaps.com. Assistants cannot pay or download print files. UK delivery only. Limits: 8 new maps an hour per address; please re-use quotes.","version":"1.0.0","contact":{"email":"hello@tectonicmaps.com","url":"https://tectonicmaps.com/ai"}},"servers":[{"url":"https://api.tectonicmaps.com"}],"paths":{"/api/agent/products":{"get":{"tags":["AI assistants"],"summary":"All products with every attribute and live prices","operationId":"products_api_agent_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/agent/delivery":{"get":{"tags":["AI assistants"],"summary":"Dispatch time, delivery estimate and order-by dates (UK)","operationId":"delivery_api_agent_delivery_get","parameters":[{"name":"deliver_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliver By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/quote":{"post":{"tags":["AI assistants"],"summary":"Build the map for a route and get previews, price, delivery date and an approval link","operationId":"quote_api_agent_quote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/quote/{quote_id}":{"get":{"tags":["AI assistants"],"summary":"A quote again, or its progress while the map is being built","operationId":"quote_get_api_agent_quote__quote_id__get","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","title":"Quote Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/preview/{quote_id}/{fname}":{"get":{"tags":["AI assistants"],"summary":"Preview pictures: card.jpg (everything), top.jpg, side.jpg, poster-sample.jpg","operationId":"preview_api_agent_preview__quote_id___fname__get","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","title":"Quote Id"}},{"name":"fname","in":"path","required":true,"schema":{"type":"string","title":"Fname"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"QuoteIn":{"properties":{"route":{"$ref":"#/components/schemas/RouteIn"},"product":{"type":"string","title":"Product","description":"Only custom-3d-route-map can be quoted.","default":"custom-3d-route-map"},"frame":{"type":"string","title":"Frame","description":"black or white","default":"black"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Title on the poster (up to 60 characters). Defaults to the route name."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Name(s) printed on the poster, e.g. \"Sam & Alex\" (up to 40)."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"Personal message printed on the poster (up to 120)."},"deliver_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliver By","description":"Date the buyer needs it by, e.g. 2026-12-20."},"client":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client","description":"Your assistant's name, e.g. chatgpt (for our records)."},"wait_seconds":{"type":"integer","maximum":55.0,"minimum":0.0,"title":"Wait Seconds","description":"How long to wait for the map before replying 'building'.","default":40}},"type":"object","required":["route"],"title":"QuoteIn"},"RouteIn":{"properties":{"gpx":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gpx","description":"The GPX file's text."},"gpx_base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gpx Base64","description":"A GPX, FIT, TCX or KML file, base64-encoded."},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename","description":"File name for gpx_base64, e.g. ride.fit (sets the format)."},"gpx_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gpx Url","description":"A public https:// link straight to a GPX/FIT/TCX/KML file."},"waypoints":{"anyOf":[{"items":{"anyOf":[{"type":"string"},{"items":{"type":"number"},"type":"array"},{"additionalProperties":{"type":"number"},"type":"object"}]},"type":"array"},{"type":"null"}],"title":"Waypoints","description":"The route in order, e.g. [\"Pen-y-Pass\", [53.0685, -4.0762]]. Place names or [lat, lon]. Paths between them are followed automatically (Great Britain and Ireland)."},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode","description":"For waypoints: walk (also run, hike), cycle, gravel or mtb.","default":"walk"},"known_route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Known Route","description":"A named trail or route, e.g. \"West Highland Way\"."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"What to call the route (the map title). Optional."}},"type":"object","title":"RouteIn"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}