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 a document

Returns the full document object.

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

Response (200 OK):

{
  "id": "3146366e04ff",
  "collection_id": "6a51b4e5c0d24f0e9b1a7c3d2e8f4a10",
  "title": "Leave policy",
  "filename": "leave-policy.pdf",
  "view_url": "https://alapi.deep.sa/v1/alRetrieval/collections/6a51b4e5c0d24f0e9b1a7c3d2e8f4a10/documents/3146366e04ff/file",
  "source": "pdf",
  "page_count": 10,
  "created_at": "2026-10-03T10:01:12Z",
  "status": "ready",
  "ingest": { "stage": "ready", "error": null },
  "deep_tree": { "status": "ready", "degraded": false, "error": null },
  "pipeline": "deep_tree"
}
fieldDescription
view_urlAPI-key-protected link to the original file, available while processing and until deletion. null for JSON pages or when no original file was retained.
sourcepdf or text.
page_countPages found; 0 until processing finishes.
status / ingest / deep_tree / pipelineAs in the status endpoint.

Ready to Get Started?

Generate an API key from your dashboard and start building

Activate account?

Activate this account?