OpenAPI Spec

PreflightAPI publishes a full OpenAPI 3.0 specification. Use it to generate typed clients, explore endpoints in tools like Swagger UI, or import directly into Postman.

Download the Spec

The specification is available as a JSON file. You can view it in your browser or download it for use with code generation tools.

Generate Typed Clients

Use popular open-source tools to generate fully typed API clients from the spec. Choose the approach that best fits your workflow.

openapi-typescript

Generate TypeScript types directly from the spec. Lightweight and zero-runtime — produces only type definitions.

npm install -D openapi-typescript

openapi-fetch

Pair with openapi-typescript for a fully type-safe fetch client. Autocompletes paths, parameters, and response shapes at compile time.

npm install openapi-fetch
npm install -D openapi-typescript

Orval

Generate React Query (TanStack Query) hooks automatically. Ideal for React apps — gives you ready-to-use hooks with caching, refetching, and error handling built in.

npm install -D orval