Manage application tokens
Application tokens allow your application to authenticate and connect to your database using the Astra API. Every token is assigned a role. The role determines the level of access an application has to Astra resources.
To manage application tokens, you must have the Organization Administrator or Database Administrator role.
Generate an application token
Generate a token to connect your application to a database in Astra.
-
In the Astra Portal, go to Settings, and then click Tokens.
-
In the Generate New Token section, select the role that you want to assign to the token.
-
Click Generate Token.
-
In the Token Details dialog, copy or download the Application Token Details and store them securely.
Token details include the
clientId
,secret
, andtoken
.The Astra Portal shows the token details only once. You can’t access them after you close the Token Details dialog.
The Manage Existing Tokens section lists your application tokens. Application tokens never expire, and you can’t edit roles assigned to tokens. If you need to rotate a token or modify a token’s role, you must delete it and create a new token.
Delete an application token
Delete application tokens if they are compromised, no longer needed, or need different roles.
-
In the Astra Portal, go to Settings, and then click Tokens.
-
In the Manage Existing Tokens section, find the application token you want to delete, click
More, and then select Delete. -
In the confirmation dialog, click Delete Token.