Managing experiences
List, look up and delete experiences, and keep track of what you can still publish.
Look one up
GET /v1/experiences/{id} answers with the experience. Your organization only ever sees its own: any other ID answers 404 experience_not_found.
List them
GET /v1/experiences lists your organization's experiences, newest first, filtered by status or orderReference. Drafts are listed only when made through the API. See Pagination.
curl "https://api.meishi.cards/v1/experiences?orderReference=1001" \
-H "Authorization: Bearer $MEISHI_API_KEY"Pause one, or give it an end date
POST /v1/experiences/{id}/pausestops it for now, andPOST /v1/experiences/{id}/resumebrings it back.pausedAtsays since when.PUT /v1/experiences/{id}/schedulewith{"endsAt": 1798761600}(Unix seconds, at most ten years ahead) stops it from that moment;{"endsAt": null}keeps it until it is deleted. You can also sendendsAtwhen you create it.
Both are free: nothing is processed again and the printed QR code stays the same. Meanwhile a scan shows what comes after the end.
Delete one
- A draft is removed and uses nothing.
- A published experience stops for good and shows what comes after the end. It stays counted against your plan.
After the end
When an experience is paused, past its end date or deleted, its QR code opens what you set on the API key in the Meishi portal, under Scan page:
- an address to send people to, such as your own website, or
- a few words of your own.
With neither, the page says the message has ended.
Text and links on every experience
Under the same Scan page, a key can carry text and up to three links (your website, say). They show over every experience the key makes that has no text or links of its own.
Experiences left
GET /v1/me says how many experiences you can still publish (experiences.available) and, on a monthly plan, when they refill (experiences.refillsAt). When none are left, submitting answers 402 no_experience_credits and the draft waits. Buy more in the Meishi portal under Billing.
Retention
Each API key can delete its experiences automatically after 6, 12 or 24 months, or keep them (the default). Set it under the key's Webhook and retention in the portal, to match your privacy policy. A deleted experience, however it was deleted, loses its files a week later.