Ir para o conteúdo principal
CloudStudio

Access Tokens

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.

Manage access tokens screen with the Add button and the client's token list

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.

Form to add an access token with description, email and password fields

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

Warning dialog about creating the token with your own user, with Confirm and Cancel

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.

Token list with the context menu open and the See access token option

Enter the username and password.

See access token dialog asking for email and password to continue

The token is displayed and can now be copied.

See access token dialog showing the generated token with a copy button

Última atualização em