> For the complete documentation index, see [llms.txt](https://docs.pagou.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pagou.com.br/credenciais-de-acesso.md).

# Credenciais de acesso

Para consumir a API, é necessário autenticar-se utilizando uma chave de acesso única (`API Key`). Essa chave deve ser enviada no cabeçalho de todas as requisições.

#### Obtendo sua API Key

Sua `API Key` está disponível dentro da conta do usuário. Para acessá-la:

1. Faça login no sistema.
2. Acesse o link: [Configurações da API](https://app.pagou.com.br/configuracoes/api).
3. Copie a chave de acesso exibida.

#### Enviando Credenciais

A autenticação é realizada enviando a `API Key` no cabeçalho **X-API-KEY** de todas as requisições.

**Exemplo de cabeçalho HTTP:**

`X-API-KEY: 123e4567-e89b-12d3-a456-426614174000`

Exemplo de Requisição

**Requisição com cURL:**

```bash
curl -X GET https://api.pagou.com.br/v1/pix \
-H "X-API-KEY: 123e4567-e89b-12d3-a456-426614174000"
```

#### Renovação de Credenciais

Caso sua chave de acesso expire ou seja comprometida, você pode gerar uma nova diretamente no link: [Configurações da API](https://app.pagou.com.br/configuracoes/api).

#### Boas Práticas

* **Proteja sua API Key**: Nunca compartilhe publicamente.
* **Rotacione periodicamente**: Troque sua chave de acesso regularmente para reforçar a segurança.
* **Revogue chaves comprometidas**: Caso suspeite de uso indevido, gere uma nova chave imediatamente no link acima.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pagou.com.br/credenciais-de-acesso.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
