Start a hologram
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.
bearerAuthAuthorizationBearer <msk_live_…>An API key from Partner › API and webhooks. Keep it on your server.
application/json- body
qr?Where the QR code is printed on the image. It defaults to the bottom right and is always kept inside the image.
videoPosition?stringlabel: the hologram stands on the printed image. above: it floats above the image.
"label""above"playback?stringautoplay plays as soon as the image is found, tap plays once per tap, tapLoop starts looping on the first tap.
"autoplay""tap""tapLoop"background?stringremove (default): the person is cut out of the background, so they look as if they stand on the print. keep: the whole video shows, background and all, like a normal video on the print.
"remove""keep"type*"hologram"What to make. Only hologram for now.
"hologram"name?stringA name for the experience, shown in the portal.
1 <= length <= 120orderReference?stringYour own reference, such as an order number. It comes back with the experience and every webhook, and you can filter the list by it.
1 <= length <= 100metadata?Your own string values (up to 200 characters each), returned with the experience.
endsAt?integerWhen it stops showing, in Unix seconds (at most ten years ahead). From then on its QR code shows what the key says a scan shows after the end. Leave it out to keep it until it is deleted.
0 < valueimage?The picture that is printed and tracked: jpeg, png or webp, up to 20 MB, at least 480 px on its short side. Leave it out to use the key's label.
video*The video: mp4, mov or webm, up to 100 MB and 60 seconds. The person is cut out of the background unless background is keep.
Created: upload the files, then submit
application/json- response
experience*The new experience, with status draft.
uploads*Where to upload each file before you submit.
curl -X POST 'https://api.meishi.cards/v1/experiences' \ -H 'Content-Type: application/json' \ -d '{ "type": "hologram", "video": { "contentType": "video/mp4", "size": 1 }}'{ "experience": { "experienceId": "string", "status": "draft", "contentKind": "video", "scanCode": "string", "scanUrl": "string", "qrSvgUrl": "string", "qrPngUrl": "string", "printImageUrl": "string", "printPdfUrl": "string", "processingError": "string", "orderReference": "string", "metadata": { "property1": "string", "property2": "string" }, "createdAt": 0, "reservedUntil": 0, "confirmedAt": 0, "readyAt": 0, "pausedAt": 0, "endsAt": 0 }, "uploads": { "image": { "url": "string", "method": "PUT", "headers": { "property1": "string", "property2": "string" }, "expiresAt": 0 }, "video": { "url": "string", "method": "PUT", "headers": { "property1": "string", "property2": "string" }, "expiresAt": 0 } }}Check the connection GET
The key, its organisation and how many experiences it can still publish. A first call that answers 200 proves the key works.
Submit an experience POST
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.