Skip to Content
Developer docs
Meishi API

Start a hologram

POST
/v1/experiences

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.

Authorization

bearerAuth
headerAuthorizationBearer <msk_live_…>

An API key from Partner › API and webhooks. Keep it on your server.

Request Body

application/json
  1. 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?string

label: the hologram stands on the printed image. above: it floats above the image.

Value in"label""above"
playback?string

autoplay plays as soon as the image is found, tap plays once per tap, tapLoop starts looping on the first tap.

Value in"autoplay""tap""tapLoop"
background?string

remove (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.

Value in"remove""keep"
type*"hologram"

What to make. Only hologram for now.

Value in"hologram"
name?string

A name for the experience, shown in the portal.

Length1 <= length <= 120
orderReference?string

Your own reference, such as an order number. It comes back with the experience and every webhook, and you can filter the list by it.

Length1 <= length <= 100
metadata?

Your own string values (up to 200 characters each), returned with the experience.

endsAt?integer

When 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.

Range0 < value
image?

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.

Response Body

Created: upload the files, then submit

application/json
  1. response
experience*

The new experience, with status draft.

uploads*

Where to upload each file before you submit.

Example Request
curl -X POST 'https://api.meishi.cards/v1/experiences' \  -H 'Content-Type: application/json' \  -d '{  "type": "hologram",  "video": {    "contentType": "video/mp4",    "size": 1  }}'
Example Response
{  "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    }  }}