POST
/
v1
/
collections
Create Collection
curl --request POST \
  --url https://api.mixpeek.com/v1/collections \
  --header 'Content-Type: application/json' \
  --data '{
  "collection_name": "<string>",
  "description": "<string>",
  "source": {
    "type": "bucket",
    "bucket_id": "<string>",
    "collection_id": "<string>"
  },
  "input_schema": {
    "properties": {}
  },
  "feature_extractors": [
    {
      "feature_extractor_name": "<string>",
      "version": "<string>",
      "parameters": {},
      "input_mappings": {}
    }
  ],
  "enabled": true,
  "metadata": {}
}'
{
  "collection_name": "products",
  "description": "Product catalog",
  "taxonomy_applications": [
    {
      "execution_mode": "on_demand",
      "taxonomy_id": "tax_categories"
    },
    {
      "execution_mode": "materialize",
      "target_collection_id": "col_products_enriched",
      "taxonomy_id": "tax_brands"
    }
  ]
}

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.

Body

application/json

Request model for creating a new collection.

collection_name
string
required

Name of the collection to create

source
object
required

Source configuration for the collection

description
string | null

Description of the collection

input_schema
object | null

Input schema for the collection (if not inferred from source) Schema definition for bucket objects.

feature_extractors
FeatureExtractorConfig · object[]

Feature extractors to apply

enabled
boolean
default:true

Whether the collection is enabled

metadata
object | null

Additional metadata for the collection

Response

Successful Response

Response model for collection endpoints.

collection_name
string
required

Collection name

collection_id
string

Unique collection identifier

description
string | null

Collection description

schema
object | null

Collection schema

input_schema
object | null

Input schema for the collection Schema definition for bucket objects.

output_schema
object | null

Output schema after feature extraction Schema definition for bucket objects.

feature_extractors
FeatureExtractorConfig · object[]

Feature extractors applied to this collection

source_lineage
SingleLineageEntry · object[] | null

Lineage chain showing the processing history

vector_indexes
any[]

Vector indexes for this collection

payload_indexes
any[]

Payload indexes for this collection

enabled
boolean
default:true

Whether the collection is enabled

metadata
object | null

Additional metadata for the collection

taxonomy_applications
TaxonomyApplicationConfig · object[] | null

List of taxonomies applied to this collection