> For the complete documentation index, see [llms.txt](https://guia.fenicio.help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guia.fenicio.help/panel-de-gestion/accesos-y-usuarios/tokens-de-acceso-api-v1.md).

# Tokens de acceso API V1

<figure><picture><source srcset="/files/Fme8mBUvCsLVeDrrqQb2" media="(prefers-color-scheme: dark)"><img src="/files/8aiR9sEFkA31Qv8qn7Bv" alt=""></picture><figcaption></figcaption></figure>

### ¿Qué son los tokens?

Los tokens permiten que sistemas externos, como una logística, un ERP u otra integración, se conecten de forma segura con API V1 de Fenicio.

Este mecanismo reemplaza el acceso mediante direcciones IP autorizadas y permite que cada tienda gestione sus propias credenciales.

### ¿Quién puede gestionarlos?

Los tokens pueden ser creados y eliminados únicamente por usuarios con rol:

* **Administrador**

### Crear un token

1. Ingresa a la sección de tokens de la API V1.
2. Selecciona **Crear token**.
3. Ingresa una descripción que permita identificar su uso.
4. Confirma la creación.
5. Copia y guarda el código generado.

La descripción puede contener hasta 64 caracteres.

{% hint style="danger" %}
El token se muestra una sola vez. Debes copiarlo y guardarlo al momento de generarlo.
{% endhint %}

### Límite de tokens

Cada sitio puede tener un máximo de **cinco tokens**.

Cuando se alcanza el límite, la opción para crear uno nuevo queda deshabilitada.

Para generar otro token, primero debes eliminar uno que ya no se utilice.

### Compartir un token

La tienda puede compartir el token con el proveedor o equipo técnico responsable de la integración.

Recomendaciones:

* Utiliza un canal seguro.
* Compártelo únicamente con personas autorizadas.
* No lo publiques en documentación abierta.
* Genera un token diferente para cada sistema o proveedor.

### Eliminar un token

Elimina un token cuando:

* La integración deje de utilizarse.
* Cambies de proveedor.
* El código haya quedado expuesto.
* Necesites liberar un lugar para crear otro.

Antes de eliminarlo, verifica que ninguna integración activa dependa de ese token.

### Historial de cambios

El módulo incluye un historial que permite consultar:

* Creación de tokens.
* Modificaciones.
* Eliminaciones.
* Fecha y hora de la acción.
* Usuario responsable.


---

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://guia.fenicio.help/panel-de-gestion/accesos-y-usuarios/tokens-de-acceso-api-v1.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
