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

# Generate, manage, and use Devolutions Server API keys

This article describes how to generate and manage API keys for Devolutions Server as well as how to use them.

### Allow users to generate API keys

API keys usage requires a permission which can be given globally or at the user-level. To allow every user to generate and use API keys, head over to ***Administration*** – ***System settings*** – ***Users***, and check ***Allow API key*** under the ***Users*** heading.

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

For specific users, navigate to ***Administration*** – ***Users*** – ***Edit*** (pen icon) – ***Settings***, and choose ***Yes*** in the ***Allow API key*** dropdown menu.

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

{% hint style="info" %}
User-level permission overrides global settings, giving administrators granular control over API key usage.
{% endhint %}

### API keys management and usage

Once the proper permission has been granted, users can generate API keys by clicking on their profile picture, then ***Preferences*** – ***API keys*** – ***Generate API key***.

{% hint style="warning" %}
Once generated, an API key will only be shown once. Keep the key secret, rotate it regularly, and delete it if exposed.
{% endhint %}

The keys can be managed directly by users in their profile's ***Preferences*** – ***API keys*** window, and globally by administrators in ***Administration*** – ***Users' API keys***.

To use API keys for scripts and integrations, use the `Bearer` prefix in the `Authorization` header:

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

#### See also

* [API keys entry settings](https://docs.devolutions.net/rdm/kb/knowledge-base/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:

```
GET https://docs.devolutions.net/server/knowledge-base/how-to-articles/generate-manage-and-use-devolutions-server-api-keys.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.
