> For the complete documentation index, see [llms.txt](https://knowledge.out-smart.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/portal-de-cliente/ativar-o-acesso-a-api-do-portal.md).

# Ativar o acesso à API do Portal

Ativar o acesso à API nas Definições de Portal e perceber o que isso desbloqueia.

Esta página trata especificamente de conceder aos utilizadores do próprio Portal de cliente acesso à API aos dados do respetivo portal. Se pretender ligar o OutSmart ao software próprio, a um ERP ou a uma Integração personalizada, deve consultar Autenticação. [Autenticação](https://knowledge.out-smart.com/openapi/authentication) em alternativa.

O acesso à API do Portal permite que sistemas externos interajam com os dados do portal.

É ativado nas Definições de Portal.

{% stepper %}
{% step %}

### Abrir o portal

Abrir o portal que se pretende editar.
{% endstep %}

{% step %}

### Abrir Definições de Portal

Selecionar **Definições de Portal** no menu lateral esquerdo.
{% endstep %}

{% step %}

### Ativar o acesso à API

Ativar **API ativada**.
{% endstep %}

{% step %}

### Guardar as Definições

Clicar em **Guardar**.
{% endstep %}

{% step %}

### Rever os controlos de acesso

Verificar a configuração de autenticação e de Integração que pretende utilizar.
{% endstep %}
{% endstepper %}

### Quando utilizar isto

Utilize o acesso à API quando outro sistema precisar de ler ou submeter dados do portal.

### Perguntas frequentes

<details>

<summary>Onde ativar o acesso à API?</summary>

Em **Definições de Portal**.

</details>

<details>

<summary>O acesso à API requer configuração adicional?</summary>

Normalmente, sim.

Também é necessária a configuração correta de autenticação e de Integração.

</details>

<details>

<summary>Deve cada Portal ativar o acesso à API?</summary>

Não.

Ative-o apenas quando for necessária uma Integração.

</details>

### Tópicos relacionados

* [**Portal de cliente**](/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/portal-de-cliente.md)
* [**Configurar as Definições de apresentação do Portal**](/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/portal-de-cliente/configurar-as-definicoes-de-apresentacao-do-portal.md)
* [**Automação para o Portal de cliente**](/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/automacoes-ilimitadas/automacoes-para-o-portal-de-cliente.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 by asking a question.

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

```
GET https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/portal-de-cliente/ativar-o-acesso-a-api-do-portal.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.
