Skip to main content
The MoonPay Developer Platform API is defined using an OpenAPI 3.1 specification. You can use this spec to generate typed clients for any language.

Full specification

The OpenAPI 3.1 specification is served at https://api.moonpay.com/platform/openapi.json. Use this URL in your codegen config or download the file for offline use.

Usage

TypeScript / JavaScript

Use @hey-api/openapi-ts to generate TypeScript types:
openapi-ts.config.ts

Dart / Flutter

Use openapi_generator with build_runner:

Other Languages

Use the OpenAPI Generator CLI to generate clients for 50+ languages:
See the full list of generators.