Documentation Index
Fetch the complete documentation index at: https://align.tolbel.com/llms.txt
Use this file to discover all available pages before exploring further.
Requirements
The Align SDK requires Node.js 18.0.0 or higher and works with any modern
JavaScript runtime including Bun and Deno.
| Requirement | Version |
|---|---|
| Node.js | ≥ 18.0.0 |
| TypeScript | ≥ 5.0.0 (optional but recommended) |
Package Installation
Install the SDK using your preferred package manager:- npm
- yarn
- pnpm
- bun
npm install @tolbel/alignTypeScript Configuration
TypeScript is optional but highly recommended. The SDK provides full type
definitions out of the box.
tsconfig.json includes:
Environment Setup
Getting Your API Key
Contact Align
Reach out to the Align team or their sales
department to request API access. API keys are provisioned on a case-by-case
basis.
Get Sandbox Key
Once approved, navigate to Settings → API Keys in your dashboard and
copy your sandbox API key
Environment Variables
Create a.env file in your project root for local development:
Verify Installation
Create a test file to verify the SDK is working:- Node.js
- Bun
npx tsx test.ts Troubleshooting
Module not found errors
Module not found errors
Ensure you have the correct For CommonJS projects, use
moduleResolution in your TypeScript config:"moduleResolution": "node" instead.Type errors with strict mode
Type errors with strict mode
The SDK is designed for TypeScript strict mode. If you see type errors, ensure your
tsconfig.json has:API key not working
API key not working
- Verify you’re using the correct environment (
sandboxvsproduction) - Check that your API key is correctly formatted (no extra spaces)
- Ensure your account has API access enabled
Next Steps
Quick Start Guide
Learn how to create your first customer and process payments