> For the complete documentation index, see [llms.txt](https://docs.g-iot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.g-iot.io/it/guida-dellutente-alla-piattaforma/amministrazione/api-swagger.md).

# API (Swagger)

Le impostazioni API possono limitare quali azioni (Creare, Leggere, Eliminare, ecc.) possono essere eseguite in base alla chiave API. Ogni chiave ha permessi specifici che consentono o limitano l'accesso ai dati, evitando aggiornamenti o eliminazioni non autorizzati.

Questa configurazione è essenziale per la comunicazione tra macchine, garantendo che ogni chiave possa accedere solo alle operazioni assegnate. Inoltre, le chiavi API possono essere configurate per controllare l'accesso a gruppi o dispositivi specifici, assicurando che solo macchine autorizzate possano interagire con tali dispositivi. Questo contribuisce a prevenire l'uso non autorizzato dell'API.

{% hint style="info" %}
Accedi alla documentazione API:

[https://app.gitbook.com/o/DKrl40rifuf7Bl8WIqXK/s/MPHX8ZroDztaGHTPlcAc/.pdf-per-il-download/.pdf-tecnici](/it/.pdf-per-il-download/.pdf-tecnici.md)
{% endhint %}

<figure><img src="/files/oY1yetXiE4lcVege0Shk" alt=""><figcaption><p>Introduzione API (Swagger)</p></figcaption></figure>

### **Passaggi per accedere a Swagger API**

1. **Accedere al menu Amministrazione:**\
   Assicurati di trovarti nel menu Cockpit, quindi clicca su **Amministrazione**.
2. **Accedere alla sezione API:**\
   Clicca su **API** per essere reindirizzato a Swagger.
3. **Autorizzare l'accesso API:**\
   In Swagger, clicca sul pulsante **Authorize**.
4. **Inserire la chiave API:**\
   Fornisci la chiave API per completare il processo di autenticazione.


---

# 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.g-iot.io/it/guida-dellutente-alla-piattaforma/amministrazione/api-swagger.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.
