> 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/fr/manual-dutilisation-de-la-plateforme/administration/tenant/tenant-api.md).

# Tenant API

### **API**

L'**API Tenant** fait référence à une API (Interface de Programmation d'Applications) conçue pour gérer et interagir avec les ressources d'un seul **Tenant**.

<figure><img src="/files/KRzDeG43umQVX3FLybUG" alt=""><figcaption><p><strong>Créer des jetons API</strong></p></figcaption></figure>

### **Étapes pour créer des jetons API**

1. **Accéder à l'administration :**
   * Naviguez dans le menu cockpit, allez dans "Administration", puis sélectionnez "Tenant".
2. **Ouvrir la section API :**
   * Cliquez sur "API" pour ouvrir le menu, puis cliquez sur l'icône "Créer" sur le côté droit de l'écran.
3. **Remplir les informations requises :**
   * **Nom :** Entrez un nom requis pour le jeton API.
   * **Description :** Ajoutez une description pour faciliter l'organisation du **Tenant**.
   * **Date d'expiration (facultatif) :** Définissez une date d'expiration si nécessaire.
   * **Tenant :** Sélectionnez le **Tenant** spécifique pour recevoir l'appel API, ou choisissez "Tous les Tenants".
   * **Permissions :** Sélectionnez ou désélectionnez des permissions telles que Lire, Écrire, Créer, Supprimer.
4. **Générer et enregistrer le jeton API :**
   * Cliquez sur "Suivant" pour générer le jeton API. Le jeton sera affiché et pourra être copié.
   * Cliquez sur "Enregistrer" pour finaliser le processus.


---

# 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.g-iot.io/fr/manual-dutilisation-de-la-plateforme/administration/tenant/tenant-api.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.
