POST
/
v1
/
entities
/
taxonomies
curl --request POST \
  --url https://api.mixpeek.com/v1/entities/taxonomies \
  --header 'Content-Type: application/json' \
  --data '{
  "taxonomy_name": "electronics",
  "nodes": [
    {
      "node_name": "electronics_accessories",
      "node_description": "Electronics accessories and peripherals category",
      "embedding_configs": [
        {
          "embedding_model": "text",
          "type": "text",
          "value": "electronics accessories"
        }
      ],
      "children": [
        {}
      ]
    }
  ]
}'
{
  "task_id": "<string>",
  "status": "PENDING",
  "inputs": [
    "<any>"
  ],
  "outputs": [
    "<any>"
  ]
}

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

Taxonomy name (must not contain spaces or special characters)

nodes
object[]
required

Response

200
application/json
Successful Response
task_id
string
required
status
enum<string>
Available options:
DONE,
FAILED,
SKIPPED,
CANCELLED,
PROCESSING,
DOWNLOADING,
INITIALIZING,
UPLOADING,
QUEUED,
PENDING
inputs
any[] | null
outputs
any[] | null