API documentation
WorkoutDB ships a generated OpenAPI 3.1 spec with an interactive Scalar playground — try requests with your own key right in the browser.
Quickstart
- Sign up and create a key in the dashboard.
- Send it as
X-API-Key(orAuthorization: Bearer). - Hitting an error? Include the
X-Request-Idresponse header when contacting support.
Error reference
Every non-2xx response uses one envelope: { "error": { "code", "message", "details" }, "requestId" }. The code is stable — switch on it, not the message.
429 responses carry Retry-After (seconds). Authenticated responses include X-RateLimit-* and X-Quota-* headers, and every response carries X-Request-Id.