> For the complete documentation index, see [llms.txt](https://kb.stoque.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.stoque.com.br/zeev/apis/all/flows/import-export.md).

# Importar e exportar aplicativos

## Como exportar um aplicativo utilizando API?

1. **Autenticação**: Primeiro obtenha um [token de autenticação](https://kb.zeev.it/apis/como-gerar-tokens-para-autenticar-nas-apis) com permissão de realizar essa operação;
2. **Obtenha o flowid:** Obtenha o código identificador do aplicativo. Ele pode ser encontrado na página Construir > Aplicativos ou através de consultas de API como descrito em [Listar aplicativos que posso editar](/zeev/apis/all/flows/list.md);
3. **Enviar a requisição:** Utilize o endpoint [#api-2-flows-flowid-export](#api-2-flows-flowid-export "mention") conforme modelo. Lembre-se de trocar seu\_endereco.do.zeev pelo endereço que você utiliza para acessar o Zeev;

{% openapi src="/files/DYIxvabeLXa2mL6uE2si" path="/api/2/flows/{flowid}/export" method="get" %}
[ZeevApi's\_new.json](https://3371003943-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MD66pBdRalAQgnhNstG%2Fuploads%2Ff5huLIsAqm88oSjkTavv%2FZeevApi's_new.json?alt=media\&token=aae47f9f-90ca-48d0-b250-fc38fe74e6c0)
{% endopenapi %}

Exemplo de requisição para exportar um aplicativo

{% tabs %}
{% tab title="Node.js" %}

```javascript
let flowId = 846;
const myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "Bearer TOKEN_DO_USUARIO");

const requestOptions = {
  method: "GET",
  headers: myHeaders
};

try {
  const response = await fetch(`https://seu_endereco.do.zeev/api/2/flows/${flowId}/export`, requestOptions);
  const result = await response.json();
  console.log(result)
} catch (error) {
  console.error(error);
};
```

{% endtab %}
{% endtabs %}

***

## Como importar um aplicativo utilizando API?

1. **Authenticação:** Obtenha um token de autenticação para a API. Saiba como em [Como autenticar nas APIs do Zeev](/zeev/apis/como-utilizar-as-apis-do-zeev/como-gerar-tokens-para-autenticar-nas-apis.md);
2. **Obtenha o content:** Este é o conteúdo do aplicativo a ser importado, deve conter o formato conforme o resultado da exportação em [#api-2-flows-flowid-export](#api-2-flows-flowid-export "mention")
3. **Enviar a requisição:** Utilize o endpoint [#api-2-flows-flowid-export](#api-2-flows-flowid-export "mention") conforme modelo. Lembre-se de trocar seu\_endereco.do.zeev pelo endereço que você utiliza para acessar o Zeev;

{% openapi src="/files/DYIxvabeLXa2mL6uE2si" path="/api/2/flows/import" method="post" %}
[ZeevApi's\_new.json](https://3371003943-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MD66pBdRalAQgnhNstG%2Fuploads%2Ff5huLIsAqm88oSjkTavv%2FZeevApi's_new.json?alt=media\&token=aae47f9f-90ca-48d0-b250-fc38fe74e6c0)
{% endopenapi %}

***

### **Links relacionados**:

* [O que é preciso para fazer integrações do Zeev para outros sistemas?](/zeev/integracoes/o-que-e-preciso-para-fazer-integracoes.md)
* [Como autenticar nas APIs do Zeev](/zeev/apis/como-utilizar-as-apis-do-zeev/como-gerar-tokens-para-autenticar-nas-apis.md)
* [Como controlar o volume máximo de requisições à APIs](/zeev/apis/como-utilizar-as-apis-do-zeev/como-controlar-o-volume-maximo-de-requisicoes-a-apis.md)
* [Como acessar o Swagger / OpenAPI](/zeev/apis/como-utilizar-as-apis-do-zeev/como-acessar-o-swagger-openapi.md)
* [Como exportar e importar aplicativos](/zeev/como-construir-processos/como-modificar-aplicativos-apos-o-uso/como-importar-processos-de-outras-ferramentas.md)


---

# 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://kb.stoque.com.br/zeev/apis/all/flows/import-export.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.
