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

# Authentication

> Guidelines for authentication and access control for caBRAPI requests.

## 🔐 Authentication

To use the **caBRAPI API**, all requests must be **authenticated** via an **API Key**.

The **API Key** is a unique identifier linked to your account and can be obtained in the **[caBRAPI Dashboard](https://www.cabrapi.com.br/dashboard) > Settings > API KEY**. This key allows the API to **identify, validate, and authorize** access to the available resources.

***

## 🛠️ How to use the API Key

Authentication is performed by sending the **API Key** in the HTTP `Authorization` header, following this pattern:

```json theme={null}
{
  "Authorization": "YOUR_API_KEY_HERE"
}
```

***

## ⚠️ Security best practices

* **Do not share your API Key publicly** 🔒
* If the key is compromised, **revoke it immediately** and generate a new one 🔄
* Use the API Key **only on private routes**, that is, those that require authentication 🔑

***


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