Skip to main content
Find out whether Mixpeek is healthy, why a retriever is slow or empty, and why a batch failed, then fix it through the API. Everything here needs an API key and, for namespace resources, an X-Namespace header with your namespace id.

Check health

cURL
GET /v1/health returns ok during a full outage of every service behind it, and GET /v1/health?deep=true is the same call: that route has no query parameters. Point service monitors at GET /v1/health/deep. There, ?deep=true is real and adds data-plane checks (reading collections, probing vector store namespaces, inspecting the task queue). An anonymous call to /v1/health/deep returns 403, and the platform private token returns 401.

Diagnose a failed or stuck batch

1

Get the diagnosis

The report has status, health, failure_category (infrastructure, timeout, orphaned or pipeline), failure_reason, stuck_for_seconds, per_tier detail, infrastructure_events (out-of-memory, preemption, node failures), top_errors, a sample of failed documents, and recommendations. all_balanced and has_lost_objects say whether every submitted object is accounted for.
2

Run the failed work again

When /retry finds objects it cannot recover, its response carries a remedy with the exact /resubmit call. Mixpeek also resubmits a batch failed by a node loss or engine restart by itself at the next repair pass, every 30 minutes, up to its retry limit.
3

Clear a stuck tier

A tier that reads IN_PROGRESS with a last_activity_at minutes old may be stuck. POST .../tiers/{tier_num}/heal takes {"action": "detect_stuck"}, {"action": "kill_duplicates"} (more than one job for the same extractor) or {"action": "sync_status"}. Then cancel the tier with POST .../tiers/{tier_num}/cancel, or one job with POST .../tiers/{tier_num}/jobs/{ray_job_id}/cancel.

Check it worked

GET /v1/buckets/{bucket_id}/batches/{batch_id} shows each tier’s status. Its progress.stage_history times each stage (loading, processing, writing): a long processing stage points at the extractor, a long writing stage at the vector store. Each tier’s submission_params records the resources it ran with. GET .../batches/{batch_id}/logs returns the job logs, for all tiers or one tier_num, and GET .../batches/{batch_id}/failed-documents lists failures. Follow any task with GET /v1/tasks/{task_id}, or find failures across the namespace with POST /v1/tasks/list and {"status": "FAILED"}. To be told instead of polling, the default alerts email you on a failed, stalled or error-heavy batch, and the collection.documents.batch_completed webhook event fires when a batch finishes each collection.

Find a slow or empty retriever

Slow

performance takes start_date and end_date (ISO 8601) and group_by, for example group_by=day.
cURL
Common causes are an LLM stage, a large limit on an early stage, and filters placed after an expensive search. Put structured filters first, cut early limit values and rerank only the top results, and cache stable stages (see Retrievers). budget_limits on a retriever (max_credits, max_time_ms) caps what one execution can spend.

Empty

Check in this order: POST /v1/retrievers/{retriever_id}/execute/explain shows the execution plan with per-stage candidate counts.

A list returns an empty page

GET /v1/collections, /v1/buckets and /v1/retrievers, and their POST .../list forms, return 200 with an empty page when X-Namespace does not resolve for your key. The response then carries a warnings entry with "resource": "namespace" and "reason": "unresolved", and the header X-Namespace-Unresolved: true. A namespace that does not exist and one in another organization look the same. List yours with GET /v1/namespaces and send one of those ids. With no warning and no header, the empty page is the true answer.

Engine and usage analytics

To chart these in Datadog or Grafana, poll the endpoints and push the values you need:
export_metrics.py
Each request’s x-request-id is carried into engine jobs as additional_data.request_id, so you can match an API call to the batch work it started. On customer-hosted deployments you also have the Ray dashboard on port 8265 and the Ray, MongoDB and Redis metrics of your own cluster.

API errors

Errors share one envelope. Branch on error.code, and follow error.help_url to the code’s entry on the errors page, which says what it means and what to do next. type is the broader class in the table below. Quote details.request_id to support.
Error response
A key a request body does not declare returns 422 with "type": "extra_forbidden" and an accepted_keys list. The official SDKs send only declared keys, so this affects hand-written requests.