Authorizations
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.
Headers
REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
"Bearer sk_live_abc123def456"
"Bearer sk_test_xyz789"
Path Parameters
Response
Successful Response
Task response model returned by the API.
Extends TaskModel with additional convenience fields for API responses. This is the model returned when you GET /v1/tasks/{task_id}.
Additional Fields: error_message: Convenience field that surfaces errors from additional_data for easier error handling in client code.
Inheritance: Inherits all fields and documentation from TaskModel, including: - task_id: Unique identifier - task_type: Operation type - status: Current status - inputs: Input parameters - outputs: Output results - additional_data: Metadata and context
Storage Architecture: Same as TaskModel - stored in Redis (24hr TTL) with MongoDB fallback.
Usage: This model is automatically returned by task API endpoints. You don't need to construct it manually - just call GET /v1/tasks/{task_id}.
Error Handling: Check the error_message field for a user-friendly error string, or additional_data['error'] for the full error details.
Example Response: { "task_id": "task_abc123", "task_type": "api_buckets_batches_process", "status": "FAILED", "inputs": ["batch_xyz"], "outputs": null, "additional_data": { "error": "Failed to process batch: Object not found", "batch_id": "batch_xyz" }, "error_message": "Failed to process batch: Object not found" }
Unique identifier for the task. REQUIRED. Used to poll task status via GET /v1/tasks/{task_id}. This ID is also stored on parent resources (batches, clusters, etc.) for cross-referencing. Format: UUID v4 or custom string identifier.
"task_abc123def456"
"550e8400-e29b-41d4-a716-446655440000"
Type of operation this task represents. REQUIRED. Identifies the specific async operation being performed. Used for filtering and categorizing tasks. Common types: api_buckets_batches_process, engine_cluster_build, api_taxonomies_execute. See TaskType enum for complete list of supported operations.
api_namespaces_create, api_buckets_objects_create, api_buckets_delete, api_buckets_batches_process, api_buckets_batches_submit, api_buckets_uploads_create, api_buckets_uploads_confirm, api_buckets_uploads_batch_confirm, api_taxonomies_create, api_taxonomies_execute, api_taxonomies_materialize, engine_feature_extractor_run, engine_inference_run, engine_object_processing, engine_cluster_build, thumbnail, materialize Current status of the task. REQUIRED. Indicates the current state of the async operation. Terminal statuses (COMPLETED, FAILED, CANCELED) indicate the task has finished and will not change. Active statuses (PENDING, IN_PROGRESS, PROCESSING) indicate the task is still running and should be polled. Use this field to determine when to stop polling.
PENDING, IN_PROGRESS, PROCESSING, COMPLETED, FAILED, CANCELED, UNKNOWN, SKIPPED, DRAFT, ACTIVE, ARCHIVED, SUSPENDED Input parameters or data used to start the task. OPTIONAL. May include IDs, configuration objects, or file references. Useful for debugging and understanding what data the task processed. Format: List of strings (IDs) or objects (configuration). Example: ['batch_id_123'] or [{'bucket_id': 'bkt_abc', 'config': {...}}]
["batch_xyz789"]["obj_123", "obj_456", "obj_789"][
{
"bucket_id": "bkt_abc",
"collection_ids": ["col_1", "col_2"]
}
]Output results produced by the task. OPTIONAL. Populated when task completes successfully. May include processed file IDs, result metrics, or status summaries. Check this field after task reaches COMPLETED status to get results. Format: List of strings (output IDs) or objects (result data).
["document_123", "document_456"][
{
"failed_count": 2,
"processed_count": 100,
"success_rate": 0.98
}
][
{
"cluster_id": "cl_abc123",
"num_clusters": 5
}
]Additional metadata and context for the task. OPTIONAL. Contains job IDs, error details, progress info, and other task-specific metadata. Common fields: - 'error': Error message if task failed - 'job_id': Ray job ID for engine tasks - 'bucket_id', 'batch_id', 'cluster_id': Parent resource IDs - 'from_mongodb': True if retrieved from MongoDB fallback (not Redis) Use this field for debugging and detailed task information.
{
"batch_id": "batch_xyz789",
"bucket_id": "bkt_products",
"job_id": "ray_job_123"
}{
"error": "Failed to process object: Invalid file format",
"job_id": "123"
}{
"cluster_id": "cl_abc",
"collection_ids": ["col_1"],
"from_mongodb": true
}Flattened error message for convenient error handling. OPTIONAL. Automatically populated from additional_data['error'] when the task has FAILED status. This is a convenience field - the full error details are always available in additional_data['error']. Use this field for displaying errors to users or logging. Will be None if task has not failed or if no error details are available.
"Failed to process batch: Object not found"
"Invalid file format: Expected PDF, got PNG"
"Clustering failed: Insufficient data points"
null

