curl --request POST \
--url https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/confirm/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Namespace: <api-key>' \
--data '
{
"confirmations": [
{}
]
}
'import requests
url = "https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/confirm/batch"
payload = { "confirmations": [{}] }
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({confirmations: [{}]})
};
fetch('https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/confirm/batch', 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/confirm/batch",
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([
'confirmations' => [
[
]
]
]),
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/confirm/batch"
payload := strings.NewReader("{\n \"confirmations\": [\n {}\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/confirm/batch")
.header("Authorization", "Bearer <token>")
.header("X-Namespace", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"confirmations\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/confirm/batch")
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 \"confirmations\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>",
"confirmations_count": 123,
"task": {
"task_id": "<string>",
"inputs": [
"batch_xyz789"
],
"outputs": [
"document_123",
"document_456"
],
"additional_data": {
"batch_id": "btch_xyz789",
"bucket_id": "bkt_products",
"collection_ids": [
"col_tier0",
"col_tier1",
"col_tier2"
],
"current_tier": 1,
"job_id": "ray_job_123",
"namespace_id": "ns_abc123",
"object_count": 10000,
"sample_object_ids": [
"obj_001",
"obj_002",
"obj_003",
"obj_004",
"obj_005"
],
"total_tiers": 3
},
"error": "Failed to process batch: Object not found",
"queue_position": 123,
"estimated_wait_minutes": 123
},
"message": "Batch confirmation is being processed in the background."
}{
"status": 123,
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": {}
},
"success": false
}{
"status": 123,
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": {}
},
"success": false
}{
"status": 123,
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": {}
},
"success": false
}{
"status": 123,
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": {}
},
"success": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"status": 123,
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": {}
},
"success": false
}Batch Confirm Uploads
Confirm multiple uploads in a single request (processed asynchronously).
Maximum 100 confirmations per batch. All uploads must belong to the same bucket.
Returns a task_id to track progress via GET /v1/tasks/.
curl --request POST \
--url https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/confirm/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Namespace: <api-key>' \
--data '
{
"confirmations": [
{}
]
}
'import requests
url = "https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/confirm/batch"
payload = { "confirmations": [{}] }
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({confirmations: [{}]})
};
fetch('https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/confirm/batch', 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/confirm/batch",
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([
'confirmations' => [
[
]
]
]),
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/confirm/batch"
payload := strings.NewReader("{\n \"confirmations\": [\n {}\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/confirm/batch")
.header("Authorization", "Bearer <token>")
.header("X-Namespace", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"confirmations\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/confirm/batch")
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 \"confirmations\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>",
"confirmations_count": 123,
"task": {
"task_id": "<string>",
"inputs": [
"batch_xyz789"
],
"outputs": [
"document_123",
"document_456"
],
"additional_data": {
"batch_id": "btch_xyz789",
"bucket_id": "bkt_products",
"collection_ids": [
"col_tier0",
"col_tier1",
"col_tier2"
],
"current_tier": 1,
"job_id": "ray_job_123",
"namespace_id": "ns_abc123",
"object_count": 10000,
"sample_object_ids": [
"obj_001",
"obj_002",
"obj_003",
"obj_004",
"obj_005"
],
"total_tiers": 3
},
"error": "Failed to process batch: Object not found",
"queue_position": 123,
"estimated_wait_minutes": 123
},
"message": "Batch confirmation is being processed in the background."
}{
"status": 123,
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": {}
},
"success": false
}{
"status": 123,
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": {}
},
"success": false
}{
"status": 123,
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": {}
},
"success": false
}{
"status": 123,
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": {}
},
"success": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"status": 123,
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": {}
},
"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
Body
Request to confirm multiple uploads in batch.
List of confirmations with upload_id, etag, file_size_bytes
1 - 100 elementsResponse
Successful Response
Response from batch confirmation.
Task ID for tracking batch confirmation progress
Task status
PENDING, QUEUED, IN_PROGRESS, PROCESSING, COMPLETED, COMPLETED_WITH_ERRORS, FAILED, CANCELED, INTERRUPTED, UNKNOWN, SKIPPED, DRAFT, ACTIVE, ARCHIVED, SUSPENDED, DEACTIVATED Number of confirmations being processed
Full task details
Show child attributes
Show child attributes
{
"additional_data": {
"batch_id": "btch_xyz789",
"bucket_id": "bkt_products",
"collection_ids": ["col_tier0", "col_tier1", "col_tier2"],
"current_tier": 1,
"job_id": "ray_job_123",
"namespace_id": "ns_abc123",
"object_count": 10000,
"sample_object_ids": [
"obj_001",
"obj_002",
"obj_003",
"obj_004",
"obj_005"
],
"total_tiers": 3
},
"description": "Multi-tier batch processing task in progress (tier 1 of 3) with 10k objects",
"inputs": ["batch_xyz789"],
"status": "IN_PROGRESS",
"task_id": "2d322a05-3178-4eca-aac6-b82b0a0313aa",
"task_type": "api_buckets_batches_process"
}
{
"additional_data": {
"cluster_id": "cl_abc123",
"job_id": "ray_job_456"
},
"description": "Completed clustering task with results",
"inputs": [
{
"collection_ids": ["col_products"],
"config": { "algorithm": "kmeans", "k": 5 }
}
],
"outputs": [
{
"cluster_id": "cl_abc123",
"num_clusters": 5,
"silhouette_score": 0.78
}
],
"status": "COMPLETED",
"task_id": "task_cluster_789",
"task_type": "engine_cluster_build"
}
{
"additional_data": {
"bucket_id": "bkt_test",
"error": "Invalid file format: Expected PDF, got PNG",
"object_id": "obj_123"
},
"description": "Failed object creation task with error",
"inputs": [
{
"bucket_id": "bkt_test",
"object_id": "obj_123"
}
],
"status": "FAILED",
"task_id": "task_failed_123",
"task_type": "api_buckets_objects_create"
}
{
"additional_data": {
"batch_id": "batch_old_123",
"from_mongodb": true,
"note": "Retrieved from persistent storage after 24hr Redis expiry"
},
"description": "Task retrieved from MongoDB fallback (Redis expired)",
"inputs": ["batch_old_123"],
"outputs": ["Processed 500 objects"],
"status": "COMPLETED",
"task_id": "taYOUR_OLD_API_KEY",
"task_type": "api_buckets_batches_process"
}
Status message
Was this page helpful?

