API reference

Use this page when you need the current HTTP route list and the generated reference source.

Generated reference

The endpoint contract is generated from @taxkit/api-http.

txt
GET /api/docs
GET /api/docs/openapi.json

Use /api/docs/openapi.json as the field-level source of truth for generated clients and endpoint reference pages.

Current routes

MethodPathUse
GET/api/healthCheck the API process.
GET/api/v1/jurisdictionsList supported public jurisdictions.
GET/api/v1/tax-yearsList supported calculator tax years.
GET/api/v1/calculatorsList public calculator catalogue entries.
GET/api/v1/calculators/:calculatorIdRead one calculator metadata entry.
GET/api/v1/calculators/:calculatorId/schemaRead input facts, output facts and rules for one calculator.
POST/api/v1/calculators/:calculatorId/calculateRun one calculator with a CalculatorRunRequest.
GET/api/v1/calculators/:calculatorId/graphRead the calculator fact and rule graph.
GET/api/v1/factsList public fact descriptor metadata.
GET/api/v1/rulesList public rule descriptor metadata.

Calculate route

The calculate route calls the calculator service directly.

ts
Production: HTTP calculate

HTTP caller
  -> @taxkit/api-http route contract
    -> CalculatorApiHandlerLive
      -> PublicCalculatorService.calculate
        -> CalculationEngine
      -> CalculatorApiErrorEnvelope for CalculatorServiceError

Owning sources

Used by