Skip to main content

Use

OpenAPI spec

The REST API is described by an OpenAPI 3.1 document with 14 operations. Use it to generate a client or hand it to an agent.

View this page as Markdown
PropertyValue
URLhttps://flightqueue.com/openapi.json
VersionOpenAPI 3.1.0
Serverhttps://flightqueue.com/api/v1
Security schemesBearerAuth (HTTP bearer) and ApiKeyAuth (X-API-Key header)
Operations14

Fetch it

bash
curl https://flightqueue.com/openapi.json -o flightqueue-openapi.json

Generate types or a client

Any OpenAPI 3.1 generator works. For example, TypeScript types:

bash
npx openapi-typescript https://flightqueue.com/openapi.json -o ./flightqueue-api.d.ts

What is in it

  • Every route in the endpoint reference, with parameters and request bodies.
  • A success example and a body for each documented error code.
  • Payment-discovery metadata for the paid operations.

The endpoint reference is generated from this same document, so the two cannot disagree.