> For the complete documentation index, see [llms.txt](https://docs.airops.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airops.com/docs/pt/o-seu-espaco-de-trabalho/settings/secrets.md).

# Segredos

Armazene e faça a gestão centralizada de credenciais, chaves API e outros segredos.

Sempre que quiser referenciar uma chave de API ou um segredo no Studio, pode adicioná-los em segurança ao seu espaço de trabalho e torná-los disponíveis no Studio de forma segura.

Para adicionar um novo segredo, navegue para Definições > Segredos e clique em "Criar Segredo".

<figure><img src="https://31915162-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-eabec11e89460c179b87eb5ba5d9b43d7a9c5565%2Fsecrets-01-list.png?alt=media" alt="Secrets settings listing SPACEOPS_TELEMETRY_API_KEY with a masked value and the Create Secret button"><figcaption><p>Crie segredos em Definições.</p></figcaption></figure>

Depois de adicionados, poderá selecioná-los na construção utilizando esta sintaxe:

```
_secrets["my_secret_name"]
```

<figure><img src="https://31915162-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-a18e4af8e7872562a7a302f5b6ab186e6c25e864%2Fsecrets-02-use-in-step.png?alt=media" alt="Call API step whose Authorization header references secrets.SPACEOPS_TELEMETRY_API_KEY, with the Variables Menu listing it under Workspace Secrets"><figcaption><p>Referencie um segredo numa etapa.</p></figcaption></figure>

Como exemplo, se adicionar um segredo chamado "MY\_SECRET", então poderá aceder-lhe no builder como:

```
_secrets["MY_SECRET"]
```

Para credenciais de LLM e outras integrações de terceiros, o AirOps normalmente tem algumas autenticações nativas, por isso, antes de adicionar um segredo personalizado, certifique-se de que não está listado em "Settings > Integrations" ou "Settings > API providers".

Se a integração já estiver autenticada em **Definições > Integrações**, pode expor as suas credenciais aos fluxos de trabalho diretamente sem as duplicar como um segredo. Veja [Autenticações de Integração](https://docs.airops.com/docs/pt/o-seu-espaco-de-trabalho/settings/authentications.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://docs.airops.com/docs/pt/o-seu-espaco-de-trabalho/settings/secrets.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.
