Create Store
POST/v1/stores
Authorization
Bearer token for API authentication. Format: `Bearer YOUR_API_KEY`
Request Body
Name for the new store. Can only contain lowercase letters, numbers, periods (.), and hyphens (-).
Constraints
Description of the store
falseWhether the store can be accessed by anyone with valid login credentials
Optional expiration policy
Optional metadata key-value pairs
Optional list of file IDs
Response Body
Unique identifier for the store
Name of the store. Can only contain lowercase letters, numbers, periods (.), and hyphens (-).
Constraints
Detailed description of the store's purpose and contents
falseWhether the store can be accessed by anyone with valid login credentials
Additional metadata associated with the store
Optional expiration policy
Status of a store.
Possible values
expiredin_progresscompletedTimestamp when the store was created
Timestamp when the store was last updated
Timestamp when the store was last used
0Total storage usage in bytes
Optional expiration timestamp for the store
storeType of the object
from mixedbread import Mixedbread
mxbai = Mixedbread(api_key="YOUR_API_KEY")
store = mxbai.stores.create(
name="my-knowledge-base", description="Product documentation and FAQs"
)
print(store){
"id": "vs_abc123",
"object": "store",
"name": "my-knowledge-base",
"description": "Product documentation and FAQs",
"is_public": false,
"metadata": {},
"config": {
"contextualization": false
},
"file_counts": {
"in_progress": 0,
"completed": 0,
"failed": 0,
"cancelled": 0,
"pending": 0,
"total": 0
},
"status": "completed",
"usage_bytes": 0,
"expires_after": null,
"expires_at": null,
"created_at": "2025-01-15T10:30:00.000Z",
"updated_at": "2025-01-15T10:30:00.000Z",
"last_active_at": null
}