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.

  1. In the Astra Portal, go to Settings, and then click Tokens.

  2. In the Generate New Token section, select the role that you want to assign to the token.

    You can select any default or custom role. Select a role to see its permissions.

  3. Click Generate Token.

  4. In the Token Details dialog, copy or download the Application Token Details and store them securely.

    Token details include the clientId, secret, and token.

    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.

  1. In the Astra Portal, go to Settings, and then click Tokens.

  2. In the Manage Existing Tokens section, find the application token you want to delete, click more_vertMore, and then 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,