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

# Generare, gestire e utilizzare le chiavi API di Devolutions Server

Questo articolo descrive come generare e gestire le chiavi API per Devolutions Server, nonché come utilizzarle.

### Consentire agli utenti di generare chiavi API

L'utilizzo delle chiavi API richiede un'autorizzazione che può essere concessa a livello globale o a livello di utente. Per consentire a ogni utente di generare e utilizzare chiavi API, si rechi in ***Administration*** – ***System settings*** – ***Users*** e selezioni ***Allow API key*** sotto l'intestazione ***Users***.

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

Per utenti specifici, vada in ***Administration*** – ***Users*** – ***Edit*** (icona a forma di penna) – ***Settings*** e scelga ***Yes*** nel menu a discesa ***Allow API key***.

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

{% hint style="info" %}
L'autorizzazione a livello di utente ha la precedenza sulle impostazioni globali, offrendo agli amministratori un controllo granulare sull'utilizzo delle chiavi API.
{% endhint %}

### Gestione e utilizzo delle chiavi API

Una volta concessa l'autorizzazione appropriata, gli utenti possono generare chiavi API facendo clic sulla propria immagine del profilo, quindi su ***Preferences*** – ***API keys*** – ***Generate API key***.

{% hint style="warning" %}
Una volta generata, una chiave API verrà mostrata una sola volta. Mantenga la chiave segreta, la ruoti regolarmente ed eliminala se viene esposta.
{% endhint %}

Le chiavi possono essere gestite direttamente dagli utenti nella finestra ***Preferences*** – ***API keys*** del proprio profilo e a livello globale dagli amministratori in ***Administration*** – ***Users' API keys***.

Per utilizzare le chiavi API per script e integrazioni, usi il prefisso `Bearer` nell'intestazione `Authorization`:

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

#### Vedere anche

* [Impostazioni della voce chiavi API](https://docs.devolutions.net/rdm/it/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/it/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.
