{"openapi":"3.1.0","info":{"title":"CityFrames Preview API","version":"3.0.0"},"paths":{"/img/{design_id}/{view}":{"get":{"summary":"Preview Image","description":"Cacheable preview image — proxies the B2 object behind a stable URL.\n\nUses ETag REVALIDATION rather than ``immutable``: the same design_id can be\nre-rendered when the pipeline changes (the id only hashes lat/lon/size/scale,\nnot the render version), so the bytes behind this URL DO change. ``immutable``\nmade browsers/CDNs serve a stale copy for a year.\n\nTwo things were wrong with the ``max-age=0, must-revalidate`` that replaced\nit, both visible on the admin grid:\n\n* ``max-age=0`` means the browser revalidates before EVERY reuse, so\n  scrolling a card back into view re-requested its thumbnail and the tile\n  blanked while the round-trip ran. A short max-age plus\n  ``stale-while-revalidate`` lets it reuse what it has (and refresh in the\n  background), so scrolling costs nothing.\n* The ETag was ``md5(body)``, which cannot be known without the body — so a\n  304, whose whole point is not to transfer the object, still downloaded it\n  in full from B2 first. The bucket already keeps a version token per object\n  (``storage.version_of``), so the conditional check is now a HEAD and a 304\n  transfers nothing at either end.\n\nA re-render becomes visible within ``max-age``; anything that must show new\nbytes at once (the admin Redo button) appends its own cache-buster.","operationId":"preview_image_img__design_id___view__get","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"view","in":"path","required":true,"schema":{"type":"string","title":"View"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/design/save":{"post":{"summary":"Design Save","description":"Persist a shopper's designs onto their Shopify customer record.\n\nSync def on purpose: the Shopify Admin calls use blocking urllib, so FastAPI\nruns this in a threadpool — it must not block the shared preview event loop.","operationId":"design_save_design_save_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/design/list":{"get":{"summary":"Design List","description":"Return the logged-in customer's saved designs (for \"My Places\").\n\nReads are login-gated: we require a valid App Proxy signature AND a\nproxy-injected logged_in_customer_id. There is deliberately no email\nfallback — listing by email would let anyone enumerate another person's\nsaved designs.","operationId":"design_list_design_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/configurator/visit":{"post":{"summary":"Record Configurator Visit","description":"PUBLIC: the configurator calls this once on load — step 1 of the people\nfunnel. No body and no id: the session key is derived from the request\n(see pipeline/funnel.py), so this is idempotent per person per day and the\nclient has nothing to store or dedupe.","operationId":"record_configurator_visit_configurator_visit_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/design/{design_id}/step3":{"post":{"summary":"Mark Reached Step3","description":"PUBLIC: the configurator calls this once when the shopper opens the\n\"Customize & order\" view (step 3) for this design. Drops a\ndesigns/<id>/.reached_step3 marker so the owner funnel can count how many\ngenerated designs progressed to the order step. Idempotent (re-POSTing is a\nno-op overwrite), best-effort, and only marks a design that actually exists\n(its meta.json anchors it) so a bogus id can't litter storage.\n\nAlso records step 3 against the caller's session, for the people funnel —\nthe design marker answers \"did this design reach step 3\", which is a\ndifferent question from \"how many people did\".","operationId":"mark_reached_step3_design__design_id__step3_post","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/newsletter/confirm":{"post":{"summary":"Newsletter Confirm Route","description":"The theme's page /pages/newsletter-confirm, opened from the design email's \"Yes, send me news\": subscribe the\naddress behind the token (pipeline/newsletter_confirm). {\"status\": \"ok\" | \"already\" | \"expired\" | \"error\"}.","operationId":"newsletter_confirm_route_newsletter_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsletterConfirm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/abtest/{test}":{"post":{"summary":"Record Abtest Step","description":"PUBLIC: one step of a builder A/B test (pipeline/abtest.py), sent by a browser that is\nin it, i.e. has given consent. Best-effort and always \"ok\": the test never fails a page.","operationId":"record_abtest_step_abtest__test__post","parameters":[{"name":"test","in":"path","required":true,"schema":{"type":"string","title":"Test"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbtestStep"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/abtest/{test}":{"get":{"summary":"Admin Abtest","description":"INTERNAL: people per step for each version of a test, for the Sign-ups page. Owner-gated\nlike /admin/designs; purchases come from its cached rows (refreshed off the request path).","operationId":"admin_abtest_admin_abtest__test__get","parameters":[{"name":"test","in":"path","required":true,"schema":{"type":"string","title":"Test"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/coverage":{"get":{"summary":"Admin Coverage","description":"INTERNAL: the Coverage tab — where each dataset holds data, and every design's location\n([lon, lat, product, purchased, staff, design_id, created epoch]). Owner-gated like /admin/designs.\n``?rebuild=1`` starts a full build (minutes); ``?rebuild=recon`` starts redoing the reconstruction\n(about a minute; ``refreshing`` in the answer); ``?fresh=1`` reads the stored map from the bucket now\ninstead of the copy up to 10 minutes old (another API worker may have just refreshed it).","operationId":"admin_coverage_admin_coverage_get","parameters":[{"name":"rebuild","in":"query","required":false,"schema":{"type":"string","default":"","title":"Rebuild"}},{"name":"fresh","in":"query","required":false,"schema":{"type":"string","default":"","title":"Fresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/design/{design_id}/feedback":{"post":{"summary":"Submit Feedback","description":"PUBLIC: a shopper leaves free-text feedback on a generated model from the\nconfigurator's preview step. APPENDS to designs/<id>/feedback.json (a JSON\nlist) — earlier feedback is never overwritten. Best-effort; only records for\na design that actually exists.\n\nTwo kinds ride this one endpoint and one list, because they are two steps of\nthe same conversation about the same model:\n\n- ``kind=\"feedback\"`` — the note. Text required, email absent (the form no\n  longer asks for one here).\n- ``kind=\"quote\"``    — \"quote me for hand-refinement\". EMAIL is the payload\n  and is required; the text is optional scope detail. Rejecting these for an\n  empty text would drop a sales lead over a blank optional field.","operationId":"submit_feedback_design__design_id__feedback_post","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/designs":{"get":{"summary":"Admin Designs","description":"INTERNAL: list EVERY generated design (newest first) for the owner-only\nadmin page. Not used by the storefront.\n\nDouble-gated: requires a valid App Proxy signature AND the proxy-injected\nlogged_in_customer_id must belong to the owner account\n(ADMIN_DESIGNS_OWNER_EMAIL). The row list itself comes from _admin_rows —\nmemory, then the persisted snapshot, and only as a last resort a synchronous\nrebuild. A design made since 2026-11-20 carries the place the configurator\nnamed (``place_name``); for older ones the client reverse-geocodes the\ncoordinates for display.","operationId":"admin_designs_admin_designs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/designs/{design_id}/staff":{"post":{"summary":"Admin Set Staff","description":"INTERNAL: manually mark/unmark a design as staff-made (?value=1 sets,\n?value=0 clears). Owner-gated (same double gate as /admin/designs). Writes\nby_staff into the design's meta.json so the all-designs page styles it as\nstaff — for models generated while logged out, which get no automatic stamp.","operationId":"admin_set_staff_admin_designs__design_id__staff_post","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"value","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Value"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/designs/{design_id}/inspection":{"post":{"summary":"Admin Set Inspection","description":"INTERNAL: flag/unflag a design for inspection (?value=1 sets, ?value=0\nclears). Owner-gated. Writes `inspection` into the design's meta.json so the\nall-designs page shows a blue label and the Inspection filter can find it —\nfor flagging designs where something looks off, for a colleague to review.","operationId":"admin_set_inspection_admin_designs__design_id__inspection_post","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"value","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Value"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/designs/{design_id}/area-idea":{"post":{"summary":"Admin Set Area Idea","description":"INTERNAL: flag/unflag a design as an \"Area Idea\" (?value=1 sets, ?value=0\nclears). Owner-gated. Writes `area_idea` into the design's meta.json so the\nall-designs page shows a badge and the Area Idea filter can find it — for\nmarking designs whose location/framing is worth developing into a curated\nidea. Same shape as the inspection flag, just a second independent marker.","operationId":"admin_set_area_idea_admin_designs__design_id__area_idea_post","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"value","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Value"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/job-alerts":{"get":{"summary":"Admin Job Alerts","description":"INTERNAL: list open (unresolved) job alerts, most-hit + most-recent first.\nPass ?resolved=1 to include resolved rows too.","operationId":"admin_job_alerts_admin_job_alerts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/job-alerts/{alert_id}/resolve":{"post":{"summary":"Admin Resolve Job Alert","description":"INTERNAL: mark a job alert solved (?value=1, default) or re-open it\n(?value=0). Owner-gated. A fresh occurrence of the same problem re-opens it\nautomatically, so a re-appearing alert means it isn't actually fixed yet.","operationId":"admin_resolve_job_alert_admin_job_alerts__alert_id__resolve_post","parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"string","title":"Alert Id"}},{"name":"value","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Value"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/designs/{design_id}/redo":{"post":{"summary":"Admin Redo","description":"INTERNAL: re-render THIS exact design from scratch (same design_id).\nOwner-gated (same double gate as /admin/designs). Rebuilds the JobRequest from\nthe design's persisted meta.json, DELETES its cached render artifacts (so every\nlayer — model + trees/streets/both heroes, merged combo STLs, add-on, extra\nviews, debug/validation — regenerates with current code), and enqueues a\npreview job. meta.json + the .saved/.purchased markers + config.json + any\nextended/ exports are preserved; job_runner merges the sticky meta fields\n(creation time, staff/inspection flags, purchase record) forward.\n\nLets staff verify a code fix on an existing design without reopening the\nconfigurator. Returns {design_id, status: enqueued|already_running, cleared}.","operationId":"admin_redo_admin_designs__design_id__redo_post","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/extended/{design_id}":{"post":{"summary":"Admin Extended Create","description":"Enqueue an extended-export job for a design. Returns a job_id to poll.","operationId":"admin_extended_create_admin_extended__design_id__post","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/extended/status/{job_id}":{"get":{"summary":"Admin Extended Status","description":"Poll an extended-export job. status in queued|running|done|error.","operationId":"admin_extended_status_admin_extended_status__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/extended/download/{job_id}":{"get":{"summary":"Admin Extended Download","description":"Redirect to the finished GLB (presigned), or stream it (local backend).","operationId":"admin_extended_download_admin_extended_download__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/design/remove":{"post":{"summary":"Design Remove","description":"Remove one saved design from the logged-in customer's list.","operationId":"design_remove_design_remove_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/design/rename":{"post":{"summary":"Design Rename","description":"Rename one saved design (update its `label` in place — no reorder, no\nKlaviyo event). Identity is the logged-in customer, or an email (find-only,\nnever creates) for designs saved while logged out.","operationId":"design_rename_design_rename_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/withdrawal":{"post":{"summary":"Withdrawal","description":"Record an EU right-of-withdrawal declaration and trigger the confirmations.\n\nSync def on purpose: the storage write + Klaviyo calls use blocking urllib,\nso FastAPI runs this in its threadpool (never blocks the preview event loop).","operationId":"withdrawal_withdrawal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/orders-paid":{"post":{"summary":"Orders Paid","description":"Shopify `orders/paid` webhook. Writes/refreshes the `.saved` marker for\nevery design ordered, so a purchased CUBE's STL + previews survive the\ncleanup window even if the shopper never emailed the design to themselves.\n\nVerified against the admin-created webhook's signing secret (raw-body HMAC,\nbase64). The app only holds read/write_customers scopes — no read_orders —\nso this is registered as a store webhook in Admin → Notifications, not via\nthe app's API scopes.","operationId":"orders_paid_webhooks_orders_paid_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/orders-edited":{"post":{"summary":"Orders Edited","description":"An order was edited; put RETAG on it so the sweep works it out again.\n\nThe tagger reads the order's CURRENT items, but the minute sweep and the\nhalf-hourly poll only look at orders created in the last three days. An\norder edited after that kept its old box, weight, service and incoterm\nuntil somebody noticed — 5 of 187 orders between mid-July and mid-September\nwere edited after being placed, every one of them a removal. RETAG is\nalready in both sweeps' query whatever the order's age, and the writer\nconsumes it, so a tag is the whole mechanism: nothing is recomputed here.\n\nRETAG is the COMPLETE redo, so a box or weight somebody set by hand goes\nback to the derived figure. That is the point of it — the items changed,\nso a measurement of the old parcel no longer describes the new one.\n\nSkipped where there is nothing left to label: a fully fulfilled order, and\na cancelled one. A partially fulfilled order is retagged, because the rest\nof it is a parcel still waiting.\n\nReturns 200 for everything except a bad signature, like the other hooks —\na webhook that errors is retried by Shopify for days, and a missed edit is\none RETAG somebody can still add by hand.","operationId":"orders_edited_webhooks_orders_edited_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/fulfilment-created":{"post":{"summary":"Fulfilment Created","description":"Somebody fulfilled some items; buy the label for that box.\n\nSubscribed to fulfillments/create, which fires on the gesture itself. The\nroute it replaced was subscribed to orders/updated, because Shopify has no\ntopic for OPEN -> IN_PROGRESS on a merchant-managed fulfilment order — that\ntransition is visible only on the order, so every change to every order had\nto be inspected to find it. This one is exact.\n\nChoosing the items IS creating the fulfilment, which is why fulfilling is\nthe trigger: it is the only gesture in the admin that says what is in a\nparticular box. The declaration is built from that, so a split shipment\ndescribes its own contents.\n\nA fulfilment that already carries a tracking number is not ours — somebody\nlabelled it by hand — and is dismissed without an API call.\n\nReturns 200 for everything except a bad signature, and returns it AT ONCE:\nthe booking runs after the answer has gone (_book_from_webhook). Shopify\nwaits five seconds and then delivers the same webhook again, and a booking\ncan take longer than that — a FiSaLis re-check alone is several seconds.\nThat repeat was one of the three labels #2118067 got on 16 November. A\nwebhook that errors is retried by Shopify for two days and nothing here is\nworth retrying: the sweep looks for the same fulfilments every minute,\nwhich is why both exist.","operationId":"fulfilment_created_webhooks_fulfilment_created_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/stl/{design_id}":{"get":{"summary":"Admin Stl","description":"Serve a design's printable STL to an authenticated admin (Basic Auth) or a\nvalid signed link. ``combo`` ∈ {model, trees, streets, both} downloads that\nstack as ONE merged STL (built + cached on first request). Otherwise 401\n(browser prompt); unknown id → 404.\n\n``?marker=1`` (the staff page's button): a design that prints with a\nlocation marker comes as one zip, the download beside the marker's socket\nparts (_marker_print_files). Without it — the workshop's slicer, which asks\n/admin/marker-parts on its own — the download is as ever.","operationId":"admin_stl_admin_stl__design_id__get","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"combo","in":"query","required":false,"schema":{"type":"string","default":"model","title":"Combo"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/design-facts/{design_id}":{"get":{"summary":"Admin Design Facts","description":"The facts the workshop's slicer needs before it fetches /admin/stl — see\n``design_facts``. Same credential as the STL download: a signed link or the\nstaff Basic Auth; 401 otherwise, 404 for an unknown design.","operationId":"admin_design_facts_admin_design_facts__design_id__get","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/marker-parts/{design_id}":{"get":{"summary":"Admin Marker Parts","description":"The location marker's socket for the slicer, as parts beside the print\n(marker_jobs.socket_parts): one zip with ``negative.stl`` (the hole, a\nnegative part), ``seat.stl`` (the solid collar, a modifier) and\n``marker.json`` (shape, point, the seat's settings, where the socket sits),\nall in the frame of the /admin/stl download (model metres). The same\ncredential as the download; 404 for an unknown design or one without a\nmarker, 409 when the map finds no room at the marker's point. ``combo``\ndefaults to the layers the design prints with (design_facts).","operationId":"admin_marker_parts_admin_marker_parts__design_id__get","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"combo","in":"query","required":false,"schema":{"type":"string","default":"","title":"Combo"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/order-tag/{design_id}":{"get":{"summary":"Admin Order Tag","description":"Serve the design's printed ORDER TAG as an STL — a tiny label plate with\nthe Shopify order name, printed next to the model and laid on the box so the\npacked print stays matched to its order.\n\nGenerated in memory per request (~ms) from the ``order_name`` the\norders-paid webhook recorded in meta.json — nothing is stored, and the\nmodel itself is never re-rendered. ``?text=`` overrides the label (e.g. a\nmanual order, or a design not yet purchased). Same auth as /admin/stl.\n404 with a plain-text hint when the design has no recorded order and no\noverride was given.","operationId":"admin_order_tag_admin_order_tag__design_id__get","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"text","in":"query","required":false,"schema":{"type":"string","default":"","title":"Text"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/shipments/invoice":{"post":{"summary":"Admin Shipment Invoice","description":"INTERNAL: take a UPS invoice CSV and say what is in it.\n\nUPS publishes no billing API on this account, so the invoice arrives as a\nfile and comes in through the page. The body is JSON rather than multipart:\nan App Proxy request is signed over its query string, and a JSON body\ntravels that path without the encoding surprises multipart brings.\n\nStored verbatim, and the response describes what was found rather than\ndeciding what it means — the mapping from columns to meaning is written once\nthe real headers are known.","operationId":"admin_shipment_invoice_admin_shipments_invoice_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/shipments/invoices":{"get":{"summary":"Admin Shipment Invoices","description":"INTERNAL: what has been uploaded so far.","operationId":"admin_shipment_invoices_admin_shipments_invoices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/zoll":{"get":{"summary":"Admin Zoll","description":"INTERNAL: every logbook row, newest first.","operationId":"admin_zoll_admin_zoll_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/zoll/file":{"get":{"summary":"Admin Zoll File","description":"INTERNAL: one stored file (evidence PDF, raw answers, Ausgangsvermerk).","operationId":"admin_zoll_file_admin_zoll_file_get","parameters":[{"name":"key","in":"query","required":false,"schema":{"type":"string","default":"","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/zoll/logbuch":{"get":{"summary":"Admin Zoll Logbook","description":"INTERNAL: the Anschreibeliste as an Excel file.","operationId":"admin_zoll_logbook_admin_zoll_logbuch_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/zoll/mrn":{"post":{"summary":"Admin Zoll Mrn","description":"INTERNAL: type the MRN onto a row (or change its note).","operationId":"admin_zoll_mrn_admin_zoll_mrn_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/zoll/av":{"post":{"summary":"Admin Zoll Upload","description":"INTERNAL: a file dropped on the page. An Ausgangsvermerk out of IAA-Plus\nis read, renamed, filed and ticks its row; anything else dropped on a row\n(the assessment of a false positive, above all) is kept on that row.","operationId":"admin_zoll_upload_admin_zoll_av_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/zoll/upload":{"post":{"summary":"Admin Zoll Upload","description":"INTERNAL: a file dropped on the page. An Ausgangsvermerk out of IAA-Plus\nis read, renamed, filed and ticks its row; anything else dropped on a row\n(the assessment of a false positive, above all) is kept on that row.","operationId":"admin_zoll_upload_admin_zoll_upload_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/zoll/invoice":{"get":{"summary":"Admin Zoll Invoice","description":"INTERNAL: the commercial invoice of one export — automatic from the\nShopify order, or as a person last saved it — with its checks.","operationId":"admin_zoll_invoice_admin_zoll_invoice_get","parameters":[{"name":"ref","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Admin Zoll Invoice Save","description":"INTERNAL: save a person's edit (totals recomputed server-side), or\n{\"reset\": true} to go back to automatic.","operationId":"admin_zoll_invoice_save_admin_zoll_invoice_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/zoll/invoice/file":{"get":{"summary":"Admin Zoll Invoice File","description":"INTERNAL: the invoice as PDF or the declaration as IAA-Plus XML, both\nrendered from the same invoice and filed on the row.","operationId":"admin_zoll_invoice_file_admin_zoll_invoice_file_get","parameters":[{"name":"ref","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ref"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"pdf","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/zoll/packing":{"get":{"summary":"Admin Zoll Packing","description":"INTERNAL: the row's packing list — packages, what is in them, totals,\nwhat is still open (pipeline/packing_list.py).","operationId":"admin_zoll_packing_admin_zoll_packing_get","parameters":[{"name":"ref","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Admin Zoll Packing Save","description":"INTERNAL: {\"ref\", \"packages\": [...], \"alloc\": {line_key: {package_id: qty}}}.\nA complete list hands its packages and gross weight to the invoice.","operationId":"admin_zoll_packing_save_admin_zoll_packing_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/zoll/packing/file":{"get":{"summary":"Admin Zoll Packing File","description":"INTERNAL: the packing list as PDF, filed on the row.","operationId":"admin_zoll_packing_file_admin_zoll_packing_file_get","parameters":[{"name":"ref","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/zoll/pickup":{"post":{"summary":"Admin Zoll Pickup","description":"INTERNAL: EXW — who collected and when: {\"ref\", \"carrier\", \"date\", \"note\"}.\nThe minute sweep mails weekly while the Ausgangsvermerk is missing.","operationId":"admin_zoll_pickup_admin_zoll_pickup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/zoll/clear":{"post":{"summary":"Admin Zoll Clear","description":"INTERNAL: release a FiSaLis hit after looking at it — who, when, why.","operationId":"admin_zoll_clear_admin_zoll_clear_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/zoll/b2b":{"get":{"summary":"Admin Zoll B2B","description":"INTERNAL: shipments without a Shopify order and the customers they go\nto (pipeline/zoll_b2b.py).","operationId":"admin_zoll_b2b_admin_zoll_b2b_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/zoll/b2b/products":{"get":{"summary":"Admin Zoll B2B Products","description":"INTERNAL: what can go on a line, with its customs data, for the editor.","operationId":"admin_zoll_b2b_products_admin_zoll_b2b_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/zoll/b2b/customer":{"post":{"summary":"Admin Zoll B2B Customer","description":"INTERNAL: {\"customer\": {...}} creates or changes one; {\"archive\": id}\ntakes one out of the list.","operationId":"admin_zoll_b2b_customer_admin_zoll_b2b_customer_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/zoll/b2b/shipment":{"post":{"summary":"Admin Zoll B2B Shipment","description":"INTERNAL: a new shipment for a customer under its lexoffice number.","operationId":"admin_zoll_b2b_shipment_admin_zoll_b2b_shipment_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/zoll/freight":{"get":{"summary":"Admin Zoll Freight","description":"INTERNAL: one row's Sendify card — readiness, quotes, the booking.","operationId":"admin_zoll_freight_admin_zoll_freight_get","parameters":[{"name":"ref","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Admin Zoll Freight Act","description":"INTERNAL: {\"action\": \"quote\" | \"book\" | \"papers\" | \"discard\" | \"release\"}.\nQuote and book run on a thread; the page polls GET /admin/zoll/freight.","operationId":"admin_zoll_freight_act_admin_zoll_freight_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/zoll/parcel":{"get":{"summary":"Admin Zoll Parcel","description":"INTERNAL: the parcel card of a shipment without Shopify. With\n`packages` (JSON list) or `tags`, what those would book and what stops it.","operationId":"admin_zoll_parcel_admin_zoll_parcel_get","parameters":[{"name":"ref","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ref"}},{"name":"tags","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tags"}},{"name":"packages","in":"query","required":false,"schema":{"type":"string","default":"","title":"Packages"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Admin Zoll Parcel Act","description":"INTERNAL: {\"action\": \"quote\" | \"book\" | \"again\" | \"release\" | \"reprint\",\n\"ref\", \"tags\"}. Book runs on a thread; the page polls GET.","operationId":"admin_zoll_parcel_act_admin_zoll_parcel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/versand":{"get":{"summary":"Admin Versand","description":"INTERNAL: every booking, newest first — or one (`id`), which the page\npolls while it is being bought.","operationId":"admin_versand_admin_versand_get","parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Admin Versand Act","description":"INTERNAL: {\"action\": \"quote\" | \"book\" | \"cancel\" | \"reprint\" | \"release\", ...}.\n\nquote: {\"form\"} → prices, buys nothing. book: {\"form\", \"key\", \"nonce\",\n\"quoted\"} → the record, bought on a thread; the page polls GET ?id=.","operationId":"admin_versand_act_admin_versand_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/versand/file":{"get":{"summary":"Admin Versand File","description":"INTERNAL: a label or customs form of a booking as PDF (base64 in JSON,\nthe shape the App Proxy passes unharmed).","operationId":"admin_versand_file_admin_versand_file_get","parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Id"}},{"name":"i","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"I"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/zoll/check":{"post":{"summary":"Admin Zoll Check","description":"INTERNAL: check now — a row already there (re-check), or a declaration\nthat is not a Shopify order (an RE… invoice: names typed on the page).","operationId":"admin_zoll_check_admin_zoll_check_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/dhl/push":{"post":{"summary":"Dhl Push","description":"PUBLIC: DHL posts shipment status changes here.\n\nPublic by necessity — DHL cannot log in, so the shared token in the query\nstring is the whole of the authentication and the URL is therefore a\nsecret. It is compared in constant time and nothing else about the request\nis trusted.\n\nThe body is STORED, not acted on. We have never seen a DHL push payload, so\nwriting code against a guess at its shape would be writing it twice; this\nkeeps every delivery verbatim so the parser can be built from real examples\nand re-run against them when it turns out wrong.","operationId":"dhl_push_dhl_push_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ups/oauth/token":{"post":{"summary":"Ups Push Token","description":"PUBLIC: the OAuth 2.0 token endpoint UPS Track Alert logs in to before it\nposts events to /ups/push (client credentials; see pipeline/ups_push).","operationId":"ups_push_token_ups_oauth_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ups/push":{"post":{"summary":"Ups Push Hook","description":"PUBLIC: UPS Track Alert posts each new scan of a subscribed parcel here.\n\nStored and answered, nothing more: UPS wants an answer within milliseconds\nand does not retry, so the work happens in the fast lane\n(scripts/push_notify.py), which a systemd path unit starts when this file\nis written. Refused without a token from /ups/oauth/token\n(pipeline/ups_push.authorised) — with no secret configured, everything is.","operationId":"ups_push_hook_ups_push_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/production/work-order-done":{"post":{"summary":"Production Work Order Done","description":"PUBLIC (shared secret): the print farm reports one finished unit.\n\nThe farm's database is on the workshop LAN and nothing reaches it from\noutside, so it tells us rather than us asking. One call per work order\ncompleting — the moment tasks.complete() finds nothing outstanding, or\nsomebody presses Finished on the board.\n\nWhat it is FOR: an order is not tagged shippable until everything on it\nexists. A FRAME is weeks of printing and was being tagged 📦 the moment it\nwas paid for.\n\nIdempotent on work_order_id. The farm may retry, and a unit counted twice\nwould release an order that is still half made.","operationId":"production_work_order_done_production_work_order_done_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/production/work-order-undone":{"post":{"summary":"Production Work Order Undone","description":"PUBLIC (shared secret): the print farm takes back one finished unit.\n\nThe workshop can print a finished unit again or put its card back on the\nto-do list (26 Nov 2026). Until now nothing told us, and an order whose\nother lines were done could carry .✅ while one unit was on a printer\nagain. The unit leaves its line's count and the line keeps a recall, so the\nnext tagging pass takes a check it gave back off once (production_state,\nTAKEN BACK). Idempotent on work_order_id, like work-order-done.","operationId":"production_work_order_undone_production_work_order_undone_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/fuel":{"get":{"summary":"Admin Fuel","description":"INTERNAL: the fuel card on the admin hub.\n\nThe fuel each service was quoted at in the stored prices, the saved\noverride if any, and — with ?check=1 — what UPS charges today (two or three\ncalls, answered inline). Small on purpose: the card needs none of the\nquotes themselves.","operationId":"admin_fuel_admin_fuel_get","parameters":[{"name":"check","in":"query","required":false,"schema":{"type":"string","default":"","title":"Check"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/fuel/override":{"post":{"summary":"Admin Fuel Override","description":"INTERNAL: save the fuel levels typed on the admin hub, or reset them.\n\nBody {\"standard\": 33.5, \"air\": 47.75, \"economy\": 5} — any box may be left\nout — or {\"reset\": true}. Applies to how the Shipping page prices UPS; the\nstored quotes are not touched.","operationId":"admin_fuel_override_admin_fuel_override_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/transit-history":{"get":{"summary":"Admin Transit History","description":"INTERNAL: how long each lane actually takes, from every parcel we sent.\n\nServed from the store the poll maintains, so a plain GET calls nobody. This\nis measurement, not a carrier's claim: the numbers come from delivery dates\non roughly 1,900 parcels rather than from asking UPS what it sells.","operationId":"admin_transit_history_admin_transit_history_get","parameters":[{"name":"rebuild","in":"query","required":false,"schema":{"type":"string","default":"","title":"Rebuild"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/shipments":{"get":{"summary":"Admin Shipments","description":"INTERNAL: one row per parcel — cost, paid, earned, and whether it was late.\n\nOwner-gated like the rest of /admin: this carries negotiated carrier rates\nper shipment, which is contract detail and not merely internal.\n\nA plain GET serves the stored build and calls nobody — though it does\nre-fold the invoices, which are uploaded far more often than parcels move.\n\n`?refresh=1` brings it up to date incrementally: Shopify is asked only for\norders touched since the last build, UPS only about parcels still moving.\nSeconds, and the work tracks the shipping rate rather than the history.\n\n`?refresh=full` re-reads every order since 1 June and re-asks UPS about\nevery parcel. Minutes, and only needed when the row-building logic itself\nhas changed and the stored rows must be rebuilt under it.","operationId":"admin_shipments_admin_shipments_get","parameters":[{"name":"refresh","in":"query","required":false,"schema":{"type":"string","default":"","title":"Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/shipping-costs":{"get":{"summary":"Admin Shipping Costs","description":"INTERNAL: UPS negotiated rates per country and billed weight.\n\nOwner-gated exactly like /admin/designs — negotiated rates are contract\nterms, so a shared page URL must not be enough to read them.\n\nPlain GET returns the last stored run and never calls a carrier. `?probe=1`\nstarts a fresh run on a worker thread and returns immediately with progress:\na full grid takes minutes, far longer than an App Proxy request is allowed\nto live, so the page polls instead of waiting.\n\n`?probe=transit` asks UPS how many business days each service takes, to\nthree addresses per country, and leaves both cost sides alone. Transit\nanswers change with the network rather than with a contract, so it is on its\nown clock and its own button.\n\n`?probe=ups` or `?probe=shipcloud` refreshes one carrier and keeps the other\nside of the stored run untouched. The two move on different clocks — UPS\ncontract rates change about once a year, shipcloud reprices more often — so\nre-quoting both to check one is wasted time and wasted calls.\n\n`?part=transit` trims the answer to the transit quotes and the run status,\nfor the Transit times page.","operationId":"admin_shipping_costs_admin_shipping_costs_get","parameters":[{"name":"probe","in":"query","required":false,"schema":{"type":"string","default":"","title":"Probe"}},{"name":"part","in":"query","required":false,"schema":{"type":"string","default":"","title":"Part"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/freight":{"get":{"summary":"Admin Freight","description":"INTERNAL: Sendify freight rates for BLOK and GRAND, per country.\n\nGated like the other shipping pages: the prices are what Sendify offers our\naccount, and the shipping viewers are the people who need them.\n\nPlain GET returns the last stored run and calls nobody. `?probe=1` starts a\nfresh run on a worker thread and returns at once with progress — a run is a\nfew minutes, longer than an App Proxy request may live, so the page polls.\nThe countries are the shipping matrix's probe countries, read from the same\nmetaobject the Shipping page probes from.","operationId":"admin_freight_admin_freight_get","parameters":[{"name":"probe","in":"query","required":false,"schema":{"type":"string","default":"","title":"Probe"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/freight/check":{"post":{"summary":"Admin Freight Check","description":"INTERNAL: Sendify's offers for one piece of any size to one country —\nthe page's own-dimensions check. One shipment, its rates, deleted again:\nabout three seconds, so it answers directly.","operationId":"admin_freight_check_admin_freight_check_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plaque/upload":{"post":{"summary":"Upload","operationId":"upload_plaque_upload_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plaque/{upload_id}.jpg":{"get":{"summary":"Production File","operationId":"production_file_plaque__upload_id__jpg_get","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/plaque/{upload_id}-preview.png":{"get":{"summary":"Preview File","operationId":"preview_file_plaque__upload_id__preview_png_get","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b2b/verify":{"post":{"summary":"Verify","description":"Sync on purpose: blocking urllib, so FastAPI runs it in the threadpool.","operationId":"verify_b2b_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b2b/approve":{"get":{"summary":"Approve Page","operationId":"approve_page_b2b_approve_get","parameters":[{"name":"c","in":"query","required":false,"schema":{"type":"string","default":"","title":"C"}},{"name":"exp","in":"query","required":false,"schema":{"type":"string","default":"","title":"Exp"}},{"name":"sig","in":"query","required":false,"schema":{"type":"string","default":"","title":"Sig"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Approve","operationId":"approve_b2b_approve_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/b2b":{"get":{"summary":"Admin B2B","operationId":"admin_b2b_admin_b2b_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/b2b/approve":{"post":{"summary":"Admin Approve","operationId":"admin_approve_admin_b2b_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCustomer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/b2b/decline":{"post":{"summary":"Admin Decline","description":"Not OK: the form comes back for the buyer (three more tries before it is ours again).\nWriting to the buyer is by hand.","operationId":"admin_decline_admin_b2b_decline_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCustomer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/b2b/remove":{"post":{"summary":"Admin Remove","description":"The account pays VAT again from its next order; its VAT number and last check stay on it.","operationId":"admin_remove_admin_b2b_remove_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCustomer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/b2b/order-done":{"post":{"summary":"Admin Order Done","operationId":"admin_order_done_admin_b2b_order_done_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOrder"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/b2b/check":{"post":{"summary":"Admin Check","description":"Any number, by hand: asks and logs, changes no account.","operationId":"admin_check_admin_b2b_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCheck"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/shipping-margin":{"get":{"summary":"Admin Shipping Margin","operationId":"admin_shipping_margin_admin_shipping_margin_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/belege":{"get":{"summary":"Admin Belege","operationId":"admin_belege_admin_belege_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/belege/sweep":{"get":{"summary":"Admin Belege Sweep State","operationId":"admin_belege_sweep_state_admin_belege_sweep_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Admin Belege Sweep","operationId":"admin_belege_sweep_admin_belege_sweep_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/belege/release":{"post":{"summary":"Admin Belege Release","operationId":"admin_belege_release_admin_belege_release_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/customer/belege":{"get":{"summary":"Customer Belege","operationId":"customer_belege_customer_belege_get","parameters":[{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"","title":"Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/customer/belege/pdf/{kind}/{lex_id}":{"get":{"summary":"Customer Beleg Pdf","operationId":"customer_beleg_pdf_customer_belege_pdf__kind___lex_id__get","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"lex_id","in":"path","required":true,"schema":{"type":"string","title":"Lex Id"}},{"name":"exp","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Exp"}},{"name":"sig","in":"query","required":false,"schema":{"type":"string","default":"","title":"Sig"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/customer/newsletter":{"post":{"summary":"Customer Newsletter","operationId":"customer_newsletter_customer_newsletter_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/newsletter/signup":{"post":{"summary":"Newsletter Signup","operationId":"newsletter_signup_newsletter_signup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/feeds/cities.json":{"get":{"summary":"Cities Feed","operationId":"cities_feed_feeds_cities_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/img/tile.jpg":{"get":{"summary":"Email Tile","operationId":"email_tile_img_tile_jpg_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/img/cities.jpg":{"get":{"summary":"Email Cities","operationId":"email_cities_img_cities_jpg_get","parameters":[{"name":"s","in":"query","required":false,"schema":{"type":"integer","default":160,"title":"S"}},{"name":"k","in":"query","required":false,"schema":{"type":"string","default":"set","title":"K"}},{"name":"v","in":"query","required":false,"schema":{"type":"string","default":"","title":"V"}},{"name":"a","in":"query","required":false,"schema":{"type":"string","default":"","title":"A"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/design/{design_id}/marker/map":{"get":{"summary":"Marker Map Get","description":"The placement map of one combo (binary, see marker_map.encode), or 202\nwhile it is being built (poll again in a second or two).","operationId":"marker_map_get_design__design_id__marker_map_get","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"combo","in":"query","required":false,"schema":{"type":"string","default":"model","title":"Combo"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/design/{design_id}/marker/plan":{"get":{"summary":"Marker Plan Get","description":"The modal's picture of one combo: ``{\"status\": \"ready\", \"url\", \"view_mm\",\n\"model_mm\"}`` — the square it shows and the model's square in its middle,\nmodel mm — or 202 ``pending`` while it renders (~8 s; poll again).\n\nSince 2026-10-31 the picture is the step-3 top view, with ``proj``: where it\nshows a point of the model (marker_jobs.top_json_key; it is no square of\nthe model then, the CUBE's camera being a perspective one). Until that view\nis there it hurries the step-3 render, which brings it; a design whose\nstep-3 image was made before gets the picture of its own, as before.","operationId":"marker_plan_get_design__design_id__marker_plan_get","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"combo","in":"query","required":false,"schema":{"type":"string","default":"model","title":"Combo"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/design/{design_id}/marker":{"post":{"summary":"Marker Save","description":"Save a marker at a point the map allows and start its render. Answers\n``rendering`` (poll GET …/marker/{key}), ``not_allowed`` (the point has no\nroom — the page snaps before it posts, so this is a stale map or a forged\npoint), ``map_pending`` (no map yet: fetch it first).","operationId":"marker_save_design__design_id__marker_post","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/design/{design_id}/marker/{key}":{"get":{"summary":"Marker Status","description":"Where a saved marker's images are for one combo. ``status``: queued /\nrendering / addon (the step-3 image is there, ``addon_url``, the hero still\nrendering) / ready (``preview_url`` too) / error. The step-3 image comes\nfirst since 2026-10-31, the marker being set in step 3; \"hero\" (the hero\nthere, the step-3 image not) is a render stopped before then. A combo the\nmarker has no images for yet (the shopper switched) is queued here.","operationId":"marker_status_design__design_id__marker__key__get","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"combo","in":"query","required":false,"schema":{"type":"string","default":"model","title":"Combo"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wishlist/list":{"get":{"summary":"Wishlist List","operationId":"wishlist_list_wishlist_list_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wishlist/search":{"get":{"summary":"Wishlist Search","operationId":"wishlist_search_wishlist_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wishlist/vote":{"post":{"summary":"Wishlist Vote","operationId":"wishlist_vote_wishlist_vote_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/wishlist/unvote":{"post":{"summary":"Wishlist Unvote","operationId":"wishlist_unvote_wishlist_unvote_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/wishlist/mine":{"get":{"summary":"Wishlist Mine","operationId":"wishlist_mine_wishlist_mine_get","parameters":[{"name":"device","in":"query","required":false,"schema":{"type":"string","default":"","title":"Device"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wishlist/suggest":{"post":{"summary":"Wishlist Suggest","operationId":"wishlist_suggest_wishlist_suggest_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/wishlist":{"get":{"summary":"Admin Wishlist","operationId":"admin_wishlist_admin_wishlist_get","parameters":[{"name":"view","in":"query","required":false,"schema":{"type":"string","default":"queue","title":"View"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/wishlist/review":{"post":{"summary":"Admin Wishlist Review","operationId":"admin_wishlist_review_admin_wishlist_review_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/wishlist/merge":{"post":{"summary":"Admin Wishlist Merge","operationId":"admin_wishlist_merge_admin_wishlist_merge_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/wishlist/edit":{"post":{"summary":"Admin Wishlist Edit","operationId":"admin_wishlist_edit_admin_wishlist_edit_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/wishlist/votes":{"post":{"summary":"Admin Wishlist Votes","operationId":"admin_wishlist_votes_admin_wishlist_votes_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/wishlist/suggestion":{"post":{"summary":"Admin Wishlist Suggestion","operationId":"admin_wishlist_suggestion_admin_wishlist_suggestion_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/coverage/at":{"get":{"summary":"Coverage At","operationId":"coverage_at_coverage_at_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lon","in":"query","required":true,"schema":{"type":"number","title":"Lon"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/studio/previews":{"get":{"summary":"Admin Studio List","operationId":"admin_studio_list_admin_studio_previews_get","parameters":[{"name":"ids","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Admin Studio Create","operationId":"admin_studio_create_admin_studio_previews_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/studio/previews/{preview_id}/download":{"get":{"summary":"Admin Studio Download","operationId":"admin_studio_download_admin_studio_previews__preview_id__download_get","parameters":[{"name":"preview_id","in":"path","required":true,"schema":{"type":"string","title":"Preview Id"}},{"name":"what","in":"query","required":false,"schema":{"type":"string","default":"image","title":"What"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/jobs":{"get":{"summary":"List Jobs","description":"INTERNAL: overview of the queue — what's queued and running right now.\n\nA quick \"what's happening\" dashboard for debugging. Reads from Redis, so it\nreflects every worker process, not just this API.","operationId":"list_jobs_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/preview":{"post":{"summary":"Start Preview","description":"Enqueue a preview job (or return it immediately if already cached).\n\nGeneration is on the v2 lane here too, since 2026-10-01: both live\nconfigurators have posted to ``/v02/preview`` since 09-27, but a page\ncached before the switch, and the trio and collection templates, still\nposted here — a Norwegian customer's CUBE went through v1 on 09-30. Phase\n7 deletes v1 last, and nothing may still create a v1 design when it does.\nThe id carries the lane token, so a design is the same under either path.","operationId":"start_preview_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/preview/check":{"post":{"summary":"Check Preview","description":"Asked when Generate is clicked, before POST /preview: will this design wait in the queue? \"long\" when it\nwill (the configurator then asks for an email, see the wait lane above); \"normal\" for every other design, and\nfor one already generated. The answer is kept for POST /preview.","operationId":"check_preview_preview_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/preview/{design_id}/cancel":{"post":{"summary":"Cancel Preview","description":"Stop the still-pending render compute for a design — used when the shopper\ndeletes it or supersedes it with a new one. Cooperative: a queued job is\ndropped immediately; a running one stops at its next checkpoint (between\nturntable frames). Does NOT delete the design's stored files. Idempotent.","operationId":"cancel_preview_preview__design_id__cancel_post","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/preview/{design_id}":{"get":{"summary":"Preview Status","description":"Poll a previously-enqueued preview job.","operationId":"preview_status_preview__design_id__get","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/preview/{design_id}/views":{"get":{"summary":"Preview Views","description":"Report the THREE extra gallery views (left/right/back) for one combo.\n\n``combo`` ∈ {model, streets, trees, both}. The hero (gallery slide 0) is the\ncombo's preview.jpg and is reported separately by GET /preview/{id}; this\nendpoint covers the extra views the shopper requested.\n\nFor each view: ``ready`` (the full render exists), ``full`` (its URL, or null),\nand ``ph`` (the low-res placeholder URL to show blurred while it renders, or\nnull). Storefront contract: after pressing \"Request additional views\", POST\n/preview/{id}/carousel?combo=… then poll this endpoint, swapping each slide\nfrom its blurred ``ph`` to ``full`` as it lands. Stop once ``count == total``.\n\n``marker`` (a saved location marker's key, while the shopper has it on):\nthe views with the marker in (marker_jobs.render_marker_views_for_design).\nUntil one is there its ``ph`` is the design's own view, else that view's\nplaceholder; the render is queued again here if it is not under way.","operationId":"preview_views_preview__design_id__views_get","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"combo","in":"query","required":false,"schema":{"type":"string","default":"model","title":"Combo"}},{"name":"marker","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marker"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/preview/{design_id}/carousel":{"post":{"summary":"Start Carousel","description":"Trigger (or resume) the THREE extra gallery views (left/right/back) for a\ncombo — what \"Request additional views\" calls. Works for ANY combo (including\nmodel): the turntable is gone, so even the model's extra views render on\ndemand. Resumable — a view already in storage is skipped — and rendered one\nafter another. Returns immediately; poll GET /preview/{id}/views?combo=….\n\n``prio=low`` routes the render to the lowest-priority ``admin`` queue — used\nby the internal pages/designs gallery so it never delays the configurator.\nThe customer-facing configurator omits it (default = the ``addon`` queue).\n\nResponses (``carousel_status``):\n  - ``rendering``   → enqueued (or already running); poll /views.\n  - ``pending``     → the design's STL isn't ready yet; finish the preview first.\n  - ``error`` / ``not_found`` → bad combo / malformed id.","operationId":"start_carousel_preview__design_id__carousel_post","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"combo","in":"query","required":false,"schema":{"type":"string","default":"model","title":"Combo"}},{"name":"first","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First"}},{"name":"prio","in":"query","required":false,"schema":{"type":"string","default":"","title":"Prio"}},{"name":"marker","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marker"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/preview/{design_id}/addon":{"get":{"summary":"Preview Addon","description":"Fetch — and, if needed, *expedite* — the add-on base image for one combo.\n\nStorefront contract: the moment a shopper enters the add-on step (step 3),\npoll this endpoint with the selected ``combo`` (model / trees / streets / both).\nEvery combo renders on demand — the model's too since 2026-11-05 (the\ngeneration renders only its small picture, job_runner._ADDON_THUMB_WIDTH):\ncalling this endpoint enqueues a render at the front of the ``addon`` queue so\nthe next free worker produces it. A ``combo`` that\nisn't applicable to this design (no trees/roads in the source) falls back to\n``model``. Responses (``addon_status``):\n\n  - ``ready``           → ``addon_base_url`` is set; stop polling.\n  - ``pending``         → a render is in flight (just enqueued or already\n                          running); keep polling.\n  - ``preview_pending`` → the design's STL/preview isn't ready yet, so there's\n                          nothing to render from; finish the preview first.\n  - ``not_found``       → unknown / malformed design id.","operationId":"preview_addon_preview__design_id__addon_get","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"combo","in":"query","required":false,"schema":{"type":"string","default":"model","title":"Combo"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/preview/{design_id}/addon/cancel":{"post":{"summary":"Cancel Addon Render","description":"Pull a QUEUED add-on render for one combo off the queue — called when the\nshopper switches combos in step 3 before this one started, so abandoned\nselections don't pile up behind the combo they're now viewing. No-op (and safe)\nif the render already started, already finished, or never existed.","operationId":"cancel_addon_render_preview__design_id__addon_cancel_post","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"combo","in":"query","required":false,"schema":{"type":"string","default":"model","title":"Combo"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/preview/{design_id}/log":{"get":{"summary":"Preview Log","description":"INTERNAL: live progress + captured pipeline log for one job.\n\n`tail` (optional) returns only the last N log lines. Not used by the\nstorefront — for debugging what the pipeline is doing right now. Staff\nonly since 2026-11-19 (the staff Basic Auth of /admin/stl): the log names\nevery step and source; anyone else gets a plain 404.","operationId":"preview_log_preview__design_id__log_get","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"tail","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Tail"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/design/{design_id}":{"get":{"summary":"Design Resolve","description":"Resolve a design id to its inputs + current state.\n\nThis is what makes a ``?design=<id>`` deep link exact: the configurator\nattaches to the EXISTING design instead of re-deriving its id by re-POSTing\ncoordinates through the map (which silently forked a second render whenever\nanything drifted). Answers for in-flight designs too, which ``/preview/{id}``\ncan do but meta.json cannot.","operationId":"design_resolve_design__design_id__get","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignResolveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/design/{design_id}/credit-label":{"get":{"summary":"Design Credit Label","description":"What the label the bench prints with a model says about its data.\n``shared``: which of the flyer's sources (OpenStreetMap, Overture,\nCopernicus) the design used, by name — credited in full on the flyer.\n``lines``: its regional credits, verbatim (``attribution.label_lines``).\n``center``: {lat, lon} the design was rendered around, for the label's\ncoordinates. ``found`` is False when no rendered design exists — the caller\nmust not read that as \"nothing to credit\". Public: the same credits and the\nsame point the configurator shows.\n\nA FRAME's report carried no ``center`` until 2026-10-25, so its label showed\nthe place without coordinates; the design's requested point (meta.json —\nwhat a CUBE's ``center`` is too) stands in for it.","operationId":"design_credit_label_design__design_id__credit_label_get","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/design/{design_id}/config":{"get":{"summary":"Design Config Get","description":"Return the design's latest live config (for restoring selections on load).\n``config`` is null if nothing has been saved yet.","operationId":"design_config_get_design__design_id__config_get","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Design Config Set","description":"Persist the shopper's current selections to designs/{id}/config.json.\nWrites only the LIVE slot; the authoritative ordered config (from a paid order)\nis stored separately and never touched here. No-op if the design doesn't exist.","operationId":"design_config_set_design__design_id__config_post","parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AbtestStep":{"properties":{"arm":{"type":"string","title":"Arm"},"subject":{"type":"string","title":"Subject"},"stage":{"type":"string","title":"Stage"},"design_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Design Id"},"dev":{"type":"boolean","title":"Dev","default":false}},"type":"object","required":["arm","subject","stage"],"title":"AbtestStep"},"AdminCheck":{"properties":{"vat":{"type":"string","title":"Vat"},"company":{"type":"string","title":"Company","default":""},"street":{"type":"string","title":"Street","default":""},"zip":{"type":"string","title":"Zip","default":""},"city":{"type":"string","title":"City","default":""}},"type":"object","required":["vat"],"title":"AdminCheck"},"AdminCustomer":{"properties":{"customer":{"type":"string","title":"Customer"}},"type":"object","required":["customer"],"title":"AdminCustomer"},"AdminOrder":{"properties":{"order":{"type":"string","title":"Order"},"name":{"type":"string","title":"Name","default":""}},"type":"object","required":["order"],"title":"AdminOrder"},"ConfigRequest":{"properties":{"trees":{"type":"boolean","title":"Trees","default":false},"streets":{"type":"boolean","title":"Streets","default":false},"cover":{"type":"string","title":"Cover","default":"none"},"plaque":{"type":"string","title":"Plaque","default":"none"},"plaque_headline":{"type":"string","title":"Plaque Headline","default":""},"plaque_subheadline":{"type":"string","title":"Plaque Subheadline","default":""},"trees_tried":{"type":"boolean","title":"Trees Tried","default":false},"streets_tried":{"type":"boolean","title":"Streets Tried","default":false},"marker":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Marker"}},"type":"object","title":"ConfigRequest"},"DesignResolveResponse":{"properties":{"design_id":{"type":"string","title":"Design Id"},"status":{"type":"string","title":"Status"},"request":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Request"},"product":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product"},"preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Url"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"stale":{"type":"boolean","title":"Stale","default":false}},"type":"object","required":["design_id","status"],"title":"DesignResolveResponse","description":"Everything the configurator needs to RESUME a design from its id alone."},"FeedbackRequest":{"properties":{"feedback":{"type":"string","title":"Feedback"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"store_country":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Store Country"},"country_name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Country Name"},"currency":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Currency"}},"type":"object","required":["feedback"],"title":"FeedbackRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"MarkerRequest":{"properties":{"shape":{"type":"string","title":"Shape"},"x_mm":{"type":"number","title":"X Mm"},"y_mm":{"type":"number","title":"Y Mm"},"combo":{"type":"string","title":"Combo","default":"model"},"trial":{"type":"boolean","title":"Trial","default":false}},"type":"object","required":["shape","x_mm","y_mm"],"title":"MarkerRequest"},"NewsletterConfirm":{"properties":{"token":{"type":"string","title":"Token","default":""}},"type":"object","title":"NewsletterConfirm"},"PreviewRequest":{"properties":{"lat":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Lat"},"lon":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Lon"},"width_m":{"type":"number","maximum":50000.0,"exclusiveMinimum":0.0,"title":"Width M"},"height_m":{"type":"number","maximum":50000.0,"exclusiveMinimum":0.0,"title":"Height M"},"scale":{"type":"number","maximum":50000.0,"minimum":1000.0,"title":"Scale"},"rotation":{"type":"number","maximum":360.0,"minimum":-360.0,"title":"Rotation","default":0.0},"store_country":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Store Country"},"staff":{"type":"boolean","title":"Staff","default":false},"place_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Place Name"}},"type":"object","required":["lat","lon","width_m","height_m","scale"],"title":"PreviewRequest"},"PreviewResponse":{"properties":{"design_id":{"type":"string","title":"Design Id"},"status":{"type":"string","title":"Status"},"preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Url"},"cached":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cached"},"elapsed_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elapsed S"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"buildings_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Buildings Count"},"parks_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parks Count"},"water_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Water Count"},"credits_all":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credits All"},"credits_attributable":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credits Attributable"},"credits_all_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credits All Html"},"credits_attributable_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credits Attributable Html"},"addon_base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Addon Base Url"},"addon_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Addon Status"},"model_height_mm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Model Height Mm"},"previews":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Previews"},"has_trees":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Trees"},"has_streets":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Streets"},"placeholder_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placeholder Url"},"frame_plates_done":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Frame Plates Done"},"frame_plates_building":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Frame Plates Building"},"frame_plates_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Frame Plates Total"},"progress":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Progress"},"queued":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Queued"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"}},"type":"object","required":["design_id","status"],"title":"PreviewResponse"},"RemoveRequest":{"properties":{"design_id":{"type":"string","title":"Design Id"}},"type":"object","required":["design_id"],"title":"RemoveRequest"},"RenameRequest":{"properties":{"design_id":{"type":"string","title":"Design Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","default":""},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["design_id"],"title":"RenameRequest"},"SaveDesign":{"properties":{"design_id":{"type":"string","title":"Design Id"},"place_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place Name","default":""},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","default":""},"lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"},"lon":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lon"},"scale":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Scale"},"rotation":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rotation"}},"type":"object","required":["design_id"],"title":"SaveDesign"},"SaveRequest":{"properties":{"designs":{"items":{"$ref":"#/components/schemas/SaveDesign"},"type":"array","title":"Designs"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"marketing_consent":{"type":"boolean","title":"Marketing Consent","default":false},"configurator_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Configurator Url"},"notify":{"type":"boolean","title":"Notify","default":true},"notify_when_ready":{"type":"boolean","title":"Notify When Ready","default":false},"newsletter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Newsletter"}},"type":"object","title":"SaveRequest"},"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"},"VerifyRequest":{"properties":{"vat":{"type":"string","title":"Vat"},"company":{"type":"string","title":"Company","default":""},"street":{"type":"string","title":"Street","default":""},"zip":{"type":"string","title":"Zip","default":""},"city":{"type":"string","title":"City","default":""},"country":{"type":"string","title":"Country","default":""},"source":{"type":"string","title":"Source","default":""}},"type":"object","required":["vat"],"title":"VerifyRequest"},"WaitCheckResponse":{"properties":{"wait":{"type":"string","title":"Wait"}},"type":"object","required":["wait"],"title":"WaitCheckResponse"},"WithdrawalRequest":{"properties":{"name":{"type":"string","title":"Name"},"order_number":{"type":"string","title":"Order Number"},"email":{"type":"string","title":"Email"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","default":""},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale","default":""}},"type":"object","required":["name","order_number","email"],"title":"WithdrawalRequest"}}}}