POST
/
datastores
curl --request POST \
  --url https://api.contextual.ai/v1/datastores \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>"
}'
{
  "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

Response

200
application/json
Successful Response
id
string
required

ID of the datastore