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.

POSTCreate a collection

Returns 201 with the new collection and a Location header. The body is optional.

POST /v1/alRetrieval/collections

Parameters:

ParameterTypeDescription
namestringoptional — up to 200 characters.

Response (201 Created):

{
  "id": "6a51b4e5c0d24f0e9b1a7c3d2e8f4a10",
  "name": "HR policies",
  "document_count": 0,
  "created_at": "2026-10-03T10:00:00Z"
}

Code Examples:

retrieval_create.py
import requests

headers = {"Authorization": "Bearer YOUR_API_KEY"}
collection = requests.post("https://alapi.deep.sa/v1/alRetrieval/collections",
                           json={"name": "HR policies"}, headers=headers).json()
print(collection["id"])

Ready to Get Started?

Generate an API key from your dashboard and start building

Activate account?

Activate this account?