Skip to main content
POST
Apply Cluster Enrichment

Authorizations

Authorization
string
header
required

Mixpeek API key, sent as Authorization: Bearer mxp_sk_.... Create one in Studio under Settings → API Keys, or with an admin key via POST /v1/organizations/users/{user_email}/api-keys. A missing header returns 403; an invalid or revoked key returns 401.

X-Namespace
string
header
required

Namespace id (ns_...), not the namespace name. This scopes the request rather than authenticating it, and it is required on every operation marked x-mixpeek-namespace-scoped.

Body

application/json

Request to apply clustering enrichment to a collection.

Supports applying multiple clustering results in one request via clustering_ids. For backward compatibility, a single clustering_id is also accepted and up-converted.

clustering_ids
string[]
required

Clustering result IDs to apply

source_collection_id
string
required

Collection to enrich

target_collection_id
string | null

Target collection to write enriched docs to

batch_size
integer
default:1000

Batch size for processing

Required range: x >= 1
parallelism
integer
default:1

Parallel workers

Required range: x >= 1

Response

Successful Response

Response after applying clustering enrichment.

processed
integer
required

Number of processed points

enriched
integer
required

Number of enriched points

failed
integer
required

Number of failed points

batches
integer
required

Batches processed