POST
/
collections

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
collection_name
string
required

Name for the collection

metadata
object | null

Optional metadata for the collection

Response

200 - application/json
collection_name
string
required

Name for the collection

collection_id
string

Unique identifier for the collection

namespace_id
string | null

Namespace for the collection

metadata
object | null

Optional metadata for the collection