{"openapi":"3.0.3","info":{"title":"Meishi Public API","version":"2.0.0","description":"Public API endpoints. Most need no authentication; the server routes under Website integration need a server key."},"servers":[{"url":"https://api.public.meishi.cards","description":"Production"},{"url":"https://{stage}.api.public.meishi.cards","description":"Development","variables":{"stage":{"default":"localerik","description":"Stage name"}}}],"paths":{"/embed/sessions":{"post":{"tags":["Website integration"],"description":"402 plan_required (websiteSdk) when the key's organisation has no plan with the website integration, unless the key was made before the v4 rules and the 31 Mar 2027 sunset has not passed.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","minLength":8,"maxLength":120},"origin":{"type":"string","minLength":1,"maxLength":255},"product":{"type":"string","minLength":1,"maxLength":64}},"required":["key","origin"]}}}},"responses":{"200":{"description":"200 OK","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"expiresAt":{"type":"number"},"template":{"type":"object","properties":{"imageKey":{"type":"string","pattern":"^website-templates\\/[0-9a-f-]{36}\\/[0-9a-f-]{36}\\/[0-9a-f-]{36}\\.(jpg|png|webp)$"},"widthPx":{"type":"integer","minimum":480,"maximum":10000},"heightPx":{"type":"integer","minimum":480,"maximum":10000},"printWidthMm":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":5000},"qr":{"type":"object","properties":{"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1},"size":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":1}},"required":["x","y","size"],"additionalProperties":false},"videoPosition":{"type":"string","enum":["label","above"]},"imageUrl":{"type":"string"}},"required":["imageKey","widthPx","heightPx","qr","imageUrl"],"additionalProperties":false}},"required":["token","expiresAt"]}}}},"401":{"description":"Key missing or deleted"},"402":{"description":"402 plan_required (details: feature, requiredPlan, plan) or plan_limit_reached (details: limit, max, used, requiredPlan)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/planGateError"}}}},"403":{"description":"Website not allowed for this key"}}}},"/embed/experiences":{"post":{"tags":["Website integration"],"description":"Starts a draft. Needs an embed session.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{"type":"string","maxLength":200}},"replacesId":{"type":"string","format":"uuid"}}}}}},"responses":{"200":{"description":"200 OK","content":{"application/json":{"schema":{"type":"object","properties":{"experienceId":{"type":"string"},"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"]},"scanCode":{"type":"string"},"scanUrl":{"type":"string"},"printImageUrl":{"type":"string"},"processingError":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string"}}},"required":["experienceId","status","scanCode","scanUrl"]}}}},"401":{"description":"Session missing, expired, or its key was deleted"},"429":{"description":"Too many experiences for one visit"}}}},"/embed/experiences/{id}":{"get":{"tags":["Website integration"],"description":"Status of one experience. The embedded editor calls it with its session. A partner's server calls it with its website key (`Authorization: Bearer mk_live_…`) to confirm a design before fulfilling an order; a key only finds its own organisation's designs, and the response then includes the metadata the page passed in.","parameters":[{"$ref":"#/components/parameters/entityRef"}],"responses":{"200":{"description":"200 OK","content":{"application/json":{"schema":{"type":"object","properties":{"experienceId":{"type":"string"},"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"]},"scanCode":{"type":"string"},"scanUrl":{"type":"string"},"printImageUrl":{"type":"string"},"processingError":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string"}}},"required":["experienceId","status","scanCode","scanUrl"]}}}}}}},"/embed/experiences/{id}/uploads":{"post":{"tags":["Website integration"],"description":"One signed upload URL, within the limit for that kind of file.","parameters":[{"$ref":"#/components/parameters/entityRef"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["source","print","tracking","content","preview"]},"contentType":{"type":"string","minLength":3,"maxLength":100},"size":{"type":"integer","minimum":0,"exclusiveMinimum":true}},"required":["kind","contentType","size"]}}}},"responses":{"200":{"description":"200 OK","content":{"application/json":{"schema":{"type":"object","properties":{"uploadUrl":{"type":"string"},"key":{"type":"string"},"contentType":{"type":"string"}},"required":["uploadUrl","key","contentType"]}}}}}}},"/embed/server/key":{"get":{"tags":["Website integration"],"operationId":"getServerKey","summary":"Get your key and label","description":"The website key your server key belongs to, and whether it has your label (your card or sticker with the QR code placed). With a label, buyers only record their video; a shop shows its button once `labelSet` is true. Server API: needs the server key.","security":[{"serverKey":[]}],"responses":{"200":{"description":"Your key","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"labelSet":{"type":"boolean"},"labelUrl":{"type":"string","format":"uri"}},"required":["id","name","labelSet","labelUrl"]}}}},"401":{"description":"server_key_required (no key) or server_key_invalid (wrong or replaced key, or its website key was deleted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/partnerError"}}}}}}},"/embed/server/experiences":{"get":{"tags":["Website integration"],"operationId":"listServerExperiences","summary":"List experiences","description":"Your organization's experiences, newest first within a page. Drafts and edits are left out. A page can hold fewer than `limit` when filters skip rows: follow `nextCursor`, passed back as `cursor`, until it is absent. Server API: send a website key's secret server key (`Authorization: Bearer sk_live_…`), and never put it in a web page.","security":[{"serverKey":[]}],"parameters":[{"name":"status","in":"query","required":false,"description":"Only experiences with this status, e.g. `ready`.","schema":{"type":"string"}},{"name":"orderReference","in":"query","required":false,"description":"Only experiences with this order reference.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"How many to return, 1 to 100 (50 by default).","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","required":false,"description":"The previous page's `nextCursor`.","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of experiences","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"experienceId":{"type":"string","description":"The experience ID. Every webhook carries it."},"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"],"description":"Where it stands: `draft` (made through the API, not submitted yet), `reserved` (waits for your server to confirm it), `submitted`, `processing`, `ready` (scanning the QR code shows it), `failed` (see `processingError`) or `deleted`."},"contentKind":{"type":"string","enum":["video","model","info"],"description":"`video` (a hologram), `model` (3D objects) or `info` (a page of text and links)."},"scanCode":{"type":"string","description":"The short code in the QR code and in `scanUrl`."},"scanUrl":{"type":"string","description":"The address the printed QR code opens."},"qrSvgUrl":{"type":"string","description":"The QR code alone as a vector SVG, ready to print. Public."},"qrPngUrl":{"type":"string","description":"The QR code alone as a 1024 px PNG. Public."},"printImageUrl":{"type":"string","description":"The image with the QR code printed on it, when the experience has an image."},"printPdfUrl":{"type":"string","description":"The same print as a one-page PDF at its printed size, for a label printer."},"processingError":{"type":"string","description":"Why it failed, when `status` is `failed`."},"orderReference":{"type":"string","description":"Your order number, when one was sent."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"The values your page passed in, plus what your server added."},"createdAt":{"type":"number","description":"When it was made, in Unix seconds."},"reservedUntil":{"type":"number","description":"Until when a `reserved` experience waits for your confirm, in Unix seconds."},"confirmedAt":{"type":"number","description":"When it was confirmed, in Unix seconds."},"readyAt":{"type":"number","description":"When it became ready, in Unix seconds."},"pausedAt":{"type":"number","description":"When it was paused, in Unix seconds. While paused, its QR code shows what the key says a scan shows after the end."},"endsAt":{"type":"number","description":"When it stops showing, in Unix seconds. From then on its QR code shows what the key says a scan shows after the end."}},"required":["experienceId","status","scanCode","scanUrl","qrSvgUrl","qrPngUrl","createdAt"]},"description":"The experiences on this page."},"nextCursor":{"type":"string","description":"Pass it back as `cursor` for the next page. Absent on the last page."}},"required":["items"]}}}},"400":{"description":"invalid_cursor: the cursor was changed or came from another list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/partnerError"}}}},"401":{"description":"server_key_required (no key) or server_key_invalid (wrong or replaced key, or its website key was deleted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/partnerError"}}}}}}},"/embed/server/experiences/{id}":{"get":{"tags":["Website integration"],"operationId":"getServerExperience","summary":"Get an experience","description":"One experience, with its status, scan link, QR codes, print and your metadata. Server API: needs the server key.","security":[{"serverKey":[]}],"parameters":[{"in":"path","name":"id","description":"The experienceId your page got from the editor, or that a webhook carried.","required":true,"schema":{"type":"string","format":"uuid","description":"The experienceId your page got from the editor, or that a webhook carried.","example":"3f1c9a52-7d4e-4b8a-9e21-5c6d0f8b2a17"}}],"responses":{"200":{"description":"The experience","content":{"application/json":{"schema":{"type":"object","properties":{"experienceId":{"type":"string","description":"The experience ID. Every webhook carries it."},"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"],"description":"Where it stands: `draft` (made through the API, not submitted yet), `reserved` (waits for your server to confirm it), `submitted`, `processing`, `ready` (scanning the QR code shows it), `failed` (see `processingError`) or `deleted`."},"contentKind":{"type":"string","enum":["video","model","info"],"description":"`video` (a hologram), `model` (3D objects) or `info` (a page of text and links)."},"scanCode":{"type":"string","description":"The short code in the QR code and in `scanUrl`."},"scanUrl":{"type":"string","description":"The address the printed QR code opens."},"qrSvgUrl":{"type":"string","description":"The QR code alone as a vector SVG, ready to print. Public."},"qrPngUrl":{"type":"string","description":"The QR code alone as a 1024 px PNG. Public."},"printImageUrl":{"type":"string","description":"The image with the QR code printed on it, when the experience has an image."},"printPdfUrl":{"type":"string","description":"The same print as a one-page PDF at its printed size, for a label printer."},"processingError":{"type":"string","description":"Why it failed, when `status` is `failed`."},"orderReference":{"type":"string","description":"Your order number, when one was sent."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"The values your page passed in, plus what your server added."},"createdAt":{"type":"number","description":"When it was made, in Unix seconds."},"reservedUntil":{"type":"number","description":"Until when a `reserved` experience waits for your confirm, in Unix seconds."},"confirmedAt":{"type":"number","description":"When it was confirmed, in Unix seconds."},"readyAt":{"type":"number","description":"When it became ready, in Unix seconds."},"pausedAt":{"type":"number","description":"When it was paused, in Unix seconds. While paused, its QR code shows what the key says a scan shows after the end."},"endsAt":{"type":"number","description":"When it stops showing, in Unix seconds. From then on its QR code shows what the key says a scan shows after the end."}},"required":["experienceId","status","scanCode","scanUrl","qrSvgUrl","qrPngUrl","createdAt"]}}}},"401":{"description":"server_key_required (no key) or server_key_invalid (wrong or replaced key, or its website key was deleted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/partnerError"}}}},"404":{"description":"experience_not_found: your organization has no experience with this ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/partnerError"}}}}}}},"/embed/server/experiences/{id}/confirm":{"post":{"tags":["Website integration"],"operationId":"confirmServerExperience","summary":"Confirm an order","description":"The order is placed. A `reserved` experience (on a key whose server confirms designs) uses one experience and goes to processing; `experience.ready` or `experience.failed` follows on the webhook. You can add your order number and metadata. Confirming again answers the same and changes nothing.","security":[{"serverKey":[]}],"parameters":[{"in":"path","name":"id","description":"The experienceId your page got from the editor, or that a webhook carried.","required":true,"schema":{"type":"string","format":"uuid","description":"The experienceId your page got from the editor, or that a webhook carried.","example":"3f1c9a52-7d4e-4b8a-9e21-5c6d0f8b2a17"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"orderReference":{"type":"string","minLength":1,"maxLength":100,"description":"Your order number. It is kept with the experience, sent back in every webhook, and you can filter the list by it."},"metadata":{"type":"object","additionalProperties":{"type":"string","maxLength":200},"description":"Your own string values (up to 200 characters each), added to what your page passed in."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Confirmed: the experience as it now stands","content":{"application/json":{"schema":{"type":"object","properties":{"experienceId":{"type":"string","description":"The experience ID. Every webhook carries it."},"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"],"description":"Where it stands: `draft` (made through the API, not submitted yet), `reserved` (waits for your server to confirm it), `submitted`, `processing`, `ready` (scanning the QR code shows it), `failed` (see `processingError`) or `deleted`."},"contentKind":{"type":"string","enum":["video","model","info"],"description":"`video` (a hologram), `model` (3D objects) or `info` (a page of text and links)."},"scanCode":{"type":"string","description":"The short code in the QR code and in `scanUrl`."},"scanUrl":{"type":"string","description":"The address the printed QR code opens."},"qrSvgUrl":{"type":"string","description":"The QR code alone as a vector SVG, ready to print. Public."},"qrPngUrl":{"type":"string","description":"The QR code alone as a 1024 px PNG. Public."},"printImageUrl":{"type":"string","description":"The image with the QR code printed on it, when the experience has an image."},"printPdfUrl":{"type":"string","description":"The same print as a one-page PDF at its printed size, for a label printer."},"processingError":{"type":"string","description":"Why it failed, when `status` is `failed`."},"orderReference":{"type":"string","description":"Your order number, when one was sent."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"The values your page passed in, plus what your server added."},"createdAt":{"type":"number","description":"When it was made, in Unix seconds."},"reservedUntil":{"type":"number","description":"Until when a `reserved` experience waits for your confirm, in Unix seconds."},"confirmedAt":{"type":"number","description":"When it was confirmed, in Unix seconds."},"readyAt":{"type":"number","description":"When it became ready, in Unix seconds."},"pausedAt":{"type":"number","description":"When it was paused, in Unix seconds. While paused, its QR code shows what the key says a scan shows after the end."},"endsAt":{"type":"number","description":"When it stops showing, in Unix seconds. From then on its QR code shows what the key says a scan shows after the end."}},"required":["experienceId","status","scanCode","scanUrl","qrSvgUrl","qrPngUrl","createdAt"]}}}},"401":{"description":"server_key_required (no key) or server_key_invalid (wrong or replaced key, or its website key was deleted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/partnerError"}}}},"402":{"description":"no_experience_credits: it stays reserved; confirm again once you have more","content":{"application/json":{"schema":{"$ref":"#/components/schemas/partnerError"}}}},"404":{"description":"experience_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/partnerError"}}}},"409":{"description":"experience_cancelled: it was cancelled and can no longer be confirmed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/partnerError"}}}}}}},"/embed/server/experiences/{id}/cancel":{"post":{"tags":["Website integration"],"operationId":"cancelServerExperience","summary":"Cancel an order","description":"The order did not go ahead or was cancelled. An unconfirmed experience is removed and uses nothing. A confirmed one stops working (its QR code opens nothing) and its experience stays used.","security":[{"serverKey":[]}],"parameters":[{"in":"path","name":"id","description":"The experienceId your page got from the editor, or that a webhook carried.","required":true,"schema":{"type":"string","format":"uuid","description":"The experienceId your page got from the editor, or that a webhook carried.","example":"3f1c9a52-7d4e-4b8a-9e21-5c6d0f8b2a17"}}],"responses":{"200":{"description":"Cancelled: status `deleted`","content":{"application/json":{"schema":{"type":"object","properties":{"experienceId":{"type":"string","description":"The experience ID. Every webhook carries it."},"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"],"description":"Where it stands: `draft` (made through the API, not submitted yet), `reserved` (waits for your server to confirm it), `submitted`, `processing`, `ready` (scanning the QR code shows it), `failed` (see `processingError`) or `deleted`."},"contentKind":{"type":"string","enum":["video","model","info"],"description":"`video` (a hologram), `model` (3D objects) or `info` (a page of text and links)."},"scanCode":{"type":"string","description":"The short code in the QR code and in `scanUrl`."},"scanUrl":{"type":"string","description":"The address the printed QR code opens."},"qrSvgUrl":{"type":"string","description":"The QR code alone as a vector SVG, ready to print. Public."},"qrPngUrl":{"type":"string","description":"The QR code alone as a 1024 px PNG. Public."},"printImageUrl":{"type":"string","description":"The image with the QR code printed on it, when the experience has an image."},"printPdfUrl":{"type":"string","description":"The same print as a one-page PDF at its printed size, for a label printer."},"processingError":{"type":"string","description":"Why it failed, when `status` is `failed`."},"orderReference":{"type":"string","description":"Your order number, when one was sent."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"The values your page passed in, plus what your server added."},"createdAt":{"type":"number","description":"When it was made, in Unix seconds."},"reservedUntil":{"type":"number","description":"Until when a `reserved` experience waits for your confirm, in Unix seconds."},"confirmedAt":{"type":"number","description":"When it was confirmed, in Unix seconds."},"readyAt":{"type":"number","description":"When it became ready, in Unix seconds."},"pausedAt":{"type":"number","description":"When it was paused, in Unix seconds. While paused, its QR code shows what the key says a scan shows after the end."},"endsAt":{"type":"number","description":"When it stops showing, in Unix seconds. From then on its QR code shows what the key says a scan shows after the end."}},"required":["experienceId","status","scanCode","scanUrl","qrSvgUrl","qrPngUrl","createdAt"]}}}},"401":{"description":"server_key_required (no key) or server_key_invalid (wrong or replaced key, or its website key was deleted)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/partnerError"}}}},"404":{"description":"experience_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/partnerError"}}}}}}},"/embed/connect/token":{"post":{"tags":["Website integration"],"description":"One-click Connect, the shop's server side: trades the one-time code from the owner's approval, with the PKCE verifier the shop kept, for its website key, a new secret server key and a new webhook signing secret (when the shop has a reachable webhook). Each code works once, for 10 minutes; the shop's earlier server key and secret stop at once.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":20,"maxLength":200},"verifier":{"type":"string","minLength":43,"maxLength":128}},"required":["code","verifier"],"additionalProperties":false}}}},"responses":{"200":{"description":"200 OK","content":{"application/json":{"schema":{"type":"object","properties":{"keyName":{"type":"string"},"websiteKey":{"type":"string"},"serverKey":{"type":"string"},"webhookSecret":{"type":"string"}},"required":["keyName","websiteKey","serverKey"]}}}},"400":{"description":"connect_code_invalid: used, expired or not this shop's"},"429":{"description":"too_many_tries"}}}},"/embed/qr/{file}":{"get":{"tags":["Website integration"],"operationId":"getQrCode","summary":"Download the QR code","description":"The QR code alone, black on white with its quiet zone, for printing. Ask for `.svg` (vector) or `.png`. Public (no key) and cached for good.","security":[],"parameters":[{"name":"file","in":"path","required":true,"description":"The scan code with `.svg` or `.png`, e.g. `bgbikHGrcA.svg`.","schema":{"type":"string"}},{"name":"size","in":"query","required":false,"description":"PNG only: width and height in pixels, 128 to 4096 (1024 by default).","schema":{"type":"integer","minimum":128,"maximum":4096,"default":1024}}],"responses":{"200":{"description":"The QR code","content":{"image/svg+xml":{"schema":{"type":"string"}},"image/png":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"Not a scan code"}}}},"/embed/print/{file}":{"get":{"tags":["Website integration"],"operationId":"getPrintPdf","summary":"Download the print as a PDF","description":"The experience's print with its QR code (the visitor's image, or the website's own label or sticker) as a one-page PDF at its printed width (the label template's, else 300 dpi), for a label printer. Public, like the QR code.","security":[],"parameters":[{"name":"file","in":"path","required":true,"description":"The scan code with `.pdf`, e.g. `bgbikHGrcA.pdf`.","schema":{"type":"string"}}],"responses":{"200":{"description":"The print","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"No print for this code"}}}},"/embed/experiences/{id}/part-photos":{"post":{"tags":["Website integration"],"description":"A signed upload URL for the photo on a card that a tap on a part or a pin of the 3D scene opens. PUT the photo there with exactly `contentType`; `url` is what the scene stores.","parameters":[{"$ref":"#/components/parameters/entityRef"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"fileType":{"type":"string","minLength":1,"maxLength":100},"size":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":5242880}},"required":["fileType","size"],"additionalProperties":false}}}},"responses":{"200":{"description":"200 OK","content":{"application/json":{"schema":{"type":"object","properties":{"uploadUrl":{"type":"string"},"key":{"type":"string"},"contentType":{"type":"string"},"url":{"type":"string"}},"required":["uploadUrl","key","contentType","url"]}}}},"409":{"description":"The experience has already been submitted"}}}},"/embed/experiences/{id}/scene":{"put":{"tags":["Website integration"],"description":"Where the QR sits on the image and how the content is placed.","parameters":[{"$ref":"#/components/parameters/entityRef"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"scene":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"target":{"type":"object","properties":{"widthPx":{"type":"integer","minimum":0,"exclusiveMinimum":true},"heightPx":{"type":"integer","minimum":0,"exclusiveMinimum":true},"printWidthMm":{"type":"number","minimum":0,"exclusiveMinimum":true},"printSize":{"type":"object","properties":{"id":{"type":"integer","minimum":0},"name":{"type":"string","minLength":1,"maxLength":120},"widthMm":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":5000},"heightMm":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":5000},"category":{"type":"string","enum":["flyer","poster","rollup","postcard","calendar","businessCard","bookmark"]}},"required":["name","widthMm","heightMm"]},"curved":{"type":"object","properties":{"circumferenceTopMm":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":5000},"circumferenceBottomMm":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":5000},"labelWidthMm":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":5000},"sideLengthMm":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":5000},"object":{"type":"string","enum":["mug","can","bottle","cup"]}},"required":["circumferenceTopMm"],"additionalProperties":false}},"required":["widthPx","heightPx"]},"qr":{"type":"object","properties":{"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1},"size":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":1},"dark":{"type":"string","pattern":"^#[0-9a-f]{6}$"},"light":{"type":"string","pattern":"^#[0-9a-f]{6}$"}},"required":["x","y","size","dark","light"]},"content":{"type":"object","properties":{"type":{"type":"string","enum":["video","model","info"]},"position":{"type":"array","maxItems":3,"minItems":3,"items":{"oneOf":[{"type":"number"},{"type":"number"},{"type":"number"}]}},"quaternion":{"type":"array","maxItems":4,"minItems":4,"items":{"oneOf":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}]}},"scale":{"type":"number","minimum":0,"exclusiveMinimum":true},"animation":{"type":"string","enum":["autoplay","tap","tapLoop"]},"composed":{"type":"boolean"},"itemAnimations":{"type":"object","additionalProperties":{"type":"string","enum":["autoplay","tap","tapLoop"]}},"itemTapTargets":{"type":"object","additionalProperties":{"type":"string","enum":["model","part"]}},"itemClips":{"type":"object","additionalProperties":{"type":"object","properties":{"idle":{"type":"string","minLength":1,"maxLength":200},"tap":{"type":"string","minLength":1,"maxLength":200},"tapRandom":{"type":"boolean","enum":[true]}},"additionalProperties":false}},"light":{"type":"object","properties":{"look":{"type":"string","enum":["natural","bright","soft","dramatic"]},"brightness":{"type":"integer","minimum":-2,"maximum":4},"aim":{"type":"array","maxItems":2,"minItems":2,"items":{"oneOf":[{"type":"number","minimum":-1,"maximum":1},{"type":"number","minimum":-1,"maximum":1}]}}},"required":["look","brightness","aim"],"additionalProperties":false},"partActions":{"type":"object","additionalProperties":{"type":"object","properties":{"name":{"type":"string","maxLength":40},"motion":{"type":"string","enum":["slice","clip","lift","spin","bounce","pop","none"]},"clip":{"type":"string","minLength":1,"maxLength":200},"repeat":{"type":"string","enum":["again","toggle","next"]},"card":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":64},"text":{"type":"string","maxLength":280},"button":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"url":{"type":"string","format":"uri","maxLength":2000}},"required":["label","url"]},"image":{"type":"string"},"translations":{"type":"object","additionalProperties":{"type":"object","properties":{"title":{"type":"string","maxLength":64},"text":{"type":"string","maxLength":280},"button":{"type":"string","maxLength":40}},"additionalProperties":false}}},"required":["title"],"additionalProperties":false}},"additionalProperties":false}},"pins":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"node":{"type":"string","maxLength":200},"at":{"type":"array","maxItems":3,"minItems":3,"items":{"oneOf":[{"type":"number"},{"type":"number"},{"type":"number"}]}},"order":{"type":"integer","minimum":0,"maximum":100},"card":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":64},"text":{"type":"string","maxLength":280},"button":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"url":{"type":"string","format":"uri","maxLength":2000}},"required":["label","url"]},"image":{"type":"string"},"translations":{"type":"object","additionalProperties":{"type":"object","properties":{"title":{"type":"string","maxLength":64},"text":{"type":"string","maxLength":280},"button":{"type":"string","maxLength":40}},"additionalProperties":false}}},"required":["title"],"additionalProperties":false},"play":{"type":"string","enum":["none","part","model"]},"clip":{"type":"string","minLength":1,"maxLength":200},"random":{"type":"boolean","enum":[true]},"view":{"type":"object","properties":{"from":{"type":"array","maxItems":3,"minItems":3,"items":{"oneOf":[{"type":"number"},{"type":"number"},{"type":"number"}]}},"target":{"type":"array","maxItems":3,"minItems":3,"items":{"oneOf":[{"type":"number"},{"type":"number"},{"type":"number"}]}}},"required":["from","target"],"additionalProperties":false}},"required":["node","at","order","card"],"additionalProperties":false},"maxItems":20}},"background":{"type":"string","enum":["kept"]}},"required":["type","position","quaternion","scale"]},"overlay":{"type":"object","properties":{"eyebrow":{"type":"string","maxLength":40},"eyebrowColor":{"type":"string","pattern":"^#[0-9a-f]{6}$"},"title":{"type":"string","maxLength":64},"text":{"type":"string","maxLength":280},"buttons":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"url":{"type":"string","format":"uri","maxLength":2000},"icon":{"type":"string","enum":["phone","mobile","email","web","location","link","company","person","calendar","star","linkedin","instagram","facebook","messenger","whatsapp","x","threads","tiktok","youtube","telegram","gmail","google-maps","bolt","wolt"]},"color":{"type":"string","pattern":"^#[0-9a-f]{6}$"},"style":{"type":"string","enum":["outline"]}},"required":["label","url"]},"maxItems":3},"buttonColor":{"type":"string","pattern":"^#[0-9a-f]{6}$"},"layout":{"type":"string","enum":["floating","card","cardDark"]},"buttonsLayout":{"type":"string","enum":["stack","row"]}}}},"required":["version","target","qr","content"]}},"required":["scene"]}}}},"responses":{"200":{"description":"200 OK","content":{"application/json":{"schema":{"type":"object","properties":{"experienceId":{"type":"string"},"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"]},"scanCode":{"type":"string"},"scanUrl":{"type":"string"},"printImageUrl":{"type":"string"},"processingError":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string"}}},"required":["experienceId","status","scanCode","scanUrl"]}}}}}}},"/embed/experiences/{id}/submit":{"post":{"tags":["Website integration"],"parameters":[{"$ref":"#/components/parameters/entityRef"}],"responses":{"200":{"description":"200 OK","content":{"application/json":{"schema":{"type":"object","properties":{"experienceId":{"type":"string"},"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"]},"scanCode":{"type":"string"},"scanUrl":{"type":"string"},"printImageUrl":{"type":"string"},"processingError":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string"}}},"required":["experienceId","status","scanCode","scanUrl"]}}}},"400":{"description":"Image, content or placement still missing"}}}},"/embed/scan/{code}":{"get":{"tags":["Website integration"],"summary":"What a scanned QR opens","description":"Public: the code is the credential. A scan of a ready experience is counted once per phone per experience per 24 hours against the scans the org’s experiences share (a bought scan once the plan’s are used). Crawlers, the portal’s owner-test link and pack-paid experiences from before v4 are never counted. Free past its monthly scans (and past any it bought) gets `mode: links`: the printed image and its links, with no content. The Meishi viewer page forwards the scanner in the X-Meishi-* headers, its server signing the IP and user agent (X-Meishi-Viewer-Ts and X-Meishi-Viewer-Sig) with a secret it shares with this API. An identity without a valid, recent signature is ignored, and without an IP every open is counted.","parameters":[{"in":"path","name":"code","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-Meishi-Viewer-Ip","description":"The scanning phone’s IP (IPv4 or IPv6), for the 24-hour count","required":false,"schema":{"type":"string","description":"The scanning phone’s IP (IPv4 or IPv6), for the 24-hour count"}},{"in":"header","name":"X-Meishi-Viewer-Ua","description":"The scanning phone’s user agent (crawlers are not counted)","required":false,"schema":{"type":"string","description":"The scanning phone’s user agent (crawlers are not counted)"}},{"in":"header","name":"X-Meishi-Owner-Test","description":"The `t` token of the portal’s Open link: plays without counting","required":false,"schema":{"type":"string","description":"The `t` token of the portal’s Open link: plays without counting"}},{"in":"header","name":"X-Meishi-Viewer-Ts","description":"When the viewer page signed the IP and user agent, unix seconds","required":false,"schema":{"type":"string","description":"When the viewer page signed the IP and user agent, unix seconds"}},{"in":"header","name":"X-Meishi-Viewer-Sig","description":"HMAC-SHA256 (base64url) of the code, timestamp, IP and user agent, under the secret the viewer page shares with this API; valid for five minutes either way","required":false,"schema":{"type":"string","description":"HMAC-SHA256 (base64url) of the code, timestamp, IP and user agent, under the secret the viewer page shares with this API; valid for five minutes either way"}}],"responses":{"200":{"description":"The experience (`mode: ar`) or its links page (`mode: links`)","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"]},"mode":{"type":"string","enum":["ar","links"]},"scene":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"target":{"type":"object","properties":{"widthPx":{"type":"integer","minimum":0,"exclusiveMinimum":true},"heightPx":{"type":"integer","minimum":0,"exclusiveMinimum":true},"printWidthMm":{"type":"number","minimum":0,"exclusiveMinimum":true},"printSize":{"type":"object","properties":{"id":{"type":"integer","minimum":0},"name":{"type":"string","minLength":1,"maxLength":120},"widthMm":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":5000},"heightMm":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":5000},"category":{"type":"string","enum":["flyer","poster","rollup","postcard","calendar","businessCard","bookmark"]}},"required":["name","widthMm","heightMm"]},"curved":{"type":"object","properties":{"circumferenceTopMm":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":5000},"circumferenceBottomMm":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":5000},"labelWidthMm":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":5000},"sideLengthMm":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":5000},"object":{"type":"string","enum":["mug","can","bottle","cup"]}},"required":["circumferenceTopMm"],"additionalProperties":false}},"required":["widthPx","heightPx"]},"qr":{"type":"object","properties":{"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1},"size":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":1},"dark":{"type":"string","pattern":"^#[0-9a-f]{6}$"},"light":{"type":"string","pattern":"^#[0-9a-f]{6}$"}},"required":["x","y","size","dark","light"]},"content":{"type":"object","properties":{"type":{"type":"string","enum":["video","model","info"]},"position":{"type":"array","maxItems":3,"minItems":3,"items":{"oneOf":[{"type":"number"},{"type":"number"},{"type":"number"}]}},"quaternion":{"type":"array","maxItems":4,"minItems":4,"items":{"oneOf":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}]}},"scale":{"type":"number","minimum":0,"exclusiveMinimum":true},"animation":{"type":"string","enum":["autoplay","tap","tapLoop"]},"composed":{"type":"boolean"},"itemAnimations":{"type":"object","additionalProperties":{"type":"string","enum":["autoplay","tap","tapLoop"]}},"itemTapTargets":{"type":"object","additionalProperties":{"type":"string","enum":["model","part"]}},"itemClips":{"type":"object","additionalProperties":{"type":"object","properties":{"idle":{"type":"string","minLength":1,"maxLength":200},"tap":{"type":"string","minLength":1,"maxLength":200},"tapRandom":{"type":"boolean","enum":[true]}},"additionalProperties":false}},"light":{"type":"object","properties":{"look":{"type":"string","enum":["natural","bright","soft","dramatic"]},"brightness":{"type":"integer","minimum":-2,"maximum":4},"aim":{"type":"array","maxItems":2,"minItems":2,"items":{"oneOf":[{"type":"number","minimum":-1,"maximum":1},{"type":"number","minimum":-1,"maximum":1}]}}},"required":["look","brightness","aim"],"additionalProperties":false},"partActions":{"type":"object","additionalProperties":{"type":"object","properties":{"name":{"type":"string","maxLength":40},"motion":{"type":"string","enum":["slice","clip","lift","spin","bounce","pop","none"]},"clip":{"type":"string","minLength":1,"maxLength":200},"repeat":{"type":"string","enum":["again","toggle","next"]},"card":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":64},"text":{"type":"string","maxLength":280},"button":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"url":{"type":"string","format":"uri","maxLength":2000}},"required":["label","url"]},"image":{"type":"string"},"translations":{"type":"object","additionalProperties":{"type":"object","properties":{"title":{"type":"string","maxLength":64},"text":{"type":"string","maxLength":280},"button":{"type":"string","maxLength":40}},"additionalProperties":false}}},"required":["title"],"additionalProperties":false}},"additionalProperties":false}},"pins":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"node":{"type":"string","maxLength":200},"at":{"type":"array","maxItems":3,"minItems":3,"items":{"oneOf":[{"type":"number"},{"type":"number"},{"type":"number"}]}},"order":{"type":"integer","minimum":0,"maximum":100},"card":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":64},"text":{"type":"string","maxLength":280},"button":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"url":{"type":"string","format":"uri","maxLength":2000}},"required":["label","url"]},"image":{"type":"string"},"translations":{"type":"object","additionalProperties":{"type":"object","properties":{"title":{"type":"string","maxLength":64},"text":{"type":"string","maxLength":280},"button":{"type":"string","maxLength":40}},"additionalProperties":false}}},"required":["title"],"additionalProperties":false},"play":{"type":"string","enum":["none","part","model"]},"clip":{"type":"string","minLength":1,"maxLength":200},"random":{"type":"boolean","enum":[true]},"view":{"type":"object","properties":{"from":{"type":"array","maxItems":3,"minItems":3,"items":{"oneOf":[{"type":"number"},{"type":"number"},{"type":"number"}]}},"target":{"type":"array","maxItems":3,"minItems":3,"items":{"oneOf":[{"type":"number"},{"type":"number"},{"type":"number"}]}}},"required":["from","target"],"additionalProperties":false}},"required":["node","at","order","card"],"additionalProperties":false},"maxItems":20}},"background":{"type":"string","enum":["kept"]}},"required":["type","position","quaternion","scale"]},"overlay":{"type":"object","properties":{"eyebrow":{"type":"string","maxLength":40},"eyebrowColor":{"type":"string","pattern":"^#[0-9a-f]{6}$"},"title":{"type":"string","maxLength":64},"text":{"type":"string","maxLength":280},"buttons":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"url":{"type":"string","format":"uri","maxLength":2000},"icon":{"type":"string","enum":["phone","mobile","email","web","location","link","company","person","calendar","star","linkedin","instagram","facebook","messenger","whatsapp","x","threads","tiktok","youtube","telegram","gmail","google-maps","bolt","wolt"]},"color":{"type":"string","pattern":"^#[0-9a-f]{6}$"},"style":{"type":"string","enum":["outline"]}},"required":["label","url"]},"maxItems":3},"buttonColor":{"type":"string","pattern":"^#[0-9a-f]{6}$"},"layout":{"type":"string","enum":["floating","card","cardDark"]},"buttonsLayout":{"type":"string","enum":["stack","row"]}}}},"required":["version","target","qr","content"]},"trackingImageUrl":{"type":"string"},"printImageUrl":{"type":"string"},"contentKind":{"type":"string","enum":["video","model","info"]},"splitVideoUrl":{"type":"string"},"glbUrl":{"type":"string"},"usdzUrl":{"type":"string"},"overlay":{"type":"object","properties":{"eyebrow":{"type":"string","maxLength":40},"eyebrowColor":{"type":"string","pattern":"^#[0-9a-f]{6}$"},"title":{"type":"string","maxLength":64},"text":{"type":"string","maxLength":280},"buttons":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"url":{"type":"string","format":"uri","maxLength":2000},"icon":{"type":"string","enum":["phone","mobile","email","web","location","link","company","person","calendar","star","linkedin","instagram","facebook","messenger","whatsapp","x","threads","tiktok","youtube","telegram","gmail","google-maps","bolt","wolt"]},"color":{"type":"string","pattern":"^#[0-9a-f]{6}$"},"style":{"type":"string","enum":["outline"]}},"required":["label","url"]},"maxItems":3},"buttonColor":{"type":"string","pattern":"^#[0-9a-f]{6}$"},"layout":{"type":"string","enum":["floating","card","cardDark"]},"buttonsLayout":{"type":"string","enum":["stack","row"]}}},"info":{"type":"boolean","enum":[true]},"badge":{"type":"boolean"},"tag":{"type":"boolean"},"logoUrl":{"type":"string"},"logoBackground":{"type":"boolean"},"launchButtonColor":{"type":"string","pattern":"^#[0-9a-f]{6}$"}},"required":["status"]}}}},"404":{"description":"experience_not_found (unknown code)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"500":{"description":"The lookup failed; worth one more try","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/card/{id}":{"get":{"summary":"A saved card for the apps: the fields GET /scan/{batchId} returns, without recording a scan. Members read the whole card from the content API's GET /card/{id}.","tags":["Card"],"parameters":[{"$ref":"#/components/parameters/entityRef"}],"responses":{"200":{"description":"200 ok","content":{"application/json":{"schema":{"type":"object","properties":{"batch":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"front":{"type":"string"},"back":{"type":"string"},"processingStatus":{"type":"string","enum":["none","pending","completed","failed"]},"pendingProcessing":{"type":"object","properties":{"frontVideo":{"type":"boolean"},"backVideo":{"type":"boolean"},"frontModel":{"type":"boolean"},"backModel":{"type":"boolean"}}},"frontARType":{"type":"string","enum":["video","image","3dModel","none"]},"frontVideoSplit":{"type":"string"},"frontVideoWebm":{"type":"string"},"frontVideoLayered":{"type":"string"},"frontVideoLayeredGif":{"type":"string"},"frontVideoDepthURL":{"type":"string"},"frontModelURL":{"type":"string"},"frontModelGLB":{"type":"string"},"frontModelUSDZ":{"type":"string"},"frontModelAnimation":{"type":"string","enum":["autoplay","tap"]},"frontVideoPlacement":{"type":"object","properties":{"x":{"type":"number"},"bottom":{"type":"number"},"height":{"type":"number"}},"required":["x","bottom","height"]},"frontARImage":{"type":"string"},"backARType":{"type":"string","enum":["video","image","3dModel","none"]},"backVideoSplit":{"type":"string"},"backVideoWebm":{"type":"string"},"backVideoLayered":{"type":"string"},"backVideoLayeredGif":{"type":"string"},"backVideoDepthURL":{"type":"string"},"backModelURL":{"type":"string"},"backModelGLB":{"type":"string"},"backModelUSDZ":{"type":"string"},"backModelAnimation":{"type":"string","enum":["autoplay","tap"]},"backVideoPlacement":{"type":"object","properties":{"x":{"type":"number"},"bottom":{"type":"number"},"height":{"type":"number"}},"required":["x","bottom","height"]},"backARImage":{"type":"string"},"backTrackingDisabled":{"type":"boolean"},"split_webm":{"type":"string"},"layered":{"type":"string"},"showARByDefault":{"type":"boolean"},"scanExperience":{"type":"string","enum":["full","arOnly","arBare","nonArOnly"]},"pageStyle":{"type":"string"},"pageAccentColor":{"type":"string"},"pageTileColor":{"type":"string"},"linkIconColor":{"type":"string"},"contacts":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"URL":{"type":"string"}},"required":["type","URL"]}},"frontSceneVideos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"background":{"type":"string","enum":["removed","kept"]},"video":{"type":"string"}},"required":["id","background","video"]}},"backSceneVideos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"background":{"type":"string","enum":["removed","kept"]},"video":{"type":"string"}},"required":["id","background","video"]}},"conversationConfig":{"type":"object","properties":{"enabled":{"type":"boolean"},"avatarId":{"type":"string","maxLength":64},"language":{"type":"string","maxLength":16},"welcomeMessage":{"type":"string","maxLength":500}}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"orgProfile":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"firstName":{"type":"string"},"lastName":{"type":"string"},"position":{"type":"string"},"profilePicture":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"web":{"type":"string"},"insta":{"type":"string"},"fb":{"type":"string"},"threads":{"type":"string"},"linkedin":{"type":"string"},"x":{"type":"string"},"contacts":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"URL":{"type":"string"}},"required":["type","URL"]}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id"]},"org":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"web":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name"]}},"required":["batch","orgProfile"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/scan/{batchId}":{"get":{"tags":["Card"],"parameters":[{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}},{"in":"query","name":"recordScan","required":false,"description":"When false or 0, omit recording a scan event (card payload unchanged). Omit or any other value records.","schema":{"type":"string"}}],"responses":{"200":{"description":"200 ok - Scan card; records a scan event unless recordScan is false or 0","content":{"application/json":{"schema":{"type":"object","properties":{"batch":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"front":{"type":"string"},"back":{"type":"string"},"processingStatus":{"type":"string","enum":["none","pending","completed","failed"]},"pendingProcessing":{"type":"object","properties":{"frontVideo":{"type":"boolean"},"backVideo":{"type":"boolean"},"frontModel":{"type":"boolean"},"backModel":{"type":"boolean"}}},"frontARType":{"type":"string","enum":["video","image","3dModel","none"]},"frontVideoSplit":{"type":"string"},"frontVideoWebm":{"type":"string"},"frontVideoLayered":{"type":"string"},"frontVideoLayeredGif":{"type":"string"},"frontVideoDepthURL":{"type":"string"},"frontModelURL":{"type":"string"},"frontModelGLB":{"type":"string"},"frontModelUSDZ":{"type":"string"},"frontModelAnimation":{"type":"string","enum":["autoplay","tap"]},"frontVideoPlacement":{"type":"object","properties":{"x":{"type":"number"},"bottom":{"type":"number"},"height":{"type":"number"}},"required":["x","bottom","height"]},"frontARImage":{"type":"string"},"backARType":{"type":"string","enum":["video","image","3dModel","none"]},"backVideoSplit":{"type":"string"},"backVideoWebm":{"type":"string"},"backVideoLayered":{"type":"string"},"backVideoLayeredGif":{"type":"string"},"backVideoDepthURL":{"type":"string"},"backModelURL":{"type":"string"},"backModelGLB":{"type":"string"},"backModelUSDZ":{"type":"string"},"backModelAnimation":{"type":"string","enum":["autoplay","tap"]},"backVideoPlacement":{"type":"object","properties":{"x":{"type":"number"},"bottom":{"type":"number"},"height":{"type":"number"}},"required":["x","bottom","height"]},"backARImage":{"type":"string"},"backTrackingDisabled":{"type":"boolean"},"split_webm":{"type":"string"},"layered":{"type":"string"},"showARByDefault":{"type":"boolean"},"scanExperience":{"type":"string","enum":["full","arOnly","arBare","nonArOnly"]},"pageStyle":{"type":"string"},"pageAccentColor":{"type":"string"},"pageTileColor":{"type":"string"},"linkIconColor":{"type":"string"},"contacts":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"URL":{"type":"string"}},"required":["type","URL"]}},"frontSceneVideos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"background":{"type":"string","enum":["removed","kept"]},"video":{"type":"string"}},"required":["id","background","video"]}},"backSceneVideos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"background":{"type":"string","enum":["removed","kept"]},"video":{"type":"string"}},"required":["id","background","video"]}},"conversationConfig":{"type":"object","properties":{"enabled":{"type":"boolean"},"avatarId":{"type":"string","maxLength":64},"language":{"type":"string","maxLength":16},"welcomeMessage":{"type":"string","maxLength":500}}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"user":{"type":"object","properties":{"id":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"}},"required":["id","firstName","lastName"]},"orgProfile":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"firstName":{"type":"string"},"lastName":{"type":"string"},"position":{"type":"string"},"profilePicture":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"web":{"type":"string"},"insta":{"type":"string"},"fb":{"type":"string"},"threads":{"type":"string"},"linkedin":{"type":"string"},"x":{"type":"string"},"contacts":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"URL":{"type":"string"}},"required":["type","URL"]}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id"]},"org":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"web":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name"]},"leadCapture":{"type":"object","properties":{"open":{"type":"boolean"}},"required":["open"],"description":"Whether the card's lead form takes new contact details. False while the owner's plan is at its monthly lead cap (POST /scan/{batchId}/lead then answers 409 lead_form_closed). Absent means open."}},"required":["batch","user","orgProfile","org"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/scan/{batchId}/part-taps":{"post":{"tags":["Card"],"description":"Counts what visitors did with the parts and pins of the card 3D scenes (a beacon, sent as text/plain). Always 204 once it is a beacon.","parameters":[{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"text/plain":{"schema":{"type":"object","properties":{"events":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":300},"name":{"type":"string","maxLength":80},"kind":{"type":"string","enum":["tap","card","link"]}},"required":["key","kind"],"additionalProperties":false},"minItems":1,"maxItems":30}},"required":["events"],"additionalProperties":false}}}},"responses":{"204":{"description":"Counted, or dropped (crawlers, too many beacons)"},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/embed/scan/{code}/part-taps":{"post":{"tags":["Embed"],"description":"Counts what visitors did with the parts and pins of an experience 3D scene (a beacon, sent as text/plain).","parameters":[{"in":"path","name":"code","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"text/plain":{"schema":{"type":"object","properties":{"events":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":300},"name":{"type":"string","maxLength":80},"kind":{"type":"string","enum":["tap","card","link"]}},"required":["key","kind"],"additionalProperties":false},"minItems":1,"maxItems":30}},"required":["events"],"additionalProperties":false}}}},"responses":{"204":{"description":"Counted, or dropped (crawlers, too many beacons)"},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/scan/{batchId}/scan-event":{"post":{"tags":["Card"],"description":"Records a scan analytics event. Viewer country is resolved server-side (CloudFront geo headers, then IP geolocation, client locale, Accept-Language, then IANA time zone).","parameters":[{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"clientTimeZone":{"type":"string","maxLength":64},"locale":{"type":"string","maxLength":32},"source":{"type":"string","maxLength":32},"viewerSessionId":{"type":"string","format":"uuid"},"eventName":{"type":"string","maxLength":64},"consent":{"type":"object","properties":{"analyticsConsent":{"type":"boolean"},"contactShareConsent":{"type":"boolean"},"crmSyncConsent":{"type":"boolean"},"linkedinPrefillConsent":{"type":"boolean"},"marketingFollowUpConsent":{"type":"boolean"}}},"engagement":{"type":"object","properties":{"durationBucket":{"type":"string","maxLength":32},"interactionCount":{"type":"integer","minimum":0}}}}}}}},"responses":{"200":{"description":"Scan event accepted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/scan/{batchId}/marketing-consent":{"post":{"tags":["Card"],"description":"Records marketing / follow-up consent for an anonymous scan session (separate from CRM lead sync). When true, enqueues HubSpot sync event `scan.marketing_opt_in`.","parameters":[{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"viewerSessionId":{"type":"string","format":"uuid"},"marketingFollowUpConsent":{"type":"boolean"}},"required":["viewerSessionId","marketingFollowUpConsent"]}}}},"responses":{"200":{"description":"Consent recorded","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"viewerSessionId":{"type":"string","format":"uuid"}},"required":["success","viewerSessionId"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/scan/{batchId}/viewer-fcm-token":{"put":{"tags":["Card"],"description":"Registers an FCM web push token for an anonymous scan viewer. Calling this endpoint creates or refreshes the anonymous scan session. The token presence alone makes the viewer eligible for push notifications; deleting the token opts out.","parameters":[{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"viewerSessionId":{"type":"string","format":"uuid"},"token":{"type":"string","minLength":1}},"required":["viewerSessionId","token"]}}}},"responses":{"200":{"description":"Token saved","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"delete":{"tags":["Card"],"description":"Removes the stored FCM token for this viewer session and card batch.","parameters":[{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"viewerSessionId":{"type":"string","format":"uuid"}},"required":["viewerSessionId"]}}}},"responses":{"200":{"description":"Token removed if it existed","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/scan/{batchId}/lead":{"post":{"tags":["Card"],"parameters":[{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"viewerSessionId":{"type":"string","format":"uuid"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string","format":"email"},"phone":{"type":"string"},"company":{"type":"string"},"linkedinProfileUrl":{"type":"string","format":"uri"},"consent":{"type":"object","properties":{"analyticsConsent":{"type":"boolean"},"contactShareConsent":{"type":"boolean"},"crmSyncConsent":{"type":"boolean"},"linkedinPrefillConsent":{"type":"boolean"},"marketingFollowUpConsent":{"type":"boolean"}},"required":["contactShareConsent","crmSyncConsent"]}},"required":["viewerSessionId","email","consent"]}}}},"responses":{"200":{"description":"Lead capture accepted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"viewerSessionId":{"type":"string","format":"uuid"}},"required":["success","viewerSessionId"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"409":{"description":"409 lead_form_closed: the card owner's plan is at its monthly lead cap and the submitter is not a known lead. Nothing is stored.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string","enum":["lead_form_closed"]},"message":{"type":"string"},"timestamp":{"type":"string"}},"required":["code","message","timestamp"]}},"required":["success","error"]}}}}}}},"/scan/{batchId}/messages":{"get":{"tags":["Card"],"description":"Lists stored viewer notification title+body for an anonymous scan session so the message is retrievable after the push tap.","parameters":[{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}},{"in":"query","name":"viewerSessionId","required":true,"description":"Anonymous scan session id (capability token for the inbox)","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"messageId","required":false,"description":"Delivery the viewer opened from a notification; marked as opened","schema":{"type":"string"}}],"responses":{"200":{"description":"Stored messages for this viewer session and card","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"body":{"type":"string"},"sentAt":{"type":"number"},"status":{"type":"string"},"source":{"type":"string"}},"required":["id","title","body"]}}},"required":["items"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/scan/{batchId}/conversation/turn":{"post":{"tags":["Card"],"description":"Runs one live hologram conversation turn: LLM reply + TTS audio with word timings for client lipsync. 404 `conversation_off` until the `hologramConversation` flag is on for the card's organisation; until then GET /scan leaves `conversationConfig` out. Only legacy Premium and paid company plans have it: other plans get 403 `conversation_not_in_plan`. A visitor IP gets 5 replies a minute and 20 a day (429 `conversation_rate_limited`), an org 50 a UTC month (429 `conversation_monthly_limit`); a 429 carries `Retry-After` and `error.details.retryAfterSeconds`.","parameters":[{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"viewerSessionId":{"type":"string","format":"uuid"},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant"]},"content":{"type":"string","minLength":1,"maxLength":500}},"required":["role","content"]},"minItems":1,"maxItems":12},"locale":{"type":"string","maxLength":32}},"required":["viewerSessionId","messages"]}}}},"responses":{"200":{"description":"Conversation turn","content":{"application/json":{"schema":{"type":"object","properties":{"reply":{"type":"string"},"audioBase64":{"type":"string"},"audioMime":{"type":"string"},"wordTimings":{"type":"array","items":{"type":"object","properties":{"word":{"type":"string"},"start":{"type":"number"},"end":{"type":"number"}},"required":["word","start","end"]}},"ttsProvider":{"type":"string","enum":["elevenlabs","client"]}},"required":["reply","audioBase64","audioMime","wordTimings"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"403":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"429":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/wallet-pass/providers":{"get":{"tags":["Card"],"responses":{"200":{"description":"Which wallets have credentials set up","content":{"application/json":{"schema":{"type":"object","properties":{"apple":{"type":"boolean"},"google":{"type":"boolean"}},"required":["apple","google"]}}}}}}},"/wallet-pass/{batchId}":{"get":{"tags":["Card"],"parameters":[{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}},{"in":"query","name":"lang","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The card as a wallet pass for this device: the Apple .pkpass on iPhone, iPad and Mac","content":{"application/vnd.apple.pkpass":{"schema":{"type":"string"}}}},"302":{"description":"Elsewhere: redirect to the \"Add to Google Wallet\" link"},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"503":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/wallet-pass/{batchId}/preview":{"get":{"tags":["Card"],"parameters":[{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"What the card's wallet pass shows, for the \"Add to wallet\" page","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"position":{"type":"string"},"company":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"web":{"type":"string"},"photoUrl":{"type":"string"},"logoUrl":{"type":"string"},"scanUrl":{"type":"string"},"colors":{"type":"object","properties":{"background":{"type":"string"},"foreground":{"type":"string"},"label":{"type":"string"}},"required":["background","foreground","label"]}},"required":["name","position","company","phone","email","web","photoUrl","logoUrl","scanUrl","colors"]}}}},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/wallet-pass/{batchId}/photo":{"get":{"tags":["Card"],"parameters":[{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}},{"in":"query","name":"v","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The card's profile photo, square (Google Wallet masks it into the pass's round logo)","content":{"image/png":{"schema":{"type":"string"}}}},"302":{"description":"No photo on the pass: redirect to the Meishi logo"},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/wallet-pass/{batchId}/logo":{"get":{"tags":["Card"],"parameters":[{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}},{"in":"query","name":"v","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The company logo in the pass's text colour, 1280 x 400 (Google Wallet's wide logo)","content":{"image/png":{"schema":{"type":"string"}}}},"302":{"description":"No readable company logo: redirect to the Meishi logo"},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/wallet-pass/{batchId}/apple":{"get":{"tags":["Card"],"parameters":[{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}},{"in":"query","name":"lang","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Apple Wallet pass (.pkpass) of the card","content":{"application/vnd.apple.pkpass":{"schema":{"type":"string"}}}},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"503":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/wallet-pass/{batchId}/google":{"get":{"tags":["Card"],"parameters":[{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}},{"in":"query","name":"lang","required":false,"schema":{"type":"string"}}],"responses":{"302":{"description":"Redirect to the \"Add to Google Wallet\" link of the card"},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"503":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/signature/go/{token}":{"get":{"tags":["Signature"],"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"}},{"in":"query","name":"via","required":false,"schema":{"type":"string","enum":["qr"]}}],"responses":{"302":{"description":"Logs the click, then redirects: card signatures open the cardless scan page (`?screenAr=1`); `via=qr` on the card style opens marker AR; campaigns go to their URL"},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/signature/page/{token}":{"get":{"tags":["Signature"],"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Details and hologram video a custom signature page shows"},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/signature/img/{token}":{"get":{"tags":["Signature"],"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"}},{"in":"query","name":"v","required":false,"schema":{"type":"string","enum":["hologram","front","qr"]}}],"responses":{"200":{"description":"Signature image: the card GIF/PNG by default, or the rendered hologram, the card front or the QR code"},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/social-click/{batchId}":{"post":{"tags":["Card"],"parameters":[{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"socialType":{"type":"string"},"viewerSessionId":{"type":"string","format":"uuid"}},"required":["socialType"]}}}},"responses":{"200":{"description":"200 OK - Social click tracked successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success","message"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/calculatePlanPrice":{"post":{"tags":["Subscription"],"summary":"Quote a plan from the price catalog (no sign-in)","description":"Catalog prices only: any orgId in the body is ignored and every VAT ID counts as unverified. Signed-in members quote their org's own price family and verified VAT ID with POST /calculatePlanPrice on the billing API.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["individual","organization"]},"seatCount":{"type":"number","description":"Company seats to price (default 5). Personal plans and Partner are always 1."},"vatId":{"type":"string","description":"Reverse charge only when it is the org's own VAT ID, verified through Stripe (billing API only: the public quote treats every VAT ID as unverified)"},"orgId":{"type":"string","description":"Ignored (older portal bundles send it): the billing API quotes the org in its orgId header, the public quote no org"},"customerCountry":{"type":"string","minLength":2,"maxLength":2},"tier":{"type":"string","enum":["standard","premium","partner"],"description":"partner is a company plan: it needs type organization (400 partner_requires_organization)"},"billingInterval":{"type":"string","enum":["monthly","yearly"]}},"required":["type"]}}}},"responses":{"200":{"description":"200 OK","content":{"application/json":{"schema":{"type":"object","properties":{"price":{"type":"number","description":"What the quantity costs in cents: VAT included for an inclusive price, excluded otherwise"},"currency":{"type":"string"},"vatAmount":{"type":"number"},"vatRate":{"type":"number"},"totalWithVAT":{"type":"number","description":"Equals price for an inclusive price"},"vatRules":{"type":"object","properties":{"rule":{"type":"string"},"rate":{"type":"string"},"description":{"type":"string"}},"required":["rule","rate","description"]},"customerCountry":{"type":"string","nullable":true},"isB2B":{"type":"boolean"},"taxBehavior":{"type":"string","enum":["inclusive","exclusive","unspecified"],"description":"unspecified: an older price sold VAT-inclusive"},"planVersion":{"type":"string","enum":["v1","v2","v3","v4"],"description":"The price family quoted"},"quantity":{"type":"number"},"includedSeats":{"type":"number","description":"Graduated seat prices (Business v4): seats the base covers"},"baseAmount":{"type":"number"},"extraSeatAmount":{"type":"number"}},"required":["price","currency"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/subscriptions":{"get":{"tags":["Subscription"],"responses":{"200":{"description":"Available subscription products","content":{"application/json":{"schema":{"type":"object","properties":{"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"individual-standard, individual-premium, organization (Business) and organization-partner (only once Partner is on sale)"},"name":{"type":"string"},"description":{"type":"string"},"planType":{"type":"string","enum":["individual","organization"]},"tier":{"type":"string","enum":["standard","premium","partner"]},"prices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"unit_amount":{"type":"number","description":"Cents. Tiered prices: what the included quantity costs (Business: the 5-seat base). 0 when Stripe could not return the price."},"currency":{"type":"string"},"recurring":{"type":"object","properties":{"interval":{"type":"string"}},"required":["interval"]},"tier":{"type":"string","enum":["standard","premium","partner"]},"billingInterval":{"type":"string","enum":["monthly","yearly"]},"tax_behavior":{"type":"string","enum":["inclusive","exclusive","unspecified"]},"billing_scheme":{"type":"string","enum":["per_unit","tiered"]},"tiers":{"type":"array","items":{"type":"object","properties":{"up_to":{"type":"number","nullable":true},"flat_amount":{"type":"number","nullable":true},"unit_amount":{"type":"number","nullable":true}},"required":["up_to","flat_amount","unit_amount"]}},"included_quantity":{"type":"number"}},"required":["id","unit_amount","currency","recurring"]}}},"required":["id","name","prices"]}}},"required":["products"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/sitemap/cards":{"get":{"tags":["Sitemap"],"parameters":[{"in":"query","name":"limit","required":false,"schema":{"type":"string"}},{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated crawlable public cards for sitemap generation","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updatedAt":{"type":"string"}},"required":["id"]}},"nextCursor":{"type":"string"}},"required":["items"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/auth/bootstrap-email-password":{"post":{"tags":["Auth"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"]}}}},"responses":{"200":{"description":"Bootstrap email/password login for federated users","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"]}},"required":["success","data"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/caller-id/directory":{"get":{"tags":["Caller ID"],"description":"Phone directory for iOS Call Directory sync (printed cards only)","responses":{"200":{"description":"Printed-card phone numbers with display labels","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"count":{"type":"number"},"entries":{"type":"array","items":{"type":"object","properties":{"phone":{"type":"string"},"label":{"type":"string"},"profileId":{"type":"string","format":"uuid"},"cardId":{"type":"string","format":"uuid"}},"required":["phone","label","profileId"]}}},"required":["count","entries"]}},"required":["success","data"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/caller-id/lookup/{phone}":{"get":{"tags":["Caller ID"],"parameters":[{"in":"path","name":"phone","description":"E.164 digits (no +)","schema":{"type":"string","description":"E.164 digits (no +)"},"required":true}],"responses":{"200":{"description":"Matching Meishi caller","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"phone":{"type":"string"},"label":{"type":"string"},"profileId":{"type":"string","format":"uuid"},"cardId":{"type":"string","format":"uuid"}},"required":["phone","label","profileId"]}},"required":["success","data"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/expos":{"get":{"tags":["Expo"],"summary":"Published expo sites for the map on expo.meishi.cards: where each is and what is there, never its address or a stop’s files","responses":{"200":{"description":"Cached for a minute","content":{"application/json":{"schema":{"type":"object","properties":{"expos":{"type":"array","items":{"type":"object","properties":{"title":{"type":"object","properties":{"sk":{"type":"string","maxLength":80,"default":""},"en":{"type":"string","maxLength":80,"default":""},"pl":{"type":"string","maxLength":80},"cs":{"type":"string","maxLength":80},"de":{"type":"string","maxLength":80},"hu":{"type":"string","maxLength":80},"uk":{"type":"string","maxLength":80},"fr":{"type":"string","maxLength":80},"es":{"type":"string","maxLength":80},"it":{"type":"string","maxLength":80},"ro":{"type":"string","maxLength":80},"hr":{"type":"string","maxLength":80}},"required":["sk","en"],"default":{}},"place":{"type":"object","properties":{"sk":{"type":"string","maxLength":120,"default":""},"en":{"type":"string","maxLength":120,"default":""},"pl":{"type":"string","maxLength":120},"cs":{"type":"string","maxLength":120},"de":{"type":"string","maxLength":120},"hu":{"type":"string","maxLength":120},"uk":{"type":"string","maxLength":120},"fr":{"type":"string","maxLength":120},"es":{"type":"string","maxLength":120},"it":{"type":"string","maxLength":120},"ro":{"type":"string","maxLength":120},"hr":{"type":"string","maxLength":120}},"required":["sk","en"],"default":{}},"blurb":{"type":"object","properties":{"sk":{"type":"string","maxLength":300,"default":""},"en":{"type":"string","maxLength":300,"default":""},"pl":{"type":"string","maxLength":300},"cs":{"type":"string","maxLength":300},"de":{"type":"string","maxLength":300},"hu":{"type":"string","maxLength":300},"uk":{"type":"string","maxLength":300},"fr":{"type":"string","maxLength":300},"es":{"type":"string","maxLength":300},"it":{"type":"string","maxLength":300},"ro":{"type":"string","maxLength":300},"hr":{"type":"string","maxLength":300}},"required":["sk","en"],"default":{}},"location":{"type":"object","nullable":true,"properties":{"lat":{"type":"number"},"lng":{"type":"number"}},"required":["lat","lng"]},"visit":{"type":"object","properties":{"streetAddress":{"type":"string"},"about":{"type":"object","properties":{"sk":{"type":"string","maxLength":1200,"default":""},"en":{"type":"string","maxLength":1200,"default":""},"pl":{"type":"string","maxLength":1200},"cs":{"type":"string","maxLength":1200},"de":{"type":"string","maxLength":1200},"hu":{"type":"string","maxLength":1200},"uk":{"type":"string","maxLength":1200},"fr":{"type":"string","maxLength":1200},"es":{"type":"string","maxLength":1200},"it":{"type":"string","maxLength":1200},"ro":{"type":"string","maxLength":1200},"hr":{"type":"string","maxLength":1200}},"required":["sk","en"],"default":{}},"tips":{"type":"object","properties":{"sk":{"type":"string","maxLength":1500,"default":""},"en":{"type":"string","maxLength":1500,"default":""},"pl":{"type":"string","maxLength":1500},"cs":{"type":"string","maxLength":1500},"de":{"type":"string","maxLength":1500},"hu":{"type":"string","maxLength":1500},"uk":{"type":"string","maxLength":1500},"fr":{"type":"string","maxLength":1500},"es":{"type":"string","maxLength":1500},"it":{"type":"string","maxLength":1500},"ro":{"type":"string","maxLength":1500},"hr":{"type":"string","maxLength":1500}},"required":["sk","en"],"default":{}}},"required":["streetAddress","about","tips"]},"logoUrl":{"type":"string","nullable":true},"coverUrl":{"type":"string","nullable":true},"stops":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["hologram","model"]},"title":{"type":"object","properties":{"sk":{"type":"string","maxLength":80,"default":""},"en":{"type":"string","maxLength":80,"default":""},"pl":{"type":"string","maxLength":80},"cs":{"type":"string","maxLength":80},"de":{"type":"string","maxLength":80},"hu":{"type":"string","maxLength":80},"uk":{"type":"string","maxLength":80},"fr":{"type":"string","maxLength":80},"es":{"type":"string","maxLength":80},"it":{"type":"string","maxLength":80},"ro":{"type":"string","maxLength":80},"hr":{"type":"string","maxLength":80}},"required":["sk","en"],"default":{}}},"required":["kind","title"]}},"character":{"type":"object","nullable":true,"properties":{"sk":{"type":"string","maxLength":60,"default":""},"en":{"type":"string","maxLength":60,"default":""},"pl":{"type":"string","maxLength":60},"cs":{"type":"string","maxLength":60},"de":{"type":"string","maxLength":60},"hu":{"type":"string","maxLength":60},"uk":{"type":"string","maxLength":60},"fr":{"type":"string","maxLength":60},"es":{"type":"string","maxLength":60},"it":{"type":"string","maxLength":60},"ro":{"type":"string","maxLength":60},"hr":{"type":"string","maxLength":60}},"required":["sk","en"],"default":{}}},"required":["title","place","blurb","location","visit","logoUrl","coverUrl","stops","character"]}}},"required":["expos"]}}}}}}},"/expo-settings":{"get":{"tags":["Expo"],"summary":"Site-wide settings of expo.meishi.cards from the backoffice: whether visitors can talk to an expo's character","responses":{"200":{"description":"Cached for a minute","content":{"application/json":{"schema":{"type":"object","properties":{"talk":{"type":"boolean"}},"required":["talk"]}}}}}}},"/ar-session":{"post":{"tags":["AR"],"description":"One AR session’s anonymous quality report from a card scan or an expo stop (a beacon, sent as text/plain), for the backoffice’s AR quality page. The page sends only how the AR ran, nothing read from the device; the phone class (platform, browser, OS version, Android model) is read from the request’s User-Agent header. Only known fields and those labels are kept; no IP, user agent or visitor id is stored. Always 204 once it is a report.","requestBody":{"content":{"text/plain":{"schema":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["card","expo"]},"cameraReadyMs":{"type":"number"}},"required":["kind","cameraReadyMs"],"additionalProperties":{"anyOf":[{"type":"number"},{"type":"boolean"},{"type":"string"},{"type":"null"}]}},{"type":"object","properties":{"kind":{"type":"string","enum":["card-page"]},"holoStart":{"type":"string","enum":["tap","none"]}},"required":["kind","holoStart"],"additionalProperties":{"anyOf":[{"type":"number"},{"type":"boolean"},{"type":"string"},{"type":"null"}]}}]}}}},"responses":{"204":{"description":"Stored, or dropped (crawlers, too many reports)"},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/site-settings":{"get":{"tags":["Marketing"],"summary":"Which flagged pages meishi.cards shows, from the backoffice: whether the Peak AR page and its blog article are published","responses":{"200":{"description":"Cached for a minute","content":{"application/json":{"schema":{"type":"object","properties":{"peakArPage":{"type":"boolean"}},"required":["peakArPage"]}}}}}}},"/peak-ar/waitlist":{"post":{"tags":["Marketing"],"summary":"Join the Peak AR waitlist: hear when licences go on sale, with 25% off","description":"Adds the address to the marketing audience, tagged \"Peak AR waitlist\". The `website` field is a trap for bots and must be left empty: a filled one is answered like a sign-up and dropped. One address may sign up a few times a day. 404 while the Peak AR page is switched off in the backoffice.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","maxLength":254},"consent":{"type":"boolean","enum":[true]},"locale":{"type":"string","maxLength":10},"website":{"type":"string","maxLength":200}},"required":["email","consent"]}}}},"responses":{"200":{"description":"On the list","content":{"application/json":{"schema":{"type":"object","properties":{"joined":{"type":"boolean","enum":[true]}},"required":["joined"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"429":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/contact":{"post":{"tags":["Marketing"],"summary":"The Contact us form on meishi.cards","description":"Mails the message to the support inbox, with the visitor’s address as Reply-To. The `website` field is a trap for bots and must be left empty: a filled one is answered like a sent message and dropped. One address may send a few messages a day.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"help":{"type":"string","enum":["arSection","individualAcc","organizationAcc","subscription","pricing","other"]},"name":{"type":"string","maxLength":60},"lastname":{"type":"string","maxLength":60},"email":{"type":"string","format":"email","maxLength":254},"company":{"type":"string","maxLength":120},"message":{"type":"string","minLength":1,"maxLength":5000},"conditions":{"type":"boolean","enum":[true]},"website":{"type":"string","maxLength":200}},"required":["help","email","message","conditions"]}}}},"responses":{"200":{"description":"Sent","content":{"application/json":{"schema":{"type":"object","properties":{"sent":{"type":"boolean","enum":[true]}},"required":["sent"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"429":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/expos/{slug}":{"get":{"tags":["Expo"],"summary":"One expo site: its holograms and character, never the character’s knowledge","parameters":[{"in":"path","name":"slug","required":true,"schema":{"type":"string"}},{"in":"query","name":"preview","description":"A draft’s preview token (from the backoffice), to open it unpublished","required":false,"schema":{"type":"string","description":"A draft’s preview token (from the backoffice), to open it unpublished"}}],"responses":{"200":{"description":"Published expos are cached for a minute, drafts not at all","content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string"},"draft":{"type":"boolean"},"languages":{"type":"array","items":{"type":"string","enum":["sk","en","pl","cs","de","hu","uk","fr","es","it","ro","hr"]}},"title":{"type":"object","properties":{"sk":{"type":"string","maxLength":80,"default":""},"en":{"type":"string","maxLength":80,"default":""},"pl":{"type":"string","maxLength":80},"cs":{"type":"string","maxLength":80},"de":{"type":"string","maxLength":80},"hu":{"type":"string","maxLength":80},"uk":{"type":"string","maxLength":80},"fr":{"type":"string","maxLength":80},"es":{"type":"string","maxLength":80},"it":{"type":"string","maxLength":80},"ro":{"type":"string","maxLength":80},"hr":{"type":"string","maxLength":80}},"required":["sk","en"],"default":{}},"place":{"type":"object","properties":{"sk":{"type":"string","maxLength":120,"default":""},"en":{"type":"string","maxLength":120,"default":""},"pl":{"type":"string","maxLength":120},"cs":{"type":"string","maxLength":120},"de":{"type":"string","maxLength":120},"hu":{"type":"string","maxLength":120},"uk":{"type":"string","maxLength":120},"fr":{"type":"string","maxLength":120},"es":{"type":"string","maxLength":120},"it":{"type":"string","maxLength":120},"ro":{"type":"string","maxLength":120},"hr":{"type":"string","maxLength":120}},"required":["sk","en"],"default":{}},"blurb":{"type":"object","properties":{"sk":{"type":"string","maxLength":300,"default":""},"en":{"type":"string","maxLength":300,"default":""},"pl":{"type":"string","maxLength":300},"cs":{"type":"string","maxLength":300},"de":{"type":"string","maxLength":300},"hu":{"type":"string","maxLength":300},"uk":{"type":"string","maxLength":300},"fr":{"type":"string","maxLength":300},"es":{"type":"string","maxLength":300},"it":{"type":"string","maxLength":300},"ro":{"type":"string","maxLength":300},"hr":{"type":"string","maxLength":300}},"required":["sk","en"],"default":{}},"location":{"type":"object","nullable":true,"properties":{"lat":{"type":"number"},"lng":{"type":"number"}},"required":["lat","lng"]},"visit":{"type":"object","properties":{"streetAddress":{"type":"string"},"about":{"type":"object","properties":{"sk":{"type":"string","maxLength":1200,"default":""},"en":{"type":"string","maxLength":1200,"default":""},"pl":{"type":"string","maxLength":1200},"cs":{"type":"string","maxLength":1200},"de":{"type":"string","maxLength":1200},"hu":{"type":"string","maxLength":1200},"uk":{"type":"string","maxLength":1200},"fr":{"type":"string","maxLength":1200},"es":{"type":"string","maxLength":1200},"it":{"type":"string","maxLength":1200},"ro":{"type":"string","maxLength":1200},"hr":{"type":"string","maxLength":1200}},"required":["sk","en"],"default":{}},"tips":{"type":"object","properties":{"sk":{"type":"string","maxLength":1500,"default":""},"en":{"type":"string","maxLength":1500,"default":""},"pl":{"type":"string","maxLength":1500},"cs":{"type":"string","maxLength":1500},"de":{"type":"string","maxLength":1500},"hu":{"type":"string","maxLength":1500},"uk":{"type":"string","maxLength":1500},"fr":{"type":"string","maxLength":1500},"es":{"type":"string","maxLength":1500},"it":{"type":"string","maxLength":1500},"ro":{"type":"string","maxLength":1500},"hr":{"type":"string","maxLength":1500}},"required":["sk","en"],"default":{}}},"required":["streetAddress","about","tips"]},"brand":{"type":"object","properties":{"kicker":{"type":"object","properties":{"sk":{"type":"string","maxLength":80,"default":""},"en":{"type":"string","maxLength":80,"default":""},"pl":{"type":"string","maxLength":80},"cs":{"type":"string","maxLength":80},"de":{"type":"string","maxLength":80},"hu":{"type":"string","maxLength":80},"uk":{"type":"string","maxLength":80},"fr":{"type":"string","maxLength":80},"es":{"type":"string","maxLength":80},"it":{"type":"string","maxLength":80},"ro":{"type":"string","maxLength":80},"hr":{"type":"string","maxLength":80}},"required":["sk","en"],"default":{}},"mark":{"type":"string"},"accent":{"type":"object","properties":{"sk":{"type":"string","maxLength":60,"default":""},"en":{"type":"string","maxLength":60,"default":""},"pl":{"type":"string","maxLength":60},"cs":{"type":"string","maxLength":60},"de":{"type":"string","maxLength":60},"hu":{"type":"string","maxLength":60},"uk":{"type":"string","maxLength":60},"fr":{"type":"string","maxLength":60},"es":{"type":"string","maxLength":60},"it":{"type":"string","maxLength":60},"ro":{"type":"string","maxLength":60},"hr":{"type":"string","maxLength":60}},"required":["sk","en"],"default":{}},"intro":{"type":"object","properties":{"sk":{"type":"string","maxLength":400,"default":""},"en":{"type":"string","maxLength":400,"default":""},"pl":{"type":"string","maxLength":400},"cs":{"type":"string","maxLength":400},"de":{"type":"string","maxLength":400},"hu":{"type":"string","maxLength":400},"uk":{"type":"string","maxLength":400},"fr":{"type":"string","maxLength":400},"es":{"type":"string","maxLength":400},"it":{"type":"string","maxLength":400},"ro":{"type":"string","maxLength":400},"hr":{"type":"string","maxLength":400}},"required":["sk","en"],"default":{}}},"required":["kicker","mark","accent","intro"]},"theme":{"type":"object","properties":{"template":{"type":"string","enum":["heritage","modern","gallery","trail"]},"accent":{"type":"string"},"background":{"type":"string"}},"required":["template","accent","background"]},"logoUrl":{"type":"string","nullable":true},"coverUrl":{"type":"string","nullable":true},"planUrl":{"type":"string","nullable":true},"holograms":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["hologram","model"]},"title":{"type":"object","properties":{"sk":{"type":"string","maxLength":80,"default":""},"en":{"type":"string","maxLength":80,"default":""},"pl":{"type":"string","maxLength":80},"cs":{"type":"string","maxLength":80},"de":{"type":"string","maxLength":80},"hu":{"type":"string","maxLength":80},"uk":{"type":"string","maxLength":80},"fr":{"type":"string","maxLength":80},"es":{"type":"string","maxLength":80},"it":{"type":"string","maxLength":80},"ro":{"type":"string","maxLength":80},"hr":{"type":"string","maxLength":80}},"required":["sk","en"],"default":{}},"blurb":{"type":"object","properties":{"sk":{"type":"string","maxLength":300,"default":""},"en":{"type":"string","maxLength":300,"default":""},"pl":{"type":"string","maxLength":300},"cs":{"type":"string","maxLength":300},"de":{"type":"string","maxLength":300},"hu":{"type":"string","maxLength":300},"uk":{"type":"string","maxLength":300},"fr":{"type":"string","maxLength":300},"es":{"type":"string","maxLength":300},"it":{"type":"string","maxLength":300},"ro":{"type":"string","maxLength":300},"hr":{"type":"string","maxLength":300}},"required":["sk","en"],"default":{}},"where":{"type":"object","properties":{"sk":{"type":"string","maxLength":160,"default":""},"en":{"type":"string","maxLength":160,"default":""},"pl":{"type":"string","maxLength":160},"cs":{"type":"string","maxLength":160},"de":{"type":"string","maxLength":160},"hu":{"type":"string","maxLength":160},"uk":{"type":"string","maxLength":160},"fr":{"type":"string","maxLength":160},"es":{"type":"string","maxLength":160},"it":{"type":"string","maxLength":160},"ro":{"type":"string","maxLength":160},"hr":{"type":"string","maxLength":160}},"required":["sk","en"],"default":{}},"transcript":{"type":"object","properties":{"sk":{"type":"string","maxLength":5000,"default":""},"en":{"type":"string","maxLength":5000,"default":""},"pl":{"type":"string","maxLength":5000},"cs":{"type":"string","maxLength":5000},"de":{"type":"string","maxLength":5000},"hu":{"type":"string","maxLength":5000},"uk":{"type":"string","maxLength":5000},"fr":{"type":"string","maxLength":5000},"es":{"type":"string","maxLength":5000},"it":{"type":"string","maxLength":5000},"ro":{"type":"string","maxLength":5000},"hr":{"type":"string","maxLength":5000}},"required":["sk","en"],"default":{}},"location":{"type":"object","nullable":true,"properties":{"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180}},"required":["lat","lng"]},"planPosition":{"type":"object","nullable":true,"properties":{"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1}},"required":["x","y"]},"heightM":{"type":"number"},"splitUrl":{"type":"string","nullable":true},"previewMp4Url":{"type":"string","nullable":true},"previewWebmUrl":{"type":"string","nullable":true},"groundModelUrl":{"type":"string","nullable":true},"sceneUrl":{"type":"string","nullable":true},"views":{"type":"array","items":{"type":"object","properties":{"label":{"type":"object","properties":{"sk":{"type":"string","maxLength":24,"default":""},"en":{"type":"string","maxLength":24,"default":""},"pl":{"type":"string","maxLength":24},"cs":{"type":"string","maxLength":24},"de":{"type":"string","maxLength":24},"hu":{"type":"string","maxLength":24},"uk":{"type":"string","maxLength":24},"fr":{"type":"string","maxLength":24},"es":{"type":"string","maxLength":24},"it":{"type":"string","maxLength":24},"ro":{"type":"string","maxLength":24},"hr":{"type":"string","maxLength":24}},"required":["sk","en"],"default":{}},"sceneUrl":{"type":"string"},"heightM":{"type":"number"}},"required":["label","sceneUrl"]},"default":[]},"posterUrl":{"type":"string","nullable":true},"arPlace":{"type":"object","nullable":true,"properties":{"x":{"type":"number","minimum":-1000,"maximum":1000},"y":{"type":"number","minimum":-1000,"maximum":1000},"z":{"type":"number","minimum":-1000,"maximum":1000},"yaw":{"type":"number","minimum":-10,"maximum":10},"size":{"type":"number","minimum":0.5,"maximum":2},"mapUrl":{"type":"string"},"engineVersion":{"type":"string"},"savedAt":{"type":"number"},"occluders":{"type":"array","items":{"type":"object","properties":{"points":{"type":"array","items":{"type":"array","maxItems":2,"minItems":2,"items":{"oneOf":[{"type":"number","minimum":-1000,"maximum":1000},{"type":"number","minimum":-1000,"maximum":1000}]}},"minItems":2,"maxItems":32},"bottom":{"type":"number","minimum":-1000,"maximum":1000},"top":{"type":"number","minimum":-1000,"maximum":1000}},"required":["points","bottom","top"],"additionalProperties":false},"default":[]}},"required":["x","y","z","yaw","mapUrl","engineVersion","savedAt","occluders"],"default":null}},"required":["id","kind","title","blurb","where","transcript","location","planPosition","heightM","splitUrl","previewMp4Url","previewWebmUrl","groundModelUrl","sceneUrl","views","posterUrl","arPlace"]}},"character":{"type":"object","nullable":true,"properties":{"hologramId":{"type":"string"},"title":{"type":"object","properties":{"sk":{"type":"string","maxLength":60,"default":""},"en":{"type":"string","maxLength":60,"default":""},"pl":{"type":"string","maxLength":60},"cs":{"type":"string","maxLength":60},"de":{"type":"string","maxLength":60},"hu":{"type":"string","maxLength":60},"uk":{"type":"string","maxLength":60},"fr":{"type":"string","maxLength":60},"es":{"type":"string","maxLength":60},"it":{"type":"string","maxLength":60},"ro":{"type":"string","maxLength":60},"hr":{"type":"string","maxLength":60}},"required":["sk","en"],"default":{}},"invite":{"type":"object","properties":{"sk":{"type":"string","maxLength":80,"default":""},"en":{"type":"string","maxLength":80,"default":""},"pl":{"type":"string","maxLength":80},"cs":{"type":"string","maxLength":80},"de":{"type":"string","maxLength":80},"hu":{"type":"string","maxLength":80},"uk":{"type":"string","maxLength":80},"fr":{"type":"string","maxLength":80},"es":{"type":"string","maxLength":80},"it":{"type":"string","maxLength":80},"ro":{"type":"string","maxLength":80},"hr":{"type":"string","maxLength":80}},"required":["sk","en"],"default":{}},"blurb":{"type":"object","properties":{"sk":{"type":"string","maxLength":300,"default":""},"en":{"type":"string","maxLength":300,"default":""},"pl":{"type":"string","maxLength":300},"cs":{"type":"string","maxLength":300},"de":{"type":"string","maxLength":300},"hu":{"type":"string","maxLength":300},"uk":{"type":"string","maxLength":300},"fr":{"type":"string","maxLength":300},"es":{"type":"string","maxLength":300},"it":{"type":"string","maxLength":300},"ro":{"type":"string","maxLength":300},"hr":{"type":"string","maxLength":300}},"required":["sk","en"],"default":{}},"lipsync":{"type":"object","nullable":true,"properties":{"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1},"w":{"type":"number","minimum":0.001,"maximum":1},"h":{"type":"number","minimum":0.001,"maximum":1},"stillSec":{"type":"number","minimum":0,"maximum":600}},"required":["x","y","w","h","stillSec"]}},"required":["hologramId","title","invite","blurb","lipsync"]},"reward":{"type":"object","nullable":true,"properties":{"teaser":{"type":"object","properties":{"sk":{"type":"string","maxLength":200,"default":""},"en":{"type":"string","maxLength":200,"default":""},"pl":{"type":"string","maxLength":200},"cs":{"type":"string","maxLength":200},"de":{"type":"string","maxLength":200},"hu":{"type":"string","maxLength":200},"uk":{"type":"string","maxLength":200},"fr":{"type":"string","maxLength":200},"es":{"type":"string","maxLength":200},"it":{"type":"string","maxLength":200},"ro":{"type":"string","maxLength":200},"hr":{"type":"string","maxLength":200}},"required":["sk","en"],"default":{}},"title":{"type":"object","properties":{"sk":{"type":"string","maxLength":120,"default":""},"en":{"type":"string","maxLength":120,"default":""},"pl":{"type":"string","maxLength":120},"cs":{"type":"string","maxLength":120},"de":{"type":"string","maxLength":120},"hu":{"type":"string","maxLength":120},"uk":{"type":"string","maxLength":120},"fr":{"type":"string","maxLength":120},"es":{"type":"string","maxLength":120},"it":{"type":"string","maxLength":120},"ro":{"type":"string","maxLength":120},"hr":{"type":"string","maxLength":120}},"required":["sk","en"],"default":{}},"lead":{"type":"object","properties":{"sk":{"type":"string","maxLength":300,"default":""},"en":{"type":"string","maxLength":300,"default":""},"pl":{"type":"string","maxLength":300},"cs":{"type":"string","maxLength":300},"de":{"type":"string","maxLength":300},"hu":{"type":"string","maxLength":300},"uk":{"type":"string","maxLength":300},"fr":{"type":"string","maxLength":300},"es":{"type":"string","maxLength":300},"it":{"type":"string","maxLength":300},"ro":{"type":"string","maxLength":300},"hr":{"type":"string","maxLength":300}},"required":["sk","en"],"default":{}},"privacyUrl":{"type":"string"},"newsletter":{"type":"object","nullable":true,"properties":{"label":{"type":"object","properties":{"sk":{"type":"string","maxLength":200,"default":""},"en":{"type":"string","maxLength":200,"default":""},"pl":{"type":"string","maxLength":200},"cs":{"type":"string","maxLength":200},"de":{"type":"string","maxLength":200},"hu":{"type":"string","maxLength":200},"uk":{"type":"string","maxLength":200},"fr":{"type":"string","maxLength":200},"es":{"type":"string","maxLength":200},"it":{"type":"string","maxLength":200},"ro":{"type":"string","maxLength":200},"hr":{"type":"string","maxLength":200}},"required":["sk","en"],"default":{}},"consent":{"type":"object","properties":{"sk":{"type":"string","maxLength":600,"default":""},"en":{"type":"string","maxLength":600,"default":""},"pl":{"type":"string","maxLength":600},"cs":{"type":"string","maxLength":600},"de":{"type":"string","maxLength":600},"hu":{"type":"string","maxLength":600},"uk":{"type":"string","maxLength":600},"fr":{"type":"string","maxLength":600},"es":{"type":"string","maxLength":600},"it":{"type":"string","maxLength":600},"ro":{"type":"string","maxLength":600},"hr":{"type":"string","maxLength":600}},"required":["sk","en"],"default":{}}},"required":["label","consent"]}},"required":["teaser","title","lead","privacyUrl","newsletter"]}},"required":["slug","draft","languages","title","place","blurb","location","visit","brand","theme","logoUrl","coverUrl","planUrl","holograms","character","reward"]}}}},"404":{"description":"expo_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/expos/{slug}/talk":{"post":{"tags":["Expo"],"summary":"The expo character’s reply to the visitor’s last question","description":"Answers from the character’s facts, or from a model when the expo turned that on (the facts answer if it fails). Replies that cost money (a model or an ElevenLabs voice) are limited per visitor IP (15 a minute, 300 a day) and per expo (5000 a month); facts the browser speaks have no limit.","parameters":[{"in":"path","name":"slug","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant"]},"content":{"type":"string","minLength":1,"maxLength":1000}},"required":["role","content"]},"minItems":1,"maxItems":12},"locale":{"type":"string","maxLength":32},"preview":{"type":"string","maxLength":64}},"required":["messages"]}}}},"responses":{"200":{"description":"The reply, with audio when ElevenLabs is configured","content":{"application/json":{"schema":{"type":"object","properties":{"reply":{"type":"string"},"audioBase64":{"type":"string"},"audioMime":{"type":"string"},"wordTimings":{"type":"array","items":{"type":"object","properties":{"word":{"type":"string"},"start":{"type":"number"},"end":{"type":"number"}},"required":["word","start","end"]}},"ttsProvider":{"type":"string","enum":["elevenlabs","client"]}},"required":["reply","audioBase64","audioMime","wordTimings","ttsProvider"]}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"404":{"description":"expo_talk_off until the expoCharacterTalk flag is on, expo_not_found, expo_character_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"429":{"description":"conversation_rate_limited, conversation_monthly_limit (Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/legal/documents":{"get":{"tags":["Legal"],"summary":"Current published legal documents","responses":{"200":{"description":"Published terms and privacy documents","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"documents":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["terms","privacy"]},"version":{"type":"string"},"title":{"type":"string"},"content":{"type":"string"},"publishedAt":{"type":"number"}},"required":["type","version","content"]}}},"required":["documents"]}},"required":["success","data"]}}}}}}},"/contracts/by-token/{token}":{"get":{"tags":["Contracts"],"summary":"The contract a no-login link belongs to","parameters":[{"in":"path","name":"token","description":"The contract's no-login token from its confirmation email","required":true,"schema":{"type":"string","description":"The contract's no-login token from its confirmation email"}}],"responses":{"200":{"description":"The contract with its withdrawal and cancel options","content":{"application/json":{"schema":{"type":"object","properties":{"orgName":{"type":"string"},"buyerEmailMasked":{"type":"string"},"contract":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["subscription","experience_plan","pack","print"]},"title":{"type":"string"},"planType":{"type":"string"},"tier":{"type":"string"},"billingInterval":{"type":"string","enum":["monthly","yearly"]},"seatsCount":{"type":"number"},"experiencePlan":{"type":"string"},"packId":{"type":"string"},"credits":{"type":"number"},"scans":{"type":"number"},"printOrderId":{"type":"string"},"quantity":{"type":"number"},"startedAt":{"type":"number"},"currency":{"type":"string"},"amountPaidCents":{"type":"number"},"status":{"type":"string","enum":["active","cancel_scheduled","withdrawn","ended"]},"consumer":{"type":"boolean"},"immediateStart":{"type":"boolean"},"withdrawal":{"type":"object","nullable":true,"properties":{"available":{"type":"boolean"},"endsAt":{"type":"number"},"basis":{"type":"string","enum":["full","pro_rata","unused"]},"refundEstimateCents":{"type":"number"},"credits":{"type":"number"},"scans":{"type":"number"}},"required":["available","endsAt","basis","refundEstimateCents"]},"withdrawnAt":{"type":"number"},"withdrawalRefundCents":{"type":"number"},"cancel":{"type":"object","nullable":true,"properties":{"available":{"type":"boolean"},"rule":{"type":"string","enum":["period_end","one_month_notice"]},"effectiveAt":{"type":"number"},"refundEstimateCents":{"type":"number"}},"required":["available","rule","effectiveAt","refundEstimateCents"]},"cancelEffectiveAt":{"type":"number"},"exempt":{"type":"string","enum":["personalised_goods"]}},"required":["id","kind","title","startedAt","currency","status","consumer","immediateStart","withdrawal","cancel"]}},"required":["orgName","buyerEmailMasked","contract"]}}}},"404":{"description":"contract_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/contracts/by-token/{token}/withdraw":{"post":{"tags":["Contracts"],"summary":"Withdraw within 14 days through the no-login link (as POST /billing/contracts/{id}/withdraw)","parameters":[{"in":"path","name":"token","description":"The contract's no-login token from its confirmation email","required":true,"schema":{"type":"string","description":"The contract's no-login token from its confirmation email"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"boolean","enum":[true]},"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","format":"email","maxLength":320},"cancelType":{"type":"string","enum":["ordinary","extraordinary"]},"reason":{"type":"string","maxLength":2000}},"required":["confirm","name","email"]}}}},"responses":{"200":{"description":"Withdrawn; the acknowledgement was emailed","content":{"application/json":{"schema":{"type":"object","properties":{"contract":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["subscription","experience_plan","pack","print"]},"title":{"type":"string"},"planType":{"type":"string"},"tier":{"type":"string"},"billingInterval":{"type":"string","enum":["monthly","yearly"]},"seatsCount":{"type":"number"},"experiencePlan":{"type":"string"},"packId":{"type":"string"},"credits":{"type":"number"},"scans":{"type":"number"},"printOrderId":{"type":"string"},"quantity":{"type":"number"},"startedAt":{"type":"number"},"currency":{"type":"string"},"amountPaidCents":{"type":"number"},"status":{"type":"string","enum":["active","cancel_scheduled","withdrawn","ended"]},"consumer":{"type":"boolean"},"immediateStart":{"type":"boolean"},"withdrawal":{"type":"object","nullable":true,"properties":{"available":{"type":"boolean"},"endsAt":{"type":"number"},"basis":{"type":"string","enum":["full","pro_rata","unused"]},"refundEstimateCents":{"type":"number"},"credits":{"type":"number"},"scans":{"type":"number"}},"required":["available","endsAt","basis","refundEstimateCents"]},"withdrawnAt":{"type":"number"},"withdrawalRefundCents":{"type":"number"},"cancel":{"type":"object","nullable":true,"properties":{"available":{"type":"boolean"},"rule":{"type":"string","enum":["period_end","one_month_notice"]},"effectiveAt":{"type":"number"},"refundEstimateCents":{"type":"number"}},"required":["available","rule","effectiveAt","refundEstimateCents"]},"cancelEffectiveAt":{"type":"number"},"exempt":{"type":"string","enum":["personalised_goods"]}},"required":["id","kind","title","startedAt","currency","status","consumer","immediateStart","withdrawal","cancel"]},"receivedAt":{"type":"number"},"refundCents":{"type":"number"},"effectiveAt":{"type":"number"},"emailedTo":{"type":"array","items":{"type":"string"}}},"required":["contract","receivedAt","refundCents","emailedTo"]}}}},"400":{"description":"invalid_request (confirm missing, bad name or email, reason missing for cause)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"404":{"description":"contract_not_found (unknown token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"409":{"description":"See the billing route of the same name","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"502":{"description":"refund_failed: received and acknowledged, support completes the refund","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/contracts/by-token/{token}/cancel":{"post":{"tags":["Contracts"],"summary":"Cancel through the no-login link (as POST /billing/contracts/{id}/cancel)","parameters":[{"in":"path","name":"token","description":"The contract's no-login token from its confirmation email","required":true,"schema":{"type":"string","description":"The contract's no-login token from its confirmation email"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"boolean","enum":[true]},"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","format":"email","maxLength":320},"cancelType":{"type":"string","enum":["ordinary","extraordinary"]},"reason":{"type":"string","maxLength":2000}},"required":["confirm","name","email"]}}}},"responses":{"200":{"description":"Recorded and acknowledged; no effectiveAt for a cancellation for cause","content":{"application/json":{"schema":{"type":"object","properties":{"contract":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["subscription","experience_plan","pack","print"]},"title":{"type":"string"},"planType":{"type":"string"},"tier":{"type":"string"},"billingInterval":{"type":"string","enum":["monthly","yearly"]},"seatsCount":{"type":"number"},"experiencePlan":{"type":"string"},"packId":{"type":"string"},"credits":{"type":"number"},"scans":{"type":"number"},"printOrderId":{"type":"string"},"quantity":{"type":"number"},"startedAt":{"type":"number"},"currency":{"type":"string"},"amountPaidCents":{"type":"number"},"status":{"type":"string","enum":["active","cancel_scheduled","withdrawn","ended"]},"consumer":{"type":"boolean"},"immediateStart":{"type":"boolean"},"withdrawal":{"type":"object","nullable":true,"properties":{"available":{"type":"boolean"},"endsAt":{"type":"number"},"basis":{"type":"string","enum":["full","pro_rata","unused"]},"refundEstimateCents":{"type":"number"},"credits":{"type":"number"},"scans":{"type":"number"}},"required":["available","endsAt","basis","refundEstimateCents"]},"withdrawnAt":{"type":"number"},"withdrawalRefundCents":{"type":"number"},"cancel":{"type":"object","nullable":true,"properties":{"available":{"type":"boolean"},"rule":{"type":"string","enum":["period_end","one_month_notice"]},"effectiveAt":{"type":"number"},"refundEstimateCents":{"type":"number"}},"required":["available","rule","effectiveAt","refundEstimateCents"]},"cancelEffectiveAt":{"type":"number"},"exempt":{"type":"string","enum":["personalised_goods"]}},"required":["id","kind","title","startedAt","currency","status","consumer","immediateStart","withdrawal","cancel"]},"receivedAt":{"type":"number"},"refundCents":{"type":"number"},"effectiveAt":{"type":"number"},"emailedTo":{"type":"array","items":{"type":"string"}}},"required":["contract","receivedAt","refundCents","emailedTo"]}}}},"400":{"description":"invalid_request (confirm missing, bad name or email, reason missing for cause)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"404":{"description":"contract_not_found (unknown token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"409":{"description":"See the billing route of the same name","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/contracts/request":{"post":{"tags":["Contracts"],"summary":"Cancel or withdraw without logging in: the declaration goes to support and is acknowledged to the address given (up to 3 a day), with links to the contracts that address manages","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["cancel","withdraw"]},"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","format":"email","maxLength":320},"contractRef":{"type":"string","maxLength":200},"cancelType":{"type":"string","enum":["ordinary","extraordinary"]},"reason":{"type":"string","maxLength":2000},"locale":{"type":"string","maxLength":10}},"required":["kind","name","email"]}}}},"responses":{"202":{"description":"Received; the same answer whether or not the address has contracts","content":{"application/json":{"schema":{"type":"object","properties":{"receivedAt":{"type":"number"},"reference":{"type":"string"}},"required":["receivedAt","reference"]}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/email-preferences/unsubscribe":{"post":{"tags":["Email preferences"],"summary":"Switch one email category off from an email's unsubscribe link (no login; RFC 8058 one-click)","description":"u (user id), c (category) and t (the user’s email token) come from the query or a JSON body. A form body `List-Unsubscribe=One-Click` with the parameters in the query is accepted too. Only productUpdates, scanActivity, monthlyDigest, weeklyDigest, billingAlerts and gettingStarted can be changed; only that one key is written.","parameters":[{"in":"query","name":"u","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"c","schema":{"type":"string","enum":["productUpdates","scanActivity","monthlyDigest","weeklyDigest","billingAlerts","gettingStarted"]}},{"in":"query","name":"t","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"u":{"type":"string","format":"uuid"},"c":{"type":"string","enum":["productUpdates","scanActivity","monthlyDigest","weeklyDigest","billingAlerts","gettingStarted"]},"t":{"type":"string","minLength":20,"maxLength":128}},"required":["u","c","t"]}},"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"List-Unsubscribe":{"type":"string","enum":["One-Click"]}},"required":["List-Unsubscribe"]}}}},"responses":{"200":{"description":"The category is off","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"category":{"type":"string","enum":["productUpdates","scanActivity","monthlyDigest","weeklyDigest","billingAlerts","gettingStarted"]}},"required":["ok","category"]}}}},"400":{"description":"invalid_unsubscribe_link (the same body for every invalid input)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/legal/documents/{type}":{"get":{"tags":["Legal"],"summary":"Current published legal document by type","parameters":[{"in":"path","name":"type","required":true,"schema":{"type":"string","enum":["terms","privacy"]}}],"responses":{"200":{"description":"Published document","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"type":{"type":"string","enum":["terms","privacy"]},"version":{"type":"string"},"title":{"type":"string"},"content":{"type":"string"},"publishedAt":{"type":"number"}},"required":["type","version","content"]}},"required":["success","data"]}}}},"404":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/webhooks/expresta":{"post":{"tags":["Webhooks"],"summary":"Expresta order status webhook (secret token in the URL)","description":"Called by Expresta when an order status changes. Expresta signs nothing, so the URL carries a secret token; any other call gets 401. Matches the PrintOrder by customer_reference: the order id's first 15 characters, all Expresta keeps of it. For live orders the status is then read from Expresta (get-order-by-reference) rather than taken from the body; when Expresta cannot be asked, the order is queued and the print shop cron asks again. Tracking links are kept only on couriers' sites.","parameters":[{"in":"query","name":"token","required":true,"description":"The stage's EXPRESTA_WEBHOOK_TOKEN","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"order_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"customer_reference":{"type":"string"},"order_status":{"type":"string"},"tracking_url":{"anyOf":[{"type":"string"},{"type":"object","properties":{"url":{"type":"string"}}}]},"date":{"type":"string"}},"additionalProperties":true}}}},"responses":{"200":{"description":"Applied, queued for the cron, or ignored","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"queued":{"type":"boolean"},"ignored":{"type":"boolean"},"id":{"type":"string"},"status":{"type":"string"}}}}}},"400":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}},"401":{"description":"4xx error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}}},"components":{"securitySchemes":{"serverKey":{"type":"http","scheme":"bearer","bearerFormat":"sk_live_…","description":"A website key's secret server key, from Partner › Shops and integrations › Server connection. Keep it on your server."}},"schemas":{"planGateError":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string","enum":["plan_required","plan_limit_reached"]},"message":{"type":"string"},"details":{"type":"object","properties":{"feature":{"type":"string","enum":["leadGroups","leadStatusHistory","leadExport","pushCampaigns","pushSequences","hubspot","teamAdmin","companyTemplates","companyBranding","signatureCampaign","websiteSdk","partnerOrders","api","experienceBranding"]},"requiredPlan":{"type":"string","enum":["standard","premium","business","partner","enterprise"]},"plan":{"type":"string","enum":["free","standard","premium","business","enterprise","partner","legacy"]},"limit":{"type":"string","enum":["seats","sdkDomains","cards"]},"max":{"type":"number"},"used":{"type":"number"}}},"timestamp":{"type":"string"}},"required":["code","message","timestamp"]}},"required":["success","error"]},"partnerError":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error."},"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable, machine-readable code such as `experience_not_found`."},"message":{"type":"string","description":"A sentence for people and logs. Its wording may change."},"timestamp":{"type":"string","description":"When the error happened, as an ISO 8601 time."}},"required":["code","message","timestamp"],"description":"What went wrong."}},"required":["success","error"]},"error":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}},"parameters":{"entityRef":{"in":"path","name":"id","description":"org ID","schema":{"type":"string","format":"uuid","description":"org ID","example":"uuid string"},"required":true}}}}