> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsa.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Node.js SDK Installation for the Corsa Compliance API

> Install the Corsa Node.js SDK and make your first compliance API call in minutes.

## Install the SDK

You can install the [`@corsa-labs/sdk`](https://www.npmjs.com/package/@corsa-labs/sdk) package using npm or yarn:

```bash theme={null}
npm install @corsa-labs/sdk
# or
yarn add @corsa-labs/sdk
```

## Requirements

* **Node.js** 18 or later
* **TypeScript** 4.7+ (recommended, but not required)
* A Corsa API key - see [Authentication](/api/authentication) to create one

## Quick Start

Once installed, initialize the client and make your first API call:

```typescript theme={null}
import { CorsaClient } from '@corsa-labs/sdk';

const client = new CorsaClient({
  BASE: "https://api.corsa.finance",
  HEADERS: {
    "Authorization": `Bearer ${process.env.API_TOKEN}:${process.env.API_SECRET}`
  }
});

// Fetch an individual client by ID
const individual = await client.clients.getIndividualClient("client-123");
console.log(individual);
```

## What's Included

The SDK is a fully typed wrapper around the Corsa REST API. It provides:

* **Type-safe methods** for all API endpoints - clients, transactions, alerts, cases, rules, and more
* **TypeScript definitions** for all request and response objects
* **HYOK support** via `EncryptedCorsaClient` for platforms with field-level encryption

## Next Steps

<Columns cols={2}>
  <Card title="Configuration" icon="gear" href="/sdk/configuration">
    Configure the SDK with your API credentials and explore all available options.
  </Card>

  <Card title="Available Services" icon="list" href="/sdk/available-services">
    Browse all services and methods exposed by the SDK.
  </Card>

  <Card title="Working Example" icon="code" href="/sdk/working-example">
    See a full working example that ingests clients, transactions, and alerts.
  </Card>

  <Card title="Authentication" icon="key" href="/api/authentication">
    Create API keys and learn about authentication, rate limiting, and base URLs.
  </Card>
</Columns>

***

Need help with your integration? [Schedule a demo](https://calendly.com/michellelatzer/welcome-to-corsa) or contact us at [support@corsa.finance](mailto:support@corsa.finance).
