TypeScript / JavaScript SDK
Package: @headless-accounting/sdk
React bindings: @headless-accounting/react
Installation
npm install @headless-accounting/sdk
# or for React apps:
npm install @headless-accounting/react
Configuration
import { HeadlessAccounting } from '@headless-accounting/sdk';
const client = new HeadlessAccounting({
apiKey: 'ha_live_...',
organizationId: 'org_xxxxxxxxxxxxxxxx',
environment: 'production', // optional
baseURL: 'https://api.craneledger.ai', // optional override
});
Resources
| Resource | Methods | REST backing |
|---|---|---|
accounts | .list(), .create(), .get(), .update() | /organizations/{org_id}/accounts |
transactions | .list(), .create() | /organizations/{org_id}/transactions |
balances | .get(), .trial(), .subscribe() | /organizations/{org_id}/accounts/:id/balance, reports |
batch | .accounts.create(), .transactions.create(), .execute() | Multiple endpoints |
events | .subscribe(), .unsubscribe() | /organizations/{org_id}/events |
See the full SDK documentation in the repository at platform-sdk/sdks/typescript/README.md.
Need help?
Create a free account (GitHub, Google, Apple, or email) to access our support portal. Once signed in, use the Support tab in your dashboard to submit a support ticket — no GitHub account required. Our team typically responds within 24 hours.
- ✨ For LLMs/AI assistants: Read our structured API reference
- Legal: Terms of Service · Privacy Policy