Is there an exercise API with an OpenAPI spec and a TypeScript SDK?
Yes. WorkoutDB ships a generated OpenAPI 3.1 spec, an interactive playground, a Postman collection, and the @workoutdb/client TypeScript SDK on npm — so you can generate clients, explore endpoints, and get typed methods immediately.
Developer tooling
WorkoutDB treats developer experience as a feature, not an afterthought.
- A generated OpenAPI 3.1 spec (the machine-readable contract) at /openapi.json.
- An interactive Scalar playground to try requests with your own key.
- A Postman collection — import, set your apiKey variable, and go.
- The @workoutdb/client TypeScript SDK on npm, with typed methods over every endpoint.
- llms.txt and llms-full.txt guides so AI agents can consume the API too.
Predictable contract
Every response uses the same { data, meta, requestId } envelope, and errors use stable machine-readable codes (invalid_request, unauthorized, rate_limited, and so on) with sensible HTTP statuses. That makes generated clients and error handling reliable.
Start free — 5,000 requests/month with no credit card required.
Related questions
- Where is the OpenAPI spec?
- The generated OpenAPI 3.1 spec is served at /openapi.json, and there is an interactive Scalar playground in the docs.
- What is the SDK package name?
- The TypeScript SDK is @workoutdb/client, published on npm.
Build it on WorkoutDB
~873 exercises with demo video, ranked search, and four languages — over a clean REST API. Start free: 5,000 requests/month, no credit card.