# Como adicionar meu token de API ao Wix Secret Manager?

1. Após criar o token, copie-o do painel de **API Token Management**.
2. Abra seu **Wix Dashboard** → **Developer Tools** → **Secrets Manager**.

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2FYzmCOwOHPYkv0ggM6Rau%2F4%20apic%20doc.png?alt=media&#x26;token=0541bb40-173f-48c7-b962-d5c2cb4a7a98" alt=""><figcaption></figcaption></figure>

3. Clique em **Add Secret**, cole seu **Mercuri API token** no campo *Value*, e atribua um **Secret Name** (por exemplo: `MERCURI_MESSAGING_API_KEY`).\
   \*<mark style="color:blue;">Mantenha este nome à mão, pois você precisará usar o</mark> <mark style="color:blue;">**mesmo Secret Name**</mark> <mark style="color:blue;">no seu código Velo nos próximos passos.</mark>\*

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2F1BKVyP2tVL6p2GPkqjqS%2F5%20api%20doc.png?alt=media&#x26;token=61dff5b4-cf37-41e6-81fa-e4807db2d826" alt="" width="519"><figcaption></figcaption></figure>

{% hint style="info" %}
**Por que usar o Secret Manager no Wix?**

**Manutenção fácil:** Se o token expirar ou precisar ser rotacionado, você só precisa atualizá-lo no Secrets Manager. Não é necessário modificar cada arquivo de código Velo onde o token é usado.

**Gerenciamento centralizado:** Todas as ações de código Velo podem acessar o mesmo token de forma consistente, reduzindo erros.
{% endhint %}


---

# 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://docs.mercuri.cx/mercuri-docs-pt/caracteristicas/introducao-mercuri-api/como-adicionar-meu-token-de-api-ao-wix-secret-manager.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.
