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

# Overview

> Learn how to use the Commenda Integrations API

The Commenda Integrations API is a single, unified interface to your customers' accounting, payments, e-commerce, and CRM platforms. Connect a company to a source platform once, then read (and, where supported, write) standardized data models that look the same no matter which platform they came from, so you build your integration once instead of per platform.

## Environments

| Environment | Base URL                               |
| ----------- | -------------------------------------- |
| Production  | `https://api.integrations.commenda.io` |

All routes are under the `/v4` prefix (e.g. `https://api.integrations.commenda.io/v4/core/companies`).

## Authentication

Every request is authenticated with an API key sent in the `api_key` header.

```bash theme={null}
curl -X GET "https://api.integrations.commenda.io/v4/core/companies" \
  -H "api_key: YOUR_API_KEY"
```

Generate and manage API keys in the [Commenda dashboard](https://integrations.commenda.io/settings/api-keys).

## Data model routes

Unified data models are read (and written, where supported) under a company:

```
GET  /v4/core/companies/{companyId}/{data_model}
GET  /v4/core/companies/{companyId}/{data_model}/{id}
```

List endpoints support per-field filters using operator keys, cursor pagination (`limit`, `next`), and `expand` for related objects:

```bash theme={null}
curl -X GET "https://api.integrations.commenda.io/v4/core/companies/{companyId}/invoices?status[eq]=PAID&limit=50&expand=line_items" \
  -H "api_key: YOUR_API_KEY"
```

## Callback URL

OAuth2 integrations redirect to:

```
https://sdk.integrations.commenda.io/oauth/callback
```

## Migrating from V3

V4 is a redesigned API and is not backward-compatible with V3 at the route or response level. See **[Migrating from V3 to V4](/api-reference/v4/overview/migrating-from-v3)** for what changes and how to move over.

## Support

* **Documentation:** [integrations.docs.commenda.io](https://integrations.docs.commenda.io)
* **Support:** [support@commenda.io](mailto:support@commenda.io)
