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.

  1. In the Astra Portal, go to your Astra DB Classic database > Settings > Tokens.

  2. 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.

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

  3. Click Generate Database 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?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000,