OpenAPI reference
Use generated OpenAPI for endpoint paths, parameters, request bodies and response schemas. Narrative API pages explain when to use HTTP, how errors work and how the API relates to the SDK.
Generated source
The current API package generates the OpenAPI document from
@taxkit/api-http route definitions. The API app serves it at:
GET /api/docs/openapi.jsonThe local Scalar viewer is served at:
GET /api/docsSmoke check
Run the API locally, then fetch the generated document:
bun run --filter=api start
curl http://127.0.0.1:4000/api/docs/openapi.jsonThe document should include the calculate path and CalculatorRunRequest
payload schema. Use this generated document for clients and endpoint reference
pages rather than copying endpoint fields by hand.
/api/v1/calculators/{calculatorId}/calculate
CalculatorRunRequestReview the contract in the repository
You can also read the checked OpenAPI snapshot. The API package's snapshot test regenerates the contract from its route definitions. Run it when changing an endpoint:
bun run --filter=@taxkit/api-http test:openapi