> For the complete documentation index, see [llms.txt](https://docs.zapi.tools/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zapi.tools/fluxos/blocos-iniciais/integracao.md).

# Integração

O bloco salvar é usado para fazer requisições HTTP à APIs externas para recuperar dados e salvar em variáveis.

<figure><img src="/files/ihinNN7KcUL3Az4vUKqw" alt="" width="321"><figcaption></figcaption></figure>

## Como usar o bloco Integração

<figure><img src="/files/Un8hICnFM1zI1K5koCwX" alt="" width="563"><figcaption></figcaption></figure>

#### Tipo de Requisição:

Preencha de acordo com a documentação da API que estiver utilizando.

Geralmente requisições GET são usadas para obter informações, POST para inserir e PUT para atualizar.

#### URL da Requisição

URL de requisição para a API onde será feita a consulta.

#### Campos extras:

{% tabs %}
{% tab title="Header da requisição" %}
Campo para inserir o JSON do header para incluir credenciais e parâmetros extras.
{% endtab %}

{% tab title="Corpo da requisição" %}
Campo para inserir o JSON do body que será enviado durante a requisição.
{% endtab %}

{% tab title="Mapear resposta" %}
Neste campo será mostrado o retorno da requisição ao clicar no botão "Testar requisição".\
\
Abaixo há o botão "Adicionar campo", onde é possível mapear campos do JSON para campos de variáveis do usuário para salvar informações recebidas da API.
{% endtab %}
{% endtabs %}


---

# 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.zapi.tools/fluxos/blocos-iniciais/integracao.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.
