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

# Introduction

> Authenticate and call the Artu Compliance HTTP API directly over REST.

The Artu Compliance API is a typed REST API for compliance management. Every endpoint listed in this section is interactive — you can try requests directly from the playground without leaving the docs. If you're working in TypeScript or JavaScript, the [TypeScript SDK](/sdk/overview) provides a typed wrapper over these same endpoints and may be a more convenient alternative.

## Base URL

All API requests go to:

```
https://api.artu.ai
```

Every endpoint is versioned under the `/v1` prefix — for example, `https://api.artu.ai/v1/clients`.

## Authentication

Two headers are required on every request:

| Header          | Value                                                |
| --------------- | ---------------------------------------------------- |
| `Authorization` | `Bearer <api-key>` — your API key from the dashboard |
| `X-Environment` | `test` or `live` — selects the target environment    |

```bash theme={null}
curl https://api.artu.ai/v1/clients \
  -H "Authorization: Bearer sk_live_..." \
  -H "X-Environment: live"
```

Retrieve your API key from the dashboard. Keep it secret — treat it like a password.

## Environments

The `X-Environment` header controls which data set your request operates on:

* **`test`** — isolated sandbox; safe for development and integration testing.
* **`live`** — production data; real compliance records.

See the [Environments](/concepts/environments) concept page for more details.

## OpenAPI Spec

The full machine-readable specification is available at:

```
GET https://api.artu.ai/v1/openapi.json
```

Use it to generate client libraries, import into API clients such as Postman or Insomnia, or validate request/response shapes.
