Skip to Content
Developer docs

OpenAPI files

Machine-readable descriptions of both APIs, for code generators, Postman and API tools.

APIOpenAPI file
Meishi APIhttps://api.meishi.cards/v1/openapi.json
Website orders APIhttps://api.public.meishi.cards/openapi, under the Website integration tag

Both are OpenAPI 3.0, the same files this site's API reference is built from.

Generate a client

# TypeScript types
npx openapi-typescript https://api.meishi.cards/v1/openapi.json -o meishi.d.ts

# A client in another language
npx @openapitools/openapi-generator-cli generate \
  -i https://api.meishi.cards/v1/openapi.json -g python -o meishi-client

Postman and Insomnia

Import the file's URL as a new collection. Set the collection's authorization to Bearer token with your key.