Environments
Base URLs, live and development keys.
Base URLs
| API | Base URL |
|---|---|
| Meishi API | https://api.meishi.cards |
| Website orders API | https://api.public.meishi.cards |
| Scan links | https://ar.meishi.cards/<scanCode> |
All requests go over HTTPS. Request and response bodies are JSON, encoded as UTF-8. Times are Unix seconds unless a field says otherwise.
Live and development
Keys made in the live portal at meishi.cards start with _live_ and work against the URLs above. Keys from a development Meishi (used by our partners while building an integration with us) start with _dev_ and work only against that environment's own addresses, such as https://<stage>.api.meishi.cards. A key never works in the other environment.
Each live experience you submit counts against your plan, so test with a small number of experiences, or ask support for a development environment.
Versioning
The Meishi API is versioned in its path (/v1). Within a version we only make additive changes: new endpoints, new optional fields in requests, and new fields, statuses or event types in responses. Build your client to ignore fields it does not know. Breaking changes come as a new version, announced in the changelog well ahead.