Astra DB Serverless Data API (1.0.22)

Download OpenAPI specification:

The Astra DB Serverless Data API modifies and queries data stored as unstructured JSON documents in collections. See the documentation site for additional information.

General

Executes general commands.

Execute command

Executes a single general command.

Authorizations:
Token
Request Body schema: application/json
Any of
name
string

Required name of the new Keyspace

object (CreateKeyspace.Options)

Options for creating a new keyspace.

Responses

Request samples

Content type
application/json
Example
{
  • "createKeyspace": {
    }
}

Response samples

Content type
application/json
Example
{
  • "status": {
    }
}

Keyspaces

Executes keyspace commands.

Execute command

Executes a single command against a collection.

Authorizations:
Token
path Parameters
keyspace
required
string <= 48 characters [a-zA-Z][a-zA-Z0-9_]*
Example: cycling

The keyspace where the collection is located.

Request Body schema: application/json
Any of
name
string

Required name of the new Collection

object

Configuration options for the collection

Responses

Request samples

Content type
application/json
Example
{
  • "createCollection": {
    }
}

Response samples

Content type
application/json
Example
{
  • "status": {
    }
}

Documents

Executes document commands against a single collection.

Execute command

Executes a single command against a collection.

Authorizations:
Token
path Parameters
keyspace
required
string <= 48 characters [a-zA-Z][a-zA-Z0-9_]*
Example: cycling

The keyspace where the collection is located.

collection
required
string <= 48 characters [a-zA-Z][a-zA-Z0-9_]*
Example: events

The name of the collection.

Request Body schema: application/json
Any of
object (JsonNode)
object (FilterSpec)

Responses

Request samples

Content type
application/json
Example
{
  • "countDocuments": {
    }
}

Response samples

Content type
application/json
Example
{
  • "status": {
    }
}