The SDK is distributed as theDocumentation Index
Fetch the complete documentation index at: https://docs.taxmaxi.com/llms.txt
Use this file to discover all available pages before exploring further.
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
Configure your client
TheTaxMaxi class is the single entry point for all SDK operations. How you construct it depends on how your application authenticates with the TaxMaxi API.
- API key
- Browser session
- Server-side (SSR)
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.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 usingnew TaxMaxi(options), the constructor accepts a TaxMaxiOptions object:
| Option | Type | Required | Description |
|---|---|---|---|
apiKey | string | Yes | Session token used as a bearer token on every request |
baseUrl | string | URL | No | Override the API base URL. Defaults to https://api.taxmaxi.com |
fetch | typeof globalThis.fetch | No | Custom fetch implementation — useful for testing or edge runtimes |
headers | TaxMaxiHeadersProvider | No | Additional headers to attach to every request |