> ## Documentation Index
> Fetch the complete documentation index at: https://mam-api.exuratech.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication and environments

> Configure the base URL, API key, and format of each request.

## Base URL

The examples use an illustrative URL:

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
https://mam-api.example.com
```

Replace it with the URL assigned to the appropriate environment. Do not mix identifiers or credentials between testing and production.

## Headers

All protected routes require:

```http theme={"theme":{"light":"github-light","dark":"github-dark"}}
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
```

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl "https://mam-api.example.com/api/v1/mam/accounts" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
```

> [!WARNING]
>
> The API key must remain exclusively in backend infrastructure. Rotate it if it appears in a repository, browser, screenshot, or uncontrolled log.

## Request correlation

Every response includes `X-Request-ID`. If an error occurs, store this value together with the UTC time, method, path, and HTTP code. You may send your own `X-Request-ID` to preserve traceability across systems.

## Environment documentation

When enabled by the operator:

| Resource | Path |
| - | - |
| Swagger UI | `/docs` |
| ReDoc | `/redoc` |
| OpenAPI schema | `/openapi.json` |

These interfaces reflect the complete technical schema of the service. For an external integration, treat the subset published in this portal as authoritative.

## Continue

> [card] [Previous: Integration model](https://mam-api.exuratech.com/getting-started/integration-model.md)
>
> Return to the scope and separation of responsibilities.

> [card] [Next: End-to-end integration](https://mam-api.exuratech.com/guides/end-to-end.md)
>
> Apply the previous concepts in the complete sequence for connecting a leader and follower.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.