API tokens tab¶
API tokens tab
In the API Tokens tab, you can create new API tokens, as well as view already added API tokens and delete them.
You need the API token for authentication via bearer tokens to use the API of the Myra DataHub. The token allows you to use Myra's APIv2 easily and securely by specifying the token as a bearer token in the header of your API request. In API, your account has the same permissions as in the Myra App.
The tab is split into the following areas:
Create API token area¶
In the Create API token area, you can create new API tokens and set their validity period.
The following options are available:
| Name | Definition |
|---|---|
| Token name | The name of the token. |
| EXPIRES IN DAYS | The number of days the token is valid. |
| Save | The button creates the token and opens the API token created dialog for copying the token. |
Manage API tokens area¶
An overview of all tokens.
The following information is available:
| Name | Definition |
|---|---|
| Name | The name of the token. |
| Created | The date and time when the token was generated. |
| Expires | The number of days the token is valid.NoteSpecifying an expiration date is optional and does not need to be set when creating an API token. To increase security when using an API token, Myra recommends specifying an expiration date. |
| Last used | The date and time when the token was last used to execute an API request. |
The following options are available:
| Name | Definition |
|---|---|
| The icon opens the Delete API Token dialog for deleting the selected entry. | |
| Filter field | The field filters entries by names. |
