{"openapi":"3.0.3","info":{"title":"Meishi API","version":"1.0.0","description":"Create AR experiences from your own server. Every request carries an API key from Partner › API and webhooks: `Authorization: Bearer msk_live_…`. Keep it on your server; it stands for your organisation."},"servers":[{"url":"https://api.meishi.cards","description":"Production"}],"tags":[{"name":"Connection","description":"Check that a key works and what it can still make."},{"name":"Experiences","description":"Create, publish, follow and delete holograms."}],"security":[{"bearerAuth":[]}],"paths":{"/v1/me":{"get":{"tags":["Connection"],"operationId":"getMe","summary":"Check the connection","description":"The key, its organisation and how many experiences it can still publish. A first call that answers 200 proves the key works.","responses":{"200":{"description":"The key, its organization and what it can still make","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"hint":{"type":"string"}},"required":["id","name","hint"]},"organization":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"experiences":{"type":"object","properties":{"available":{"type":"number"},"refillsAt":{"type":"number"}},"required":["available"]}},"required":["key","organization","experiences"]}}}},"401":{"description":"api_key_required (no key) or api_key_invalid (wrong, replaced or deleted key)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"402":{"description":"plan_required: the organisation's plan does not include the API","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"429":{"description":"rate_limited: over the per-key limit; try again after Retry-After seconds","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}}}}},"/v1/experiences":{"post":{"tags":["Experiences"],"operationId":"createExperience","summary":"Start a hologram","description":"A draft and a presigned PUT URL for each file. Upload the video (mp4, mov or webm, up to 100 MB and 60 s) and the image (jpeg, png or webp, up to 20 MB, at least 480 px on its short side) with exactly the headers given, then submit. Leave `image` out when the key has a label. `qr` is the QR plate's top-left corner and width as fractions of the image; it defaults to the bottom right and is kept inside the image at a size that scans.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"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"]},"playback":{"type":"string","enum":["autoplay","tap","tapLoop"]},"background":{"type":"string","enum":["remove","keep"]},"type":{"type":"string","enum":["hologram"]},"name":{"type":"string","minLength":1,"maxLength":120},"orderReference":{"type":"string","minLength":1,"maxLength":100},"metadata":{"type":"object","additionalProperties":{"type":"string","maxLength":200}},"endsAt":{"type":"integer","minimum":0,"exclusiveMinimum":true},"image":{"type":"object","properties":{"contentType":{"type":"string","enum":["image/jpeg","image/png","image/webp"]},"size":{"type":"integer","minimum":0,"exclusiveMinimum":true}},"required":["contentType","size"],"additionalProperties":false},"video":{"type":"object","properties":{"contentType":{"type":"string","enum":["video/mp4","video/quicktime","video/webm"]},"size":{"type":"integer","minimum":0,"exclusiveMinimum":true}},"required":["contentType","size"],"additionalProperties":false}},"required":["type","video"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created: upload the files, then submit","content":{"application/json":{"schema":{"type":"object","properties":{"experience":{"type":"object","properties":{"experienceId":{"type":"string"},"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"]},"contentKind":{"type":"string","enum":["video","model","info"]},"scanCode":{"type":"string"},"scanUrl":{"type":"string"},"qrSvgUrl":{"type":"string"},"qrPngUrl":{"type":"string"},"printImageUrl":{"type":"string"},"printPdfUrl":{"type":"string"},"processingError":{"type":"string"},"orderReference":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"createdAt":{"type":"number"},"reservedUntil":{"type":"number"},"confirmedAt":{"type":"number"},"readyAt":{"type":"number"},"pausedAt":{"type":"number"},"endsAt":{"type":"number"}},"required":["experienceId","status","scanCode","scanUrl","qrSvgUrl","qrPngUrl","createdAt"]},"uploads":{"type":"object","properties":{"image":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":"string","enum":["PUT"]},"headers":{"type":"object","additionalProperties":{"type":"string"}},"expiresAt":{"type":"number"}},"required":["url","method","headers","expiresAt"]},"video":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":"string","enum":["PUT"]},"headers":{"type":"object","additionalProperties":{"type":"string"}},"expiresAt":{"type":"number"}},"required":["url","method","headers","expiresAt"]}},"required":["video"]}},"required":["experience","uploads"]}}}},"401":{"description":"api_key_required (no key) or api_key_invalid (wrong, replaced or deleted key)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"402":{"description":"plan_required: the organisation's plan does not include the API","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"422":{"description":"invalid_request, image_required (no image and no label) or file_refused","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"429":{"description":"rate_limited: over the per-key limit; try again after Retry-After seconds","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}}}},"get":{"tags":["Experiences"],"operationId":"listExperiences","summary":"List experiences","description":"The organisation's experiences, newest first within a page; drafts only when made through the API. A page can hold fewer than `limit` (1-100, default 50): follow `nextCursor`, passed back as `cursor`, until it is absent.","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"},"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"]},"contentKind":{"type":"string","enum":["video","model","info"]},"scanCode":{"type":"string"},"scanUrl":{"type":"string"},"qrSvgUrl":{"type":"string"},"qrPngUrl":{"type":"string"},"printImageUrl":{"type":"string"},"printPdfUrl":{"type":"string"},"processingError":{"type":"string"},"orderReference":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"createdAt":{"type":"number"},"reservedUntil":{"type":"number"},"confirmedAt":{"type":"number"},"readyAt":{"type":"number"},"pausedAt":{"type":"number"},"endsAt":{"type":"number"}},"required":["experienceId","status","scanCode","scanUrl","qrSvgUrl","qrPngUrl","createdAt"]}},"nextCursor":{"type":"string"}},"required":["items"]}}}},"401":{"description":"api_key_required (no key) or api_key_invalid (wrong, replaced or deleted key)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"402":{"description":"plan_required: the organisation's plan does not include the API","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"429":{"description":"rate_limited: over the per-key limit; try again after Retry-After seconds","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}}}}},"/v1/experiences/{id}":{"get":{"tags":["Experiences"],"operationId":"getExperience","summary":"Get an experience","description":"One experience: its status, scan link, QR codes, print and your metadata. Poll it after submitting, or wait for the webhook.","parameters":[{"in":"path","name":"id","description":"The experienceId from POST /v1/experiences","required":true,"schema":{"type":"string","format":"uuid","description":"The experienceId from POST /v1/experiences","example":"3f1c9a52-7d4e-4b8a-9e21-5c6d0f8b2a17"}}],"responses":{"200":{"description":"Its status, scan link, QR codes, print and your metadata","content":{"application/json":{"schema":{"type":"object","properties":{"experienceId":{"type":"string"},"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"]},"contentKind":{"type":"string","enum":["video","model","info"]},"scanCode":{"type":"string"},"scanUrl":{"type":"string"},"qrSvgUrl":{"type":"string"},"qrPngUrl":{"type":"string"},"printImageUrl":{"type":"string"},"printPdfUrl":{"type":"string"},"processingError":{"type":"string"},"orderReference":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"createdAt":{"type":"number"},"reservedUntil":{"type":"number"},"confirmedAt":{"type":"number"},"readyAt":{"type":"number"},"pausedAt":{"type":"number"},"endsAt":{"type":"number"}},"required":["experienceId","status","scanCode","scanUrl","qrSvgUrl","qrPngUrl","createdAt"]}}}},"401":{"description":"api_key_required (no key) or api_key_invalid (wrong, replaced or deleted key)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"402":{"description":"plan_required: the organisation's plan does not include the API","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"404":{"description":"experience_not_found","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"429":{"description":"rate_limited: over the per-key limit; try again after Retry-After seconds","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}}}},"delete":{"tags":["Experiences"],"operationId":"deleteExperience","summary":"Delete an experience","description":"A draft is removed and uses nothing. A published one stops working: its QR code opens what the key says a scan shows after the end, and it stays counted. To stop it for a while, pause it instead.","parameters":[{"in":"path","name":"id","description":"The experienceId from POST /v1/experiences","required":true,"schema":{"type":"string","format":"uuid","description":"The experienceId from POST /v1/experiences","example":"3f1c9a52-7d4e-4b8a-9e21-5c6d0f8b2a17"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"experienceId":{"type":"string"},"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"]},"contentKind":{"type":"string","enum":["video","model","info"]},"scanCode":{"type":"string"},"scanUrl":{"type":"string"},"qrSvgUrl":{"type":"string"},"qrPngUrl":{"type":"string"},"printImageUrl":{"type":"string"},"printPdfUrl":{"type":"string"},"processingError":{"type":"string"},"orderReference":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"createdAt":{"type":"number"},"reservedUntil":{"type":"number"},"confirmedAt":{"type":"number"},"readyAt":{"type":"number"},"pausedAt":{"type":"number"},"endsAt":{"type":"number"}},"required":["experienceId","status","scanCode","scanUrl","qrSvgUrl","qrPngUrl","createdAt"]}}}},"401":{"description":"api_key_required (no key) or api_key_invalid (wrong, replaced or deleted key)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"402":{"description":"plan_required: the organisation's plan does not include the API","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"404":{"description":"experience_not_found","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"429":{"description":"rate_limited: over the per-key limit; try again after Retry-After seconds","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}}}}},"/v1/experiences/{id}/submit":{"post":{"tags":["Experiences"],"operationId":"submitExperience","summary":"Submit an experience","description":"Checks the uploads, prints the QR code onto the image, counts one experience and starts processing (status `submitted`, then `processing`). `experience.ready` or `experience.failed` follows on the key's webhook; or poll GET /v1/experiences/{id}. Submitting again answers with where it stands.","parameters":[{"in":"path","name":"id","description":"The experienceId from POST /v1/experiences","required":true,"schema":{"type":"string","format":"uuid","description":"The experienceId from POST /v1/experiences","example":"3f1c9a52-7d4e-4b8a-9e21-5c6d0f8b2a17"}}],"responses":{"200":{"description":"Submitted","content":{"application/json":{"schema":{"type":"object","properties":{"experienceId":{"type":"string"},"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"]},"contentKind":{"type":"string","enum":["video","model","info"]},"scanCode":{"type":"string"},"scanUrl":{"type":"string"},"qrSvgUrl":{"type":"string"},"qrPngUrl":{"type":"string"},"printImageUrl":{"type":"string"},"printPdfUrl":{"type":"string"},"processingError":{"type":"string"},"orderReference":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"createdAt":{"type":"number"},"reservedUntil":{"type":"number"},"confirmedAt":{"type":"number"},"readyAt":{"type":"number"},"pausedAt":{"type":"number"},"endsAt":{"type":"number"}},"required":["experienceId","status","scanCode","scanUrl","qrSvgUrl","qrPngUrl","createdAt"]}}}},"401":{"description":"api_key_required (no key) or api_key_invalid (wrong, replaced or deleted key)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"402":{"description":"plan_required: the organisation's plan does not include the API","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"404":{"description":"experience_not_found","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"409":{"description":"upload_missing (details.file says which)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"422":{"description":"video_too_long, file_refused, image_too_small or image_unreadable","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"429":{"description":"rate_limited: over the per-key limit; try again after Retry-After seconds","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}}}}},"/v1/experiences/{id}/pause":{"post":{"tags":["Experiences"],"operationId":"pauseExperience","summary":"Pause an experience","description":"Its QR code shows what the key says a scan shows after the end (an address, a few words, or a plain notice) until it is resumed. Free: nothing is processed again and the QR code stays the same. Pausing again changes nothing.","parameters":[{"in":"path","name":"id","description":"The experienceId from POST /v1/experiences","required":true,"schema":{"type":"string","format":"uuid","description":"The experienceId from POST /v1/experiences","example":"3f1c9a52-7d4e-4b8a-9e21-5c6d0f8b2a17"}}],"responses":{"200":{"description":"Paused: `pausedAt` says since when","content":{"application/json":{"schema":{"type":"object","properties":{"experienceId":{"type":"string"},"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"]},"contentKind":{"type":"string","enum":["video","model","info"]},"scanCode":{"type":"string"},"scanUrl":{"type":"string"},"qrSvgUrl":{"type":"string"},"qrPngUrl":{"type":"string"},"printImageUrl":{"type":"string"},"printPdfUrl":{"type":"string"},"processingError":{"type":"string"},"orderReference":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"createdAt":{"type":"number"},"reservedUntil":{"type":"number"},"confirmedAt":{"type":"number"},"readyAt":{"type":"number"},"pausedAt":{"type":"number"},"endsAt":{"type":"number"}},"required":["experienceId","status","scanCode","scanUrl","qrSvgUrl","qrPngUrl","createdAt"]}}}},"401":{"description":"api_key_required (no key) or api_key_invalid (wrong, replaced or deleted key)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"402":{"description":"plan_required: the organisation's plan does not include the API","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"404":{"description":"experience_not_found","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"409":{"description":"experience_not_live: a draft or deleted experience","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"429":{"description":"rate_limited: over the per-key limit; try again after Retry-After seconds","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}}}}},"/v1/experiences/{id}/resume":{"post":{"tags":["Experiences"],"operationId":"resumeExperience","summary":"Resume an experience","description":"Its QR code shows it again, unless its end date has passed (clear or move it with the schedule endpoint).","parameters":[{"in":"path","name":"id","description":"The experienceId from POST /v1/experiences","required":true,"schema":{"type":"string","format":"uuid","description":"The experienceId from POST /v1/experiences","example":"3f1c9a52-7d4e-4b8a-9e21-5c6d0f8b2a17"}}],"responses":{"200":{"description":"Resumed","content":{"application/json":{"schema":{"type":"object","properties":{"experienceId":{"type":"string"},"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"]},"contentKind":{"type":"string","enum":["video","model","info"]},"scanCode":{"type":"string"},"scanUrl":{"type":"string"},"qrSvgUrl":{"type":"string"},"qrPngUrl":{"type":"string"},"printImageUrl":{"type":"string"},"printPdfUrl":{"type":"string"},"processingError":{"type":"string"},"orderReference":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"createdAt":{"type":"number"},"reservedUntil":{"type":"number"},"confirmedAt":{"type":"number"},"readyAt":{"type":"number"},"pausedAt":{"type":"number"},"endsAt":{"type":"number"}},"required":["experienceId","status","scanCode","scanUrl","qrSvgUrl","qrPngUrl","createdAt"]}}}},"401":{"description":"api_key_required (no key) or api_key_invalid (wrong, replaced or deleted key)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"402":{"description":"plan_required: the organisation's plan does not include the API","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"404":{"description":"experience_not_found","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"409":{"description":"experience_not_live: a draft or deleted experience","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"429":{"description":"rate_limited: over the per-key limit; try again after Retry-After seconds","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}}}}},"/v1/experiences/{id}/schedule":{"put":{"tags":["Experiences"],"operationId":"scheduleExperience","summary":"Set the end date","description":"From `endsAt` (Unix seconds) on, its QR code shows what the key says a scan shows after the end. `null` keeps it until it is deleted. You can also send `endsAt` when you create it.","parameters":[{"in":"path","name":"id","description":"The experienceId from POST /v1/experiences","required":true,"schema":{"type":"string","format":"uuid","description":"The experienceId from POST /v1/experiences","example":"3f1c9a52-7d4e-4b8a-9e21-5c6d0f8b2a17"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"endsAt":{"type":"integer","nullable":true,"minimum":0,"exclusiveMinimum":true}},"required":["endsAt"],"additionalProperties":false}}}},"responses":{"200":{"description":"Saved","content":{"application/json":{"schema":{"type":"object","properties":{"experienceId":{"type":"string"},"status":{"type":"string","enum":["draft","reserved","submitted","processing","ready","failed","disabled","deleted","replaced"]},"contentKind":{"type":"string","enum":["video","model","info"]},"scanCode":{"type":"string"},"scanUrl":{"type":"string"},"qrSvgUrl":{"type":"string"},"qrPngUrl":{"type":"string"},"printImageUrl":{"type":"string"},"printPdfUrl":{"type":"string"},"processingError":{"type":"string"},"orderReference":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"createdAt":{"type":"number"},"reservedUntil":{"type":"number"},"confirmedAt":{"type":"number"},"readyAt":{"type":"number"},"pausedAt":{"type":"number"},"endsAt":{"type":"number"}},"required":["experienceId","status","scanCode","scanUrl","qrSvgUrl","qrPngUrl","createdAt"]}}}},"401":{"description":"api_key_required (no key) or api_key_invalid (wrong, replaced or deleted key)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"402":{"description":"plan_required: the organisation's plan does not include the API","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"404":{"description":"experience_not_found","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"409":{"description":"experience_not_live: a draft or deleted experience","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"422":{"description":"invalid_request: not a whole Unix second, or more than ten years ahead","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}},"429":{"description":"rate_limited: over the per-key limit; try again after Retry-After seconds","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["success","error"]}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"msk_live_…","description":"An API key from Partner › API and webhooks. Keep it on your server."}}}}