POST
/
v1
/
clusters
/
{cluster_id}
/
data
Stream Cluster Data
curl --request POST \
  --url https://api.mixpeek.com/v1/clusters/{cluster_id}/data \
  --header 'Content-Type: application/json' \
  --data '{
  "cluster_id": "cl_123",
  "include_centroids": true,
  "include_members": true,
  "limit": 100,
  "offset": 0
}'
{
  "cluster_id": "<string>",
  "centroids": [
    {
      "cluster_label": "<string>",
      "centroid_vector": [
        123
      ],
      "num_members": 123,
      "metadata": {}
    }
  ],
  "members": [
    {
      "document_id": "<string>",
      "cluster_label": "<string>",
      "distance_to_centroid": 123,
      "coordinates": [
        123
      ],
      "metadata": {}
    }
  ],
  "total_clusters": 123,
  "total_members": 123
}

Headers

Authorization
string | null

Bearer token authentication using your API key. Format: 'Bearer your_api_key'. To get an API key, create an account at mixpeek.com/start and generate a key in your account settings. Example: 'Bearer sk_1234567890abcdef'

X-Namespace
string | null

Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint.

Path Parameters

cluster_id
string
required

Cluster ID

Body

application/json

Request to stream cluster data from parquet files.

Response

200
application/json

Successful Response

Response with cluster data from parquet.