BETA

alRetrieval

Ingest documents and query them with natural-language semantic retrieval. Supports PDF, DOCX, PPTX, TXT, and Markdown files.

Path
/v1/alRetrieval
Key scope
alretrieval

Supported file formats

PDF, DOCX, PPTX, TXT, MD

PDFs are processed via OCR; DOCX, PPTX, TXT, and MD have text extracted directly — no OCR cost

Scope Required: All alRetrieval endpoints require an API key with the alretrieval scope. Pass it as a Bearer token in the Authorization header.

GETGet document status

Poll every 2 to 5 seconds after an upload. A PDF first becomes searchable (status: ready), then its section tree is built in the background, usually within a few minutes. You can search as soon as status is ready; waiting for deep_tree as well makes results whole sections instead of pages.

GET /v1/alRetrieval/collections/{collection_id}/documents/{document_id}/status

Response (200 OK):

{
  "id": "3146366e04ff",
  "status": "ready",
  "ingest": { "stage": "ready", "error": null },
  "deep_tree": { "status": "ready", "degraded": false, "error": null },
  "pipeline": "deep_tree"
}
statusDescription
processingProcessing is running; ingest.stage names the step.
readySearchable.
failedProcessing stopped; ingest.error says why. Call retry.
deep_tree.statusDescription
not_supportedText documents: always searched page by page.
waiting / queued / processingThe section tree is on its way.
readySearches use whole sections. degraded: true means no usable table of contents was found.
skipped / failedNo tree; the document still works page by page. Retry rebuilds a failed tree.

pipeline is what a search of this document alone would use: deep_tree (sections) or basic (pages), or null while it is not ready. A search uses deep_tree only when every document in its scope has a ready tree.

Ready to Get Started?

Generate an API key from your dashboard and start building

Activate account?

Activate this account?