# ¿Cómo agrego mi API token a Wix Secret Manager?

1. Después de crear el token, copia el token desde el panel de **API Token Management**.
2. Abre tu **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. Haz clic en **Add Secret**, pega tu **Mercuri API token** en el campo *Value* y asigna un **Secret Name** (por ejemplo: `MERCURI_MESSAGING_API_KEY`).\
   \&#xNAN;*<mark style="color:blue;">Guarda este nombre, ya que necesitarás usar el</mark>* *<mark style="color:blue;">**mismo Secret Name**</mark>* *<mark style="color:blue;">en tu código Velo en los siguientes pasos.</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 qué usar Secret Manager en Wix?**

**Mantenimiento sencillo:** Si el token expira o necesita rotación, solo necesitas actualizarlo en Secrets Manager. No tienes que modificar cada archivo de código Velo donde se use el token.

**Gestión centralizada:** Todas las acciones de código Velo pueden acceder al mismo token de forma consistente, reduciendo errores.
{% 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-es/caracteristicas/introduccion-mercuri-api/como-agrego-mi-api-token-a-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.
