Aller au contenu principal
CloudStudio

Tokens d'accès

The access token allows us to make requests via both HTTP and MQTT, as well as integrate other interfaces such as The Things Network. It is possible to generate as many tokens as needed and assign the required permissions to each one.

To generate an access token through the manager, navigate to the side menu and select access tokens. The manage access tokens - client window will appear, showing the list of tokens created for that client. Since no tokens have been created yet, press the add button to create a new token.

Écran de gestion des tokens d'accès avec le bouton Ajouter et la liste des tokens

Once inside, fill in the Description field with the desired name. In the Email and Password fields, enter the credentials of your corresponding user, then press Save.

To manage token permissions in a more granular way, it is recommended to create a user exclusively for API usage, or even a different user for each token created.

Formulaire d'ajout d'un token d'accès avec description, e-mail et mot de passe

A confirmation dialog will then appear asking whether you want to create the token with the current username and password. Press confirm.

Avertissement lors de la création du token avec son propre utilisateur, avec Confirmer et Annuler

Once confirmed, the token will be generated. Press Back to return and view the details of the created token.

Select the added token and choose the View Token option.

Liste des tokens avec le menu contextuel ouvert sur l'option Voir le token d'accès

Enter the username and password.

Fenêtre Voir le token d'accès demandant l'e-mail et le mot de passe pour continuer

The token is displayed and can now be copied.

Fenêtre Voir le token d'accès affichant le token généré et le bouton de copie

Dernière mise à jour le