Body Parameters
The name of the datastore. This helps you identify and organize your data.
The type of datastore to create. Supported values: - database - For
structured database content - documents - For document files
The metadata for the datastore. This is only required for database type datastores. Set the connection string for the database.{
"metadata": {
"connectionString": "postgresql://username:password@host:port/database"
}
}
Response
Returns the created datastore information including the datastore ID.
{
"datastore_id": "ds_1234567890abcdef",
"name": "My Documents",
"type": "documents",
"created_at": "2025-10-01T12:00:00Z"
}
Response Fields
The unique identifier for the created datastore. Use this ID when indexing
documents.
The name of the datastore
The type of datastore (database or documents)
Timestamp of when the datastore was created