Create an Astra DB Serverless database

Astra DB Serverless is a fully managed serverless database-as-a-service (DBaaS), powered by Apache Cassandra®, an open-source NoSQL distributed database.

Astra DB Serverless offers two types of serverless databases:

Serverless (Vector) databases

Designed for vector search applications, such as Generative AI (GenAI) and semantic search, with support for non-vector use cases. You can store vectors alongside non-vector data or create collections and tables exclusively for non-vector data. You can load vectors directly with your data or automatically generate vector embeddings with vectorize.

Use Serverless (Vector) databases for Retrieval Augmented Generation (RAG) applications, such as chatbots, agents, support bots, sentiment analysis, personalization, and multi-media search.

Serverless (Non-Vector) databases

Designed for generic applications, such as content management, user authentication, and transactional applications.

For more information, see About Astra DB Serverless and What are vector databases?.

Prerequisites

If you plan to bring your own encryption keys, you must create and register your customer keys before creating databases.

You need a role with the Create DB permission, such as the Organization Administrator or Database Administrator role. To create databases programmatically, you need an application token with an appropriately scoped role.

Create a Serverless (Vector) database

  1. Sign in to the Astra Portal, and then click Create a Database.

  2. Select the Serverless (Vector) deployment type.

  3. Enter a meaningful, human-readable database name.

    Database names are permanent. After you create a database, you cannot change its name.

    Rules for database names
    • Must start and end with a letter or number

    • Can contain letters, numbers, and the special characters & + - _ ( ) < > . , @

    • Cannot exceed 50 characters

  4. Select the Provider and Region to host your database.

    On the Free plan, you can access a limited set of supported regions. To access Locked regions, you must upgrade your subscription plan.

    To minimize latency in production databases, select a region that is close to your application’s users.

  5. Click Create Database.

    New databases start in Pending status, and then move to Initializing. Your database is ready to use when it reaches Active status.

Create a Serverless (Non-Vector) database

  1. Sign in to the Astra Portal, and then click Create a Database.

  2. Select the Serverless (Non-Vector) deployment type.

  3. Enter a meaningful, human-readable database name.

    Database names are permanent. After you create a database, you cannot change its name.

    Rules for database names
    • Must start and end with a letter or number

    • Can contain letters, numbers, and the special characters & + - _ ( ) < > . , @

    • Cannot exceed 50 characters

  4. In the Keyspace name field, enter a name for the database’s first keyspace.

    Rules for keyspace names
    • Must start with a letter or number

    • Can contain letters, numbers, and underscores

    • Cannot exceed 48 characters.

    • Cannot be the reserved words dse or system

    • Must be unique within the database

  5. Select the Provider and Region to host your database.

    On the Free plan, you can access a limited set of supported regions. To access Locked regions, you must upgrade your subscription plan.

  6. Click Create Database.

    New databases start in Pending status, and then move to Initializing. Your database is ready to use when it reaches Active status.

Once active, you can create tables, insert data, and connect to your database.

Get your database ID

In the Astra Portal, you can do either of the following:

  • In the navigation menu, click Databases to see a list of all of your databases along with their IDs.

  • In the navigation menu, click a specific database. The Database ID appears under the database name and in the page URL:

    astra.datastax.com/org/ORGANIZATION_ID/database/DATABASE_ID/.

Get a database region ID (datacenter ID)

  1. In the Astra Portal navigation menu, click Databases, and then click the name of your database.

  2. On the Overview tab, in the Regions section, you can find the regions where the database is deployed along with each region’s Datacenter ID.

    For single-region databases, there is only one Datacenter ID, which is the database ID suffixed by -1. Multi-region databases have a Datacenter ID for each region.

Troubleshoot database limit error

If you are unable to create a database due to reaching the database limit, check your organization’s subscription plan. Organizations on the Free plan cannot have more than five databases.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2025 DataStax | Privacy policy | Terms of use | Manage Privacy Choices

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, info@datastax.com