curl --request POST \
--url https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Namespace: <api-key>' \
--data '
{
"description": "List all pending uploads",
"filters": {
"status": "PENDING"
},
"limit": 20,
"offset": 0,
"sort": {
"direction": "desc",
"field": "created_at"
}
}
'import requests
url = "https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/list"
payload = {
"description": "List all pending uploads",
"filters": { "status": "PENDING" },
"limit": 20,
"offset": 0,
"sort": {
"direction": "desc",
"field": "created_at"
}
}
headers = {
"Authorization": "Bearer <token>",
"X-Namespace": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-Namespace': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
description: 'List all pending uploads',
filters: {status: 'PENDING'},
limit: 20,
offset: 0,
sort: {direction: 'desc', field: 'created_at'}
})
};
fetch('https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/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/buckets/{bucket_identifier}/uploads/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([
'description' => 'List all pending uploads',
'filters' => [
'status' => 'PENDING'
],
'limit' => 20,
'offset' => 0,
'sort' => [
'direction' => 'desc',
'field' => 'created_at'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-Namespace: <api-key>"
],
]);
$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/buckets/{bucket_identifier}/uploads/list"
payload := strings.NewReader("{\n \"description\": \"List all pending uploads\",\n \"filters\": {\n \"status\": \"PENDING\"\n },\n \"limit\": 20,\n \"offset\": 0,\n \"sort\": {\n \"direction\": \"desc\",\n \"field\": \"created_at\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("X-Namespace", "<api-key>")
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/buckets/{bucket_identifier}/uploads/list")
.header("Authorization", "Bearer <token>")
.header("X-Namespace", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"List all pending uploads\",\n \"filters\": {\n \"status\": \"PENDING\"\n },\n \"limit\": 20,\n \"offset\": 0,\n \"sort\": {\n \"direction\": \"desc\",\n \"field\": \"created_at\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["X-Namespace"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"description\": \"List all pending uploads\",\n \"filters\": {\n \"status\": \"PENDING\"\n },\n \"limit\": 20,\n \"offset\": 0,\n \"sort\": {\n \"direction\": \"desc\",\n \"field\": \"created_at\"\n }\n}"
response = http.request(request)
puts response.read_body{
"pagination": {
"has_more": true,
"limit": 20,
"offset": 0,
"total_count": 42
},
"results": [
{
"bucket_id": "bkt_prod",
"created_at": "2024-01-15T10:30:00Z",
"file_size_bytes": 52428800,
"filename": "video1.mp4",
"status": "COMPLETED",
"upload_id": "upl_abc123"
}
],
"stats": {
"avg_file_size_bytes": 12483047,
"total_size_bytes": 524288000,
"total_uploads": 42,
"unique_buckets": 3,
"uploads_by_status": {
"COMPLETED": 35,
"FAILED": 2,
"PENDING": 5
}
}
}{
"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
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"error": {
"details": {
"id": "ns_123",
"resource": "namespace"
},
"message": "Namespace not found",
"type": "NotFoundError"
},
"status": 404,
"success": false
}List Uploads
List uploads in a bucket with filtering, sorting, search, and pagination.
Filtering: Use LogicalOperator with shorthand syntax
- Simple:
{"status": "PENDING", "metadata.campaign": "summer_2024"} - Complex:
{"AND": [{"field": "file_size_bytes", "operator": "gte", "value": 1000000}]}
Sorting: Specify field and direction
- Example:
{"field": "created_at", "direction": "desc"}
Search: Full-text search across filename and metadata
- Example:
"search": "video"
Pagination: Use limit and offset
- Example:
"limit": 50, "offset": 100
curl --request POST \
--url https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Namespace: <api-key>' \
--data '
{
"description": "List all pending uploads",
"filters": {
"status": "PENDING"
},
"limit": 20,
"offset": 0,
"sort": {
"direction": "desc",
"field": "created_at"
}
}
'import requests
url = "https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/list"
payload = {
"description": "List all pending uploads",
"filters": { "status": "PENDING" },
"limit": 20,
"offset": 0,
"sort": {
"direction": "desc",
"field": "created_at"
}
}
headers = {
"Authorization": "Bearer <token>",
"X-Namespace": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-Namespace': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
description: 'List all pending uploads',
filters: {status: 'PENDING'},
limit: 20,
offset: 0,
sort: {direction: 'desc', field: 'created_at'}
})
};
fetch('https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/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/buckets/{bucket_identifier}/uploads/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([
'description' => 'List all pending uploads',
'filters' => [
'status' => 'PENDING'
],
'limit' => 20,
'offset' => 0,
'sort' => [
'direction' => 'desc',
'field' => 'created_at'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-Namespace: <api-key>"
],
]);
$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/buckets/{bucket_identifier}/uploads/list"
payload := strings.NewReader("{\n \"description\": \"List all pending uploads\",\n \"filters\": {\n \"status\": \"PENDING\"\n },\n \"limit\": 20,\n \"offset\": 0,\n \"sort\": {\n \"direction\": \"desc\",\n \"field\": \"created_at\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("X-Namespace", "<api-key>")
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/buckets/{bucket_identifier}/uploads/list")
.header("Authorization", "Bearer <token>")
.header("X-Namespace", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"List all pending uploads\",\n \"filters\": {\n \"status\": \"PENDING\"\n },\n \"limit\": 20,\n \"offset\": 0,\n \"sort\": {\n \"direction\": \"desc\",\n \"field\": \"created_at\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["X-Namespace"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"description\": \"List all pending uploads\",\n \"filters\": {\n \"status\": \"PENDING\"\n },\n \"limit\": 20,\n \"offset\": 0,\n \"sort\": {\n \"direction\": \"desc\",\n \"field\": \"created_at\"\n }\n}"
response = http.request(request)
puts response.read_body{
"pagination": {
"has_more": true,
"limit": 20,
"offset": 0,
"total_count": 42
},
"results": [
{
"bucket_id": "bkt_prod",
"created_at": "2024-01-15T10:30:00Z",
"file_size_bytes": 52428800,
"filename": "video1.mp4",
"status": "COMPLETED",
"upload_id": "upl_abc123"
}
],
"stats": {
"avg_file_size_bytes": 12483047,
"total_size_bytes": 524288000,
"total_uploads": 42,
"unique_buckets": 3,
"uploads_by_status": {
"COMPLETED": 35,
"FAILED": 2,
"PENDING": 5
}
}
}{
"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
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"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 header returns 403; an invalid or revoked key returns 401.
Namespace id (ns_...), not the namespace name. This scopes the request rather than authenticating it, and it is required on every operation marked x-mixpeek-namespace-scoped.
Path Parameters
The unique identifier of the bucket
Query Parameters
1 <= x <= 10001 <= x <= 10000 <= x <= 10000x >= 1Body
Request model for listing uploads with filtering, sorting, and search.
Provides flexible querying capabilities using the same filter/sort framework as documents, objects, and other list endpoints.
Supports: - Complex filters using LogicalOperator (AND, OR, NOT) - Shorthand filter syntax: {"metadata.campaign": "summer_2024"} - Full-text search across filename and metadata - Multi-field sorting - Pagination with limit/offset
Examples: - List all pending uploads in a bucket - Find uploads by metadata campaign - Search for uploads by filename pattern - Sort by file size or creation date
Complex filters using logical operators (AND, OR, NOT). Supports shorthand syntax: pass field-value pairs for equality matching. Examples: - Filter by status: {'status': 'PENDING'} - Filter by metadata: {'metadata.campaign': 'summer_2024'} - Complex: {'AND': [{'field': 'status', 'operator': 'eq', 'value': 'PENDING'}, {'field': 'file_size_bytes', 'operator': 'gte', 'value': 1000000}]} See LogicalOperator documentation for full syntax.
Show child attributes
Show child attributes
{ "status": "PENDING" }
Sort options for ordering results. Can sort by any field including metadata fields using dot notation. Default: created_at descending (newest first). Examples: - Sort by creation date: {'field': 'created_at', 'direction': 'desc'} - Sort by file size: {'field': 'file_size_bytes', 'direction': 'asc'} - Sort by metadata: {'field': 'metadata.priority', 'direction': 'desc'}
Show child attributes
Show child attributes
{
"direction": "desc",
"field": "created_at"
}
Full-text search across filename and metadata fields. Case-insensitive partial matching. Searches in: filename, metadata values (converted to strings). Examples: - 'video' - finds 'product_video.mp4', 'tutorial_video.mov' - 'summer' - finds uploads with metadata.campaign='summer_2024'
"video"
Whether to regenerate presigned URLs for S3 access in the response. OPTIONAL, defaults to false. If true: - Generates new GET presigned URLs for completed uploads - Useful for downloading files from S3 - Adds ~50ms per upload to response time. If false: - No presigned URLs in response - Faster response time. Note: Original PUT presigned URLs are never returned (security).
Maximum number of uploads to return. OPTIONAL, defaults to 20.
1 <= x <= 10020
50
100
Number of uploads to skip for pagination. OPTIONAL, defaults to 0.
x >= 00
20
100
Response
Successful Response
Response model for listing uploads.
List of upload records matching the query
Show child attributes
Show child attributes
Pagination metadata including total count, limit, offset, has_more
Show child attributes
Show child attributes
Aggregate statistics across all uploads in the result
Show child attributes
Show child attributes
Was this page helpful?

