Mixedbread

Create Store

POST/v1/stores

Authorization

Authorizationstringrequired

Bearer token for API authentication. Format: `Bearer YOUR_API_KEY`

Request Body

namestring

Name for the new store. Can only contain lowercase letters, numbers, periods (.), and hyphens (-).

Constraints

Minimum length: 1Maximum length: 60Pattern: lowercase letters, numbers, periods, hyphens
descriptionstring

Description of the store

Constraints

Maximum length: 256
is_publicbooleandefault: false

Whether the store can be accessed by anyone with valid login credentials

licensestring

License for public stores

expires_afterExpiresAfter

Optional expiration policy

metadataobject

Optional metadata key-value pairs

tagsstring[]

Tags for organizing stores. Trimmed, lowercased and deduplicated.

file_idsarray

Optional list of file IDs

Response Body

idstringrequired

Unique identifier for the store

namestringrequired

Name of the store. Can only contain lowercase letters, numbers, periods (.), and hyphens (-).

Constraints

Minimum length: 1Maximum length: 60Pattern: lowercase letters, numbers, periods, hyphens
descriptionstring

Detailed description of the store's purpose and contents

Constraints

Maximum length: 256
is_publicbooleandefault: false

Whether the store can be accessed by anyone with valid login credentials

licensestring

License for public stores

metadataobject

Additional metadata associated with the store

tagsstring[]

Tags for organizing stores

expires_afterExpiresAfter

Optional expiration policy

statusenum

Status of a store.

Possible values

expiredin_progresscompleted
created_atstring(date-time)required

Timestamp when the store was created

updated_atstring(date-time)required

Timestamp when the store was last updated

last_active_atstring

Timestamp when the store was last used

usage_bytesintegerdefault: 0

Total storage usage in bytes

usage_tokensintegerdefault: 0

Total storage usage in tokens

expires_atstring

Optional expiration timestamp for the store

objectstringdefault: store

Type of the object

Request
POST/v1/stores
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)
Response
JSON
{
  "id": "vs_abc123",
  "object": "store",
  "name": "product-documentation",
  "description": "Product documentation and FAQs",
  "is_public": false,
  "metadata": {},
  "tags": [],
  "config": {
    "contextualization": {
      "with_metadata": false,
      "with_file_context": false
    },
    "save_content": true
  },
  "file_counts": {
    "in_progress": 0,
    "completed": 0,
    "failed": 0,
    "cancelled": 0,
    "pending": 0,
    "total": 0
  },
  "status": "completed",
  "usage_bytes": 0,
  "usage_tokens": 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
}