Manage application tokens

The DataStax Astra DB Serverless (Vector) documentation site is currently in Public Preview and is provided on an “AS IS” basis, without warranty or indemnity of any kind. For more, see the DataStax Preview Terms.

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.

  1. In the Astra Portal, go to Settings > Tokens.

  2. In the Generate New Token section, use the dropdown menu to select the role you want to assign to the new token.

    The dropdown menu displays all default and custom roles. Select a role to see its permissions.

  3. Click Generate Token.

  4. The Token Details dialog displays the clientId, secret, and token. 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.

  1. In the Astra Portal, go to Settings > Tokens.

  2. In the Manage Existing Tokens section, find the application token you want to delete and click the overflow menu icon (three dots). Select Delete.

  3. In the confirmation dialog, click Delete Token.


Was This Helpful?

Give Feedback

How can we improve the documentation?