> 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="https://3852359646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9D0izLNhS2MFOZbtIGPG%2Fuploads%2Fpsae4P2y2T3UU3w9ub99%2Fimage.png?alt=media&amp;token=e743ea49-b3bd-4573-bd2e-262225782966" 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 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/fr/manual-dutilisation-de-la-plateforme/administration/tenant/tenant-api.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.
