# Listar pessoas vinculadas ao aplicativo

## Como listar pessoas que compõem o design do aplicativo?

Se você precisar obter a lista de pessoas que compõem um aplicativo, siga os passos abaixo:

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, você pode fazer isso explorando o Zeev na página Construir > Aplicativos ou utilizando alguma API como por exemplo [esta](#como-listar-aplicativos-que-a-pessoa-autenticada-na-api-pode-editar).  Após obter o flowId.
3. **Enviar a Requisição**: Utilize o endpoint [#api-2-flows-flowid-design-users](#api-2-flows-flowid-design-users "mention") para enviar a requisição conforme modelo e exemplo (Troque seu\_endereco.do.zeev pelo endereço que você usa para acessar o Zeev e {flowId} pelo código identificador do aplicativo);
4. **oData**: opcionalmente, utilize [regras oData](/zeev/apis/como-utilizar-as-apis-do-zeev/como-realizar-filtros-e-manipulacoes-adicionais-nas-apis-com-odata.md) para manipular o resultado da API. Essa API aceita `$filter`, `$select`, `$orderby` e `$top`.

{% openapi src="/files/DYIxvabeLXa2mL6uE2si" path="/api/2/flows/{flowid}/design/users" 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 %}

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

```javascript
let flowId = 268;
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}/design/users`, requestOptions);
  const result = await response.json();
  console.log(result)
} catch (error) {
  console.error(error);
};
```

{% endtab %}
{% endtabs %}


---

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