POST
/
datastores
Create Datastore
curl --request POST \
  --url https://api.contextual.ai/v1/datastores \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "configuration": {}
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

DatastoreInput for creating a new datastore. If no type is provided, we default to unstructured.

name
string
required

Name of the datastore

configuration
object

Configuration of the datastore. If not provided, default configuration is used.

Response

Successful Response

id
string<uuid>
required

ID of the datastore