Skip to main content
A TypeScript/JavaScript SDK for integrating with the Capa API v2. This SDK provides a comprehensive interface for managing cryptocurrency on-ramp and off-ramp transactions, user management, KYC verification, and more.

Installation

Dependencies

  • Node.js >= 14
  • TypeScript >= 4.0 (for TypeScript projects)

Quick Start

Authentication

The SDK requires a Partner API Key for authentication. To get your key: For more details, see the πŸ”‘ API Key Guide. If you run into any issues during onboarding, contact us at onboarding@capa.fi or juanda@capa.fi.

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

  • Sandbox: https://api.sandbox.capa.fi
  • Production: https://production-api.capa.fi

Support

For support, please contact the Capa Partners team or refer to the official API documentation.