The Mixpeek Python SDK is auto-generated from our OpenAPI specification and always stays in sync with the latest API features.
Installation
Install via pip:Quick Start
Authentication
All API requests require authentication using a Bearer token:Core Operations
Collections
Retrievers
Adhoc Retrievers
Execute retrievers on-the-fly without creating them first:Documents
Standalone Namespaces (Bring Your Own Vectors)
Standalone namespaces let you store and query precomputed vectors directly — no buckets, collections, or extractors required. This is the fastest path for agents that already have embeddings. The high-levelMixpeek client exposes the
MVS primitives ergonomically; every call sends your namespace as the
X-Namespace header automatically.
Read-your-writes after a direct upsert
A direct upsert is durable immediately, but retriever reads are eventually consistent by default. To read your own just-written document, pass thewrite_token from the upsert response back as the X-Write-Token header on
execute — it routes the read to the primary shard and bypasses caches:
Promote to managed (auto-embedding)
Promote a standalone namespace to managed mode to map a vector index to an inference service. After promotion the samefeature_search stage accepts
input_mode: "text" and auto-embeds queries — no client-side embedding needed.
Before promotion, a standalone vector index has no inference mapping, so
input_mode: "text" / "content" queries return an actionable 400 telling you
to promote the namespace or use input_mode=vector with a precomputed embedding.Error Handling
The SDK provides comprehensive error handling throughApiException:
Available APIs
The SDK includes these API classes:AdhocRetrieversApi- Execute retrievers without saving themAgentSessionsApi- Manage AI agent sessionsAlertsApi- Configure and manage alertsAnalyticsApi- Access usage and performance analyticsBucketsApi- Manage object storage bucketsCollectionsApi- Manage document collectionsDocumentsApi- Upload and manage documentsNamespacesApi- Manage multi-tenant namespacesOrganizationsApi- Organization managementPluginsApi- Configure and manage pluginsRetrieversApi- Create and execute retrieversTaxonomiesApi- Manage classification taxonomiesWebhooksApi- Configure webhook integrations
Configuration Options
Custom Host
Timeouts
Resources
PyPI Package
View on PyPI
GitHub Repository
Source code and issues
API Reference
Complete API documentation
OpenAPI Spec
OpenAPI specification
Next Steps
Quickstart
Get started with Mixpeek
JavaScript SDK
Use the JavaScript/TypeScript SDK
MCP Server
Use Mixpeek with AI assistants
Examples
View example implementations

