> 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="https://4225702929-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMPHX8ZroDztaGHTPlcAc%2Fuploads%2Fp75bE9RefAQxBSGCjqdQ%2Fimage.png?alt=media&amp;token=02ee7f11-b2b9-449b-b9ad-2ff0706e99ee" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.g-iot.io/it/guida-dellutente-alla-piattaforma/amministrazione/api-swagger.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.
