> For the complete documentation index, see [llms.txt](https://guia-de-uso.tiflux.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guia-de-uso.tiflux.com/faq/duvidas-frequentes/api/kcs-utilizacao-e-testes-no-tiflux-da-api-v2.md).

# KCS - Utilização e Testes no Tiflux da API V2

## 🤖 Utilização e Testes no Tiflux da API V2

🕒 Tempo aproximado para leitura: 00:01:30 min

***

### ❓ Dúvida

Como realizar testes de rotas ou importar a documentação da API Tiflux V2 para ferramentas externas como o Postman?

***

### 🔎 Causa

Necessidade de validar integrações, realizar operações via API (GET, POST, PUT, etc.) ou automatizar processos de forma simplificada.

***

### ✅ Solução

Para utilizar a API, você pode optar pela documentação interativa ou por ferramentas externas:

* Uso no Postman: Acesse a página oficial da API e clique no botão Download OpenAPI spec. Importe o arquivo baixado diretamente no Postman para carregar todas as rotas e coleções.

<figure><img src="/files/eijKgmfasiyNFiCMInF0" alt=""><figcaption></figcaption></figure>

* Autenticação na Documentação:
  1. Acesse o link oficial: [api.tiflux.com/api/v2/#auth](https://api.tiflux.com/api/v2/#auth).
  2. Gere seu token no sistema Tiflux em Minha Conta > Sessões.
  3. Na documentação, clique em Authentication no menu lateral, insira o token no campo api-token e clique em SET.

<figure><img src="/files/7l8AyVorU7ap8CrctNNl" alt=""><figcaption></figcaption></figure>

* Execução de Requisições: Com o token configurado, navegue pelo menu à esquerda, selecione a rota desejada e execute os testes diretamente pela interface da documentação.


---

# 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, and the optional `goal` query parameter:

```
GET https://guia-de-uso.tiflux.com/faq/duvidas-frequentes/api/kcs-utilizacao-e-testes-no-tiflux-da-api-v2.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
