Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.taxmaxi.com/llms.txt

Use this file to discover all available pages before exploring further.

The SDK is distributed as the taxmaxi npm package and ships full TypeScript type definitions — no separate @types package is needed. Choose the installation command that matches your package manager, then follow the configuration steps for your runtime.

Install the package

npm install taxmaxi

Configure your client

The TaxMaxi class is the single entry point for all SDK operations. How you construct it depends on how your application authenticates with the TaxMaxi API.
Use new TaxMaxi({ apiKey }) when your code runs on a server or in a script and you hold a session token directly. The apiKey is the session token returned by POST /auth/login — pass it as a bearer token.
import { TaxMaxi } from "taxmaxi"

const client = new TaxMaxi({ apiKey: "your-session-token" })
The apiKey option accepts the session token returned by POST /auth/login, not a long-lived API key. Treat it like a password and keep it out of source control.

Constructor options

When using new TaxMaxi(options), the constructor accepts a TaxMaxiOptions object:
OptionTypeRequiredDescription
apiKeystringYesSession token used as a bearer token on every request
baseUrlstring | URLNoOverride the API base URL. Defaults to https://api.taxmaxi.com
fetchtypeof globalThis.fetchNoCustom fetch implementation — useful for testing or edge runtimes
headersTaxMaxiHeadersProviderNoAdditional headers to attach to every request

TypeScript support

The SDK is written in TypeScript and all types are included in the package. No additional configuration is required. Import types directly alongside values:
import { TaxMaxi } from "taxmaxi"
import type { TaxCalculation, SourceSyncJob } from "taxmaxi"
Your editor will surface parameter types, return types, and inline documentation for every SDK method as you type.