> For the complete documentation index, see [llms.txt](https://docs.flosum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flosum.com/global-settings/global-settings-docs-pt-br/seguranca/aplicativos-conectados/criando-um-aplicativo-conectado-para-acesso-a-api.md).

# Criando um aplicativo conectado para acesso à API

{% hint style="success" %}

#### Credenciais de Usuário Obrigatórias

\[**Usuário Flosum**] - **Administrador do Sistema** Função
{% endhint %}

## ![](https://539069234-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FSxcnKlaJKPzDqONWoDNv%2FSummary2-Small-Icon.svg?alt=media\&token=5e3253d0-a069-4ba5-9c06-83c70bd0b21d) Visão geral

Este artigo mostra como criar um Aplicativo Conectado e obter o **ID do cliente** e **Segredo do cliente** valores para fornecer acesso às APIs públicas da Flosum.

{% hint style="info" %}
Para obter instruções sobre como começar a usar as APIs da Flosum, consulte o artigo a seguir.

* [Guia rápido da API](/api/api-pt-br/guia-rapido-da-api.md)
  {% endhint %}

## Criar Aplicativo Conectado

{% stepper %}
{% step %}

### Acesse o Global Settings

1. De qualquer **Flosum Cloud App**, clique no **Seletor de Apps** ícone na parte superior do menu da barra lateral esquerda.

   <div align="left"><figure><img src="https://539069234-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Fgh5FcQCnErKAjJ7isiuB%2FGS-Access-01.png?alt=media&amp;token=ddf01506-f133-4e49-825a-76a2a237e3a8" alt="" width="563"><figcaption></figcaption></figure></div>
2. Clique em **Configurações Globais**.&#x20;

   <div align="left"><figure><img src="https://539069234-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Fx5vntzgpLuT50fMTzwT9%2FGS-Access-02.png?alt=media&amp;token=f67a125f-5087-47c2-9bc6-9393c3d2b7a5" alt="" width="563"><figcaption></figcaption></figure></div>
3. O **Configurações Globais** app será aberto em uma nova aba.

{% hint style="info" %}
As Configurações Globais também podem ser acessadas fazendo login diretamente pela URL de Login do Flosum Cloud Apps. Consulte o artigo a seguir para obter instruções de login.

* [Fazer login em Configurações globais](/global-settings/global-settings-docs-pt-br/primeiros-passos/fazer-login-em-configuracoes-globais.md)
  {% endhint %}
  {% endstep %}

{% step %}

### Criar um novo aplicativo conectado

1. Clique em **Aplicativos conectados** no menu lateral esquerdo.
2. Clique em **Criar**.

   <div align="left"><figure><img src="https://539069234-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FZ6rBCAKqfurJMA60ylZq%2FCreatingAConnectedAppForApiAccess-S02-01.png?alt=media&amp;token=10320f8d-a1b8-4ce3-9b9a-1d05c6cbd569" alt="" width="563"><figcaption></figcaption></figure></div>
3. Insira um **Nome** para seu Aplicativo Conectado.
4. Clique em **Criar**.

   <div align="left"><figure><img src="https://539069234-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FTlWvE70p4qTuDEGq7uOj%2FCreatingAConnectedAppForApiAccess-S02-02.png?alt=media&amp;token=878410e6-8cf5-4072-955a-75201efc115c" alt="" width="375"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Configurar o Aplicativo Conectado

1. Clique no Aplicativo Conectado que você acabou de criar.

   <div align="left"><figure><img src="https://539069234-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FP6iG0BL2SkUSyx8YW7jx%2FCreatingAConnectedAppForApiAccess-S03-01.png?alt=media&amp;token=a2a6b8c6-0b09-4486-b675-b2940bfa1c67" alt="" width="563"><figcaption></figcaption></figure></div>
2. Clique em **Editar**.

   <div align="left"><figure><img src="https://539069234-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FF1ku4EgDBIB20TEeU4FI%2FCreatingAConnectedAppForApiAccess-S03-02.png?alt=media&amp;token=5ed1bc2c-62fe-4ced-89a2-120e5143e0c9" alt="" width="563"><figcaption></figcaption></figure></div>
3. Clique no **fluxos de autenticação** menu suspenso.
4. Marque a **Código de autorização** caixa de seleção.
5. Marque a **Token de atualização** caixa de seleção.

   <div align="left"><figure><img src="https://539069234-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FWnrZe9Nsy8o5SlEJ1EM9%2FCreatingAConnectedAppForApiAccess-S03-03.png?alt=media&amp;token=4fbe1fab-23f9-4621-a2d1-e5bc9bb086a6" alt="" width="563"><figcaption></figcaption></figure></div>
6. Clique em **ADICIONAR URL** na seção **URLs de callback permitidas**.

   <div align="left"><figure><img src="https://539069234-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FoWqp160mEe2xlFWhwzft%2FCreatingAConnectedAppForApiAccess-S03-04.png?alt=media&amp;token=2ae66fa1-380b-4d50-9f4c-3577a7c5b3ed" alt="" width="563"><figcaption></figcaption></figure></div>
7. Insira a URL de redirecionamento a ser usada para seu aplicativo durante a autenticação.
8. Clique em **Salvar**.

   <div align="left"><figure><img src="https://539069234-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FYtbVXB274hQWocrTG6u0%2FCreatingAConnectedAppForApiAccess-S03-05.png?alt=media&amp;token=e6a8b579-8287-4d64-ae0e-33f04d6d0241" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Copiar ID do Cliente e Segredo do Cliente

O `ID do cliente` e `Segredo do cliente` são usados durante o processo de autenticação da API. Você pode copiar esses valores do seu Aplicativo Conectado.

1. Clique no **ID do cliente** campo para copiar este valor.
2. Salve o valor copiado.
3. Clique no **segredo do cliente** campo para copiar este valor.
4. Salve o valor copiado.

   <div align="left"><figure><img src="https://539069234-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2F4f4tYZ7kKfbQL64jKrkz%2FCreatingAConnectedAppForApiAccess-S04-01.png?alt=media&amp;token=f0862501-e5b0-4ef2-85bb-6db4100d9efc" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}
{% endstepper %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.flosum.com/global-settings/global-settings-docs-pt-br/seguranca/aplicativos-conectados/criando-um-aplicativo-conectado-para-acesso-a-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
