> 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 de API de Devolutions Server

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

### Permitir a los usuarios generar claves API

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

![](https://cdnweb.devolutions.net/docs/DVLS4243_2025_3.png)

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

![](https://cdnweb.devolutions.net/docs/DVLS4244_2025_3.png)

{% 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 API.
{% endhint %}

### Gestión y uso de claves API

Una vez concedido el permiso adecuado, los usuarios pueden generar claves 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 API solo se mostrará una vez. Mantenga la clave en secreto, rótela periódicamente y elimínela si queda expuesta.
{% endhint %}

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

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

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

#### Véase también

* [Configuración de la entrada de claves 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 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://docs.devolutions.net/server/es/knowledge-base/how-to-articles/generate-manage-and-use-devolutions-server-api-keys.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.
