> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/server/es/knowledge-base/how-to-articles/generate-manage-and-use-devolutions-server-api-keys.md).

# Generar, gestionar y usar claves API de Devolutions Server

Genere, gestione y utilice claves de API de Devolutions Server, desde la concesión de permisos a los usuarios hasta la autenticación de scripts con un encabezado de token bearer.

Este artículo describe cómo generar y gestionar claves de API para Devolutions Server, así como cómo utilizarlas.

### Permitir a los usuarios generar claves de API

El uso de claves de API requiere un permiso que puede concederse de forma global o a nivel de usuario. Para permitir que todos los usuarios generen y utilicen claves de API, vaya a ***Administration*** – ***System settings*** – ***Users*** y marque ***Allow API key*** bajo el encabezado ***Users***.

Para usuarios específicos, navegue a ***Administration*** – ***Users*** – ***Edit*** (icono de lápiz) – ***Settings*** y elija ***Yes*** en el menú desplegable ***Allow API key***.

{% hint style="info" %}
El permiso a nivel de usuario prevalece sobre la configuración global, lo que otorga a los administradores un control granular sobre el uso de las claves de API.
{% endhint %}

### Gestión y uso de las claves de API

Una vez concedido el permiso adecuado, los usuarios pueden generar claves de API haciendo clic en su foto de perfil y, a continuación, en ***Preferences*** – ***API keys*** – ***Generate API key***.

{% hint style="warning" %}
Una vez generada, una clave de API solo se mostrará una vez. Mantenga la clave en secreto, rótela con regularidad y elimínela si queda expuesta.
{% endhint %}

Los usuarios pueden gestionar las claves directamente en la ventana ***Preferences*** – ***API keys*** de su perfil, y los administradores de forma global en ***Administration*** – ***Users' API keys***.

Para utilizar claves de API en scripts e integraciones, use el prefijo `Bearer` en el encabezado `Authorization`:

```powershell
"Authorization" = "Bearer $YourAPIKey"
```

#### Véase también

* [Configuración de entrada de claves de API](https://docs.devolutions.net/rdm/es/knowledge-base/knowledge-base-articles/entry-settings/api-key)


---

# 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.devolutions.net/server/es/knowledge-base/how-to-articles/generate-manage-and-use-devolutions-server-api-keys.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.
