Installation
Dependencies
- Node.js >= 14
- TypeScript >= 4.0 (for TypeScript projects)
Quick Start
Authentication
The SDK requires a Partner API Key for authentication. You’ll receive this key when you register as a partner with Capa.Available Services
The SDK is organized into the following services:Off-Ramp Service
Convert cryptocurrency to fiat currency.On-Ramp Service
Convert fiat currency to cryptocurrency.Quotes Service
Get exchange rates and quotes for transactions.Users Service
Manage user accounts and profiles.Transactions Service
Query and manage transactions.KYC Service
Handle Know Your Customer verification processes.Webhook Settings Service
Configure webhook endpoints for transaction notifications.Available Constants
The SDK exports several enums for use in your applications:Supported Fiat Currencies
Supported Blockchains
Supported Tokens
User Types
Countries
Complete Example
Here’s a complete example showing common SDK usage patterns:Error Handling
The SDK uses standard JavaScript Promises and will throw errors for failed requests. Wrap your calls in try-catch blocks:TypeScript Support
The SDK is written in TypeScript and includes full type definitions. All request and response types are exported:Environment URLs
- Staging:
https://staging-api.capa.fi
- Production:
https://production-api.capa.fi