X-Namespace header, which takes the namespace id (ns_...), not its name.
Create a namespace
namespace_name is the only required field. You do not list extractors up front: a collection created with features provisions what the namespace needs. To create a whole namespace with its buckets, collections and retrievers from one file, use a manifest.
Managed and standalone namespaces
A standalone namespace is a vector store for embeddings you already have; Bring your own vectors covers it, including how to promote it to managed later. Promotion is one-way.
Index the fields you filter on
Mixpeek does not create payload indexes for you by default, so a filter on an unindexed field scans more of the namespace than it needs to. Declare an index for each field you filter on, then register it:Add indexes and backfill them
ensure-indexes registers the declared indexes and backfills existing documents with no re-extraction. It is idempotent. ?force_rebuild=true drops and rebuilds an index from the full store, for example a text index that registered empty.
Use dot notation for nested fields (
metadata.title). Arrays are indexed element by element: a filter matches when any element matches.
PATCH adds to the existing list; PUT replaces it, and drops any user index you leave out. Two settings tune indexing for you:
auto_create_indexes: truecreates an index on a field once a filter has had to scan it for more than a second.adaptive_indexing: truelets the vector index re-tune its partition size and flush threshold from observed search latency. Each change is recorded as anindex_adaptationevent in the namespace’smxp_platform_eventscollection.
lexical option of the feature_search stage, and fuse it with a vector search for hybrid retrieval.
Counts and usage
GET /v1/namespaces/{namespace_id}/stats returns document_count, bucket_count, collection_count and object_count. When document_count_complete is false, the count did not finish and document_count is a lower bound, so a 0 there does not mean empty. Prefer this endpoint over the counts in the namespace list, which can lag. For billed vector usage across namespaces, see Limits and billing.
Clone a namespace into a branch
A clone copies a namespace’s collections (with their vectors), retrievers, buckets and, optionally, taxonomies into a new namespace, and remaps every internal id so nothing points back at the source. Use it for a staging copy of production, or to try a change on real data without touching live traffic.status: "cloning". Poll GET /v1/namespaces/{new_namespace_id}: clone_status moves from cloning to ready or failed, clone_phase reads queued then copying, and clone_error gives the reason on failure. cloned_resources counts what was copied once the clone is ready. ttl_seconds (60 or more) deletes the clone automatically.
After copying, the clone reads its data back. If the copied vectors cannot be read or searched, it re-extracts the copied objects, which runs your extractors and is billed as new processing. History stays with the source.
Clone one resource
To try one change, clone only the resource it touches. Each clone takes overrides in the body.
A retriever clone shares its collections, so it adds no storage. Compare the original and the clone with evaluations, then point your application at the winner. The original stays unchanged, so rolling back means switching the id back.
Copy-on-write branches that follow their source (private beta)
Copy-on-write branches that follow their source (private beta)
"mode": "branch" forks the source as a copy-on-write branch that shares storage until either side writes. Without beta access it returns 403 with error.details.error_code: "branch_mode_off". Contact support@mixpeek.com to join.Add follow to keep applying the source’s changes to the branch through a transform: ids are always remapped, then an optional filter (the field/operator/value filter shape) keeps matching points, then an optional field_map of {"from", "to"} renames and {"drop"} removals runs in order. _internal, document_id and collection_id cannot be mapped.Follow only US listings
GET /v1/namespaces/{id} returns a follow object with state (following, failed, stopped), applied_seq, source_seq, lag_seq and lag_seconds. A null field is unknown, not zero. A change the transform cannot apply stops the follow at that change; error.remedy says whether to change the transform (manifest_apply), wait (upgrade) or clone again (reclone). A following branch refuses writes with 409 write_to_following_branch. Stop it with PATCH {"follow": {"state": "stopped"}}; a stopped follow cannot resume.Budgets
Every organization and every namespace has a daily and a monthly spend budget in US dollars of metered usage, covering batch processing, extraction and query inference. A namespace budget must fit inside its organization’s budget, and the organization budget stays at or below your plan’s safety ceiling.Set a namespace budget
PATCH /v1/organizations, with spend_limits holding daily_usd, monthly_usd and namespace_default_daily_usd. A null field returns to the default. GET /v1/organizations returns spend_limits with spend to date and headroom, and GET /v1/namespaces/{id} returns budget; each field names its source. Every change is recorded with who made it.
When a scope reaches its budget:
- New batches are refused with
403andtype: "QuotaExceededError".details.how_to_set_budgetholds the request that raises the budget. - Search keeps working under a conservative request quota.
- Scheduled triggers hold their firing and run once there is room. A held firing is not a failure.
Automatic safety limits you do not set
Automatic safety limits you do not set
- Spend velocity. A scope whose hourly spend jumps far above its own recent pattern is paused for new paid work. One trial run is admitted after 30 minutes, and the pause lifts if spend stays normal.
- Retries. A failed batch retries at most 5 times, sharing one budget. A batch that spent on a paid model and wrote no documents retries at most once.
- Failing schedules. A scheduled trigger pauses after 3 failed runs in a row and makes one trial run per hour.
- Free plan automation. A free organization without a payment method can run 1 active scheduled trigger and 1 active bucket sync.
- Platform spending stop. If Mixpeek’s own monthly spending stop is reached, batch submits return
402withdetails.limit_kind: "hard_stop"anddetails.lifts_on. Search keeps working. - Inactive accounts. On a free account with no sign-in or API activity for 14 days, scheduled triggers and syncs pause until the next call.
Expire or hold a namespace
Setttl_seconds (60 or more) or expires_at on create or with PATCH /v1/namespaces/{id} to delete a namespace at a set time; send one, not both, or null to remove the expiry. About an hour before deletion, a namespace_expiring event is written to mxp_platform_events.
A hold keeps a namespace’s data until a date, for example under a legal obligation: PATCH with {"hold": {"reason": "signed agreements", "until": "2033-01-01T00:00:00Z"}} and an admin key. While it is in force, nothing in the namespace can be deleted and stored documents’ customer fields cannot change; new documents can still be added. A hold can be extended but not shortened or removed (409), and a namespace with an expiry cannot take one.
Limits and errors
Related
- Manifests: declare and replicate a whole namespace from YAML
- Bring your own vectors: standalone namespaces, upserts and promotion
- Storage, tiering and backups: snapshots, restore and cold storage
- Limits and billing
- Create namespace API and Clone namespace API

