# Obtendo o Token de API

Todos os endpoints da Barte exigem autenticação via **`X-Token-Api`**.\
Esse token é a credencial necessária para que sua aplicação consiga se comunicar com a API de forma segura.

### Passo a passo

1. Acesse o **Painel do Intermediador**.
2. No menu lateral esquerdo clique em **Vendedores**
3. Faça uma busca pelo seu **CNPJ** e depois clique em **Detalhes**
4. Nas abas superiores clique em **Integração**
5. Nessa tela você verá sua chave de API

⚠️ **Atenção:** o token é sensível e deve ser armazenado de forma segura. Evite expô-lo em clientes públicos (como apps front-end).

### Veja como obter o token:

{% embed url="<https://drive.google.com/file/u/0/d/1SYUtCjgj_G8NxjEh6dWKa8r0NNvz1WSa/view>" %}
Lembrando que:\
Caso o passo a passo apresente erro ou não consiga efetuar a ação, entre em contato com o time de Suporte Barte.
{% endembed %}


---

# Agent Instructions: 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.barte.com/guias/passo-a-passo-do-intermediador/1o-preparacao/obtendo-o-token-de-api.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.
