Skip to main content
POST
/
v1
/
buckets
/
{bucket_identifier}
/
uploads
/
confirm
/
batch
Batch Confirm Uploads
curl --request POST \
  --url https://api.mixpeek.com/v1/buckets/{bucket_identifier}/uploads/confirm/batch \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'X-Namespace: <x-namespace>' \
  --data '
{
  "confirmations": [
    {}
  ]
}
'
{
  "task_id": "<string>",
  "status": "PENDING",
  "confirmations_count": 123,
  "task": {
    "task_id": "<string>",
    "task_type": "api_namespaces_create",
    "status": "PENDING",
    "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"
  },
  "message": "Batch confirmation is being processed in the background."
}

Headers

Authorization
string
required

REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.

X-Namespace
string
required

REQUIRED: Namespace identifier for scoping this request. All resources (collections, buckets, taxonomies, etc.) are scoped to a namespace. You can provide either the namespace name or namespace ID. Format: ns_xxxxxxxxxxxxx (ID) or a custom name like 'my-namespace'

Path Parameters

bucket_identifier
string
required

The unique identifier of the bucket

Body

application/json

Request to confirm multiple uploads in batch.

confirmations
Confirmations · object[]
required

List of confirmations with upload_id, etag, file_size_bytes

Required array length: 1 - 100 elements

Response

Successful Response

Response from batch confirmation.

task_id
string
required

Task ID for tracking batch confirmation progress

status
enum<string>
required

Task status

Available options:
PENDING,
IN_PROGRESS,
PROCESSING,
COMPLETED,
COMPLETED_WITH_ERRORS,
FAILED,
CANCELED,
UNKNOWN,
SKIPPED,
DRAFT,
ACTIVE,
ARCHIVED,
SUSPENDED
confirmations_count
integer
required

Number of confirmations being processed

task
TaskResponse · object
required

Full task details

message
string
default:Batch confirmation is being processed in the background.

Status message