The full OpenAPI 3.1 specification is hosted at api.leash.market/openapi.json. Mintlify renders the spec into the navigation tree on the left.

Generated SDKs

The same spec drives client generation. First-party polyglot clients are on the roadmap, not yet shipped — planned targets are TypeScript (@leash/api-client), Python (pip install leash-api, httpx-based async-first), Go, Rust, and Java. Until those land, any standard OpenAPI 3.1 generator on the spec above works. We test against openapi-generator-cli and oapi-codegen:
npx openapi-typescript https://api.leash.market/openapi.json \
  --output ./src/leash-api.d.ts

# Python
openapi-generator-cli generate -i leash-openapi.json -g python -o ./gen/leash_py

# Go
oapi-codegen -package leash leash-openapi.json > leash.gen.go

Local export

curl https://api.leash.market/openapi.json > leash-openapi.json
openapi-generator-cli generate \
  -i leash-openapi.json \
  -g typescript-fetch \
  -o ./gen/leash

Versioning

The path prefix is /v1. Breaking changes get a new /vN prefix; the OpenAPI spec at /openapi.json always reflects the latest stable version. Past versions live at /openapi.v1.json, /openapi.v2.json, etc.