curl --request POST \
--url https://api.mixpeek.com/v1/namespaces/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filters": {
"namespace_id": "ns_abc123"
},
"sort": {
"direction": "asc",
"field": "namespace_name"
}
}
'import requests
url = "https://api.mixpeek.com/v1/namespaces/list"
payload = {
"filters": { "namespace_id": "ns_abc123" },
"sort": {
"direction": "asc",
"field": "namespace_name"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filters: {namespace_id: 'ns_abc123'},
sort: {direction: 'asc', field: 'namespace_name'}
})
};
fetch('https://api.mixpeek.com/v1/namespaces/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mixpeek.com/v1/namespaces/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filters' => [
'namespace_id' => 'ns_abc123'
],
'sort' => [
'direction' => 'asc',
'field' => 'namespace_name'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mixpeek.com/v1/namespaces/list"
payload := strings.NewReader("{\n \"filters\": {\n \"namespace_id\": \"ns_abc123\"\n },\n \"sort\": {\n \"direction\": \"asc\",\n \"field\": \"namespace_name\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mixpeek.com/v1/namespaces/list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {\n \"namespace_id\": \"ns_abc123\"\n },\n \"sort\": {\n \"direction\": \"asc\",\n \"field\": \"namespace_name\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mixpeek.com/v1/namespaces/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": {\n \"namespace_id\": \"ns_abc123\"\n },\n \"sort\": {\n \"direction\": \"asc\",\n \"field\": \"namespace_name\"\n }\n}"
response = http.request(request)
puts response.read_body{
"pagination": {
"has_more": false,
"limit": 10,
"skip": 0
},
"results": [
{
"created_at": "2024-01-15T10:30:00Z",
"description": "This namespace contains playlists from Spotify",
"feature_extractors": [
{
"feature_extractor_name": "multimodal_extractor",
"version": "v1"
},
{
"feature_extractor_name": "image_extractor",
"params": {
"model": "siglip_base"
},
"version": "v1"
}
],
"namespace_id": "ns_ab12cd34ef",
"namespace_name": "spotify_playlists_dev",
"payload_indexes": [
{
"field_name": "metadata.title",
"type": "text"
}
],
"updated_at": "2024-01-15T10:30:00Z"
}
],
"total_count": 1
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}List Namespaces
List all namespaces for a user
curl --request POST \
--url https://api.mixpeek.com/v1/namespaces/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filters": {
"namespace_id": "ns_abc123"
},
"sort": {
"direction": "asc",
"field": "namespace_name"
}
}
'import requests
url = "https://api.mixpeek.com/v1/namespaces/list"
payload = {
"filters": { "namespace_id": "ns_abc123" },
"sort": {
"direction": "asc",
"field": "namespace_name"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filters: {namespace_id: 'ns_abc123'},
sort: {direction: 'asc', field: 'namespace_name'}
})
};
fetch('https://api.mixpeek.com/v1/namespaces/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mixpeek.com/v1/namespaces/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filters' => [
'namespace_id' => 'ns_abc123'
],
'sort' => [
'direction' => 'asc',
'field' => 'namespace_name'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mixpeek.com/v1/namespaces/list"
payload := strings.NewReader("{\n \"filters\": {\n \"namespace_id\": \"ns_abc123\"\n },\n \"sort\": {\n \"direction\": \"asc\",\n \"field\": \"namespace_name\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mixpeek.com/v1/namespaces/list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {\n \"namespace_id\": \"ns_abc123\"\n },\n \"sort\": {\n \"direction\": \"asc\",\n \"field\": \"namespace_name\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mixpeek.com/v1/namespaces/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": {\n \"namespace_id\": \"ns_abc123\"\n },\n \"sort\": {\n \"direction\": \"asc\",\n \"field\": \"namespace_name\"\n }\n}"
response = http.request(request)
puts response.read_body{
"pagination": {
"has_more": false,
"limit": 10,
"skip": 0
},
"results": [
{
"created_at": "2024-01-15T10:30:00Z",
"description": "This namespace contains playlists from Spotify",
"feature_extractors": [
{
"feature_extractor_name": "multimodal_extractor",
"version": "v1"
},
{
"feature_extractor_name": "image_extractor",
"params": {
"model": "siglip_base"
},
"version": "v1"
}
],
"namespace_id": "ns_ab12cd34ef",
"namespace_name": "spotify_playlists_dev",
"payload_indexes": [
{
"field_name": "metadata.title",
"type": "text"
}
],
"updated_at": "2024-01-15T10:30:00Z"
}
],
"total_count": 1
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}Authorizations
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, malformed, unknown, revoked, inactive or expired key returns 401; a key without the permission, scope or plan an operation needs returns 403.
Query Parameters
Response detail level. 'full' (default) returns complete namespace objects. 'summary' omits heavy per-namespace config (payload_indexes, feature_extractors, vector_inference_map, vector_configs) — ~93% smaller — for high-frequency list/switcher views. Fetch full config via GET /v1/namespaces/{namespace_identifier}.
full, summary Body
Keys this body does not declare are refused with 422 extra_forbidden naming the accepted keys (since 2026-11-02).
Request schema for listing namespaces.
Inherits body-level limit/page_size/offset/page — body values win over query pagination via merge_body_pagination.
Optional sort criteria for the namespace list (single-column, legacy). With no sort at all, starred namespaces come first. A sort on any other field is applied exactly as given, so starred namespaces get no special place in it.
{
"direction": "asc",
"field": "namespace_name"
}
Sort criteria as a list of {field, direction} — the shape Studio datatables and the retriever list send. The first entry is the primary sort. Takes precedence over the singular sort. To keep starred namespaces on top of another order, name starred first: the second entry then orders the namespaces inside each group. Any other second entry is ignored.
[
{ "direction": "desc", "field": "starred" },
{
"direction": "desc",
"field": "created_at"
}
]
Response
Successful Response
Response schema for listing namespaces.
Was this page helpful?

