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 one of the following roles:
Generate an application token
Generate a token to connect your application to a database in Astra.
-
In the Astra Portal, go to your Astra DB Classic database > Settings > Tokens.
-
In the Generate New Token section on the Connect tab, use the dropdown menu to select the role you want to assign to the new token.
-
Click Generate Database Token.
-
The Token Details dialog displays the
clientId
,secret
, andtoken
. Copy or download the token details to a secure location before closing the dialog.Once you close the Token Details dialog, you won’t be able to access these details again.
The new application token is displayed in the Manage Existing Tokens section. Application tokens do not automatically expire and cannot be edited or reassigned to new roles. If an application token is compromised or no longer needed, you can delete it and generate a new token if needed.
Delete an application token
Delete a token if it is compromised or no longer needed.
-
In the Astra Portal, go to Settings > Tokens.
-
In the Manage Existing Tokens section, find the application token you want to delete and click the overflow menu icon (three dots). Select Delete.
-
In the confirmation dialog, click Delete Token.