> ## 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.

# Python SDK Installation for the Corsa Compliance API

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

## Install the SDK

You can install the [`corsa-sdk`](https://pypi.org/project/corsa-sdk/) package using pip:

```bash theme={null}
pip install corsa-sdk
```

## Requirements

* **Python** 3.10 or later
* A Corsa API key — see [Authentication](/api/authentication) to create one

## Quick Start

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

```python theme={null}
import os
from corsa_sdk import CorsaClient
from corsa_sdk.api.clients.get_individual_client import _get_kwargs

client = CorsaClient(
    base_url="https://api.corsa.finance",
    token=f"{os.environ['API_TOKEN']}:{os.environ['API_SECRET']}",
)

httpx_client = client.raw_client.get_httpx_client()
response = httpx_client.request(**_get_kwargs(client_id="client-123"))
print(response.json())

client.close()
```

The `token` is your **API Token** and **API Secret** joined with a colon. See [Authentication](/api/authentication) for how to create an API key.

## What's Included

The SDK is auto-generated from the Corsa OpenAPI specification using [openapi-python-client](https://github.com/openapi-generators/openapi-python-client). It provides:

* **Typed models** for all request and response objects using Pydantic v2
* **Sync and async** HTTP clients via httpx
* **Webhook verification** utilities for HMAC-SHA256 signatures
* **Every API endpoint** — clients, transactions, alerts, cases, rules, and more

## Next Steps

<Columns cols={2}>
  <Card title="Configuration" icon="gear" href="/sdk/python-configuration">
    Configure the SDK with your API credentials, timeouts, and custom headers.
  </Card>

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

  <Card title="Working Example" icon="code" href="/sdk/python-working-example">
    See a full working example that creates clients, alerts, and cases.
  </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).
