Skip to main content

Requirements

  • Node.js 18+ (uses the native fetch API — no polyfill needed)
  • npm, yarn, or pnpm
The SDK uses the global fetch available in Node 18 and all modern browsers. No additional HTTP dependencies are required.

Install


First Call


Constructor Options

OptionTypeDefaultDescription
apiKeystringRequired. Your API key
baseUrlstringProduction URLOverride for dev environment
timeoutnumber30000Request timeout in milliseconds
maxRetriesnumber3Retries on 429/5xx
Never hardcode your API key in source code or commit it to version control. Always use environment variables.
Retries use exponential backoff. Timeouts are enforced via AbortController and work in both Node.js and browsers.