Generate SDKs with OpenAPI
Contents
Each endpoint exposes an OpenAPI 3.0 spec that you can use to generate typed SDK clients for your preferred language.
Getting the spec
Fetch the OpenAPI spec for any endpoint:
Terminal
The spec includes request schemas (with any variables your endpoint defines), response schemas, and authentication requirements.
Generating a TypeScript client
Using @hey-api/openapi-ts:
Terminal
Generating a Python client
Using openapi-generator:
Terminal
Other generators
The spec works with any OpenAPI 3.0 compatible tool. See the OpenAPI Generator list for options in other languages.