Download OpenAPI specification:Download
The Astra DB JSON API modifies and queries data stored as unstructured JSON documents in collections. See the documentation site for additional information.
Executes a single general command.
object (JsonNode) | |
| name required | string [ 1 .. 48 ] characters [a-zA-Z][a-zA-Z0-9_]* Service name to be created |
| apiProvider | string(openai|vertexai|huggingface) Embedding service provider name |
| apiKey required | string Api token from the service provider |
| baseUrl required | string Base url for the service provider |
{- "createEmbeddingService": {
- "name": "open_ai_service_name",
- "apiProvider": "openai",
- "apiKey": "token",
}
}{- "status": {
- "ok": 1
}
}Executes a single command against a collection.
| namespace required | string <= 48 characters [a-zA-Z][a-zA-Z0-9_]* Example: cycling The namespace where the collection is located. |
| name required | string [ 1 .. 48 ] characters [a-zA-Z][a-zA-Z0-9_]* Name of the collection |
object Configuration for the collection |
{- "createCollection": {
- "name": "events"
}
}{- "status": {
- "ok": 1
}
}Executes a single command against a collection.
| namespace required | string <= 48 characters [a-zA-Z][a-zA-Z0-9_]* Example: cycling The namespace where the collection is located. |
| collection required | string <= 48 characters [a-zA-Z][a-zA-Z0-9_]* Example: events The name of the collection. |
object (JsonNode) | |
object (FilterClause) |
{- "countDocuments": {
- "filter": {
- "location": "London",
- "race.competitors": {
- "$eq": 100
}
}
}
}{- "status": {
- "count": 2
}
}