v1

latestOpenAPI 3.1.0Proprietary2026-07-262570100.1 KB
context

Fetch document content

Fetch a previously ingested source's content, inferred content, and a downloadable URL.

get/context/inspect

Query parameters

idstring required
Example:HydraDoc1234

Source ID

databasestring required
Example:acme_corp

Database (canonical name for the tenant scope)

collectionstring
Example:team_docs

Collection (canonical name for the sub-tenant scope)

tenant_idstring
Example:tenant_1234

Deprecated alias for database

sub_tenant_idstring
Example:sub_tenant_4567

Deprecated alias for collection

expiry_secondsinteger

Presigned URL expiry in seconds

modestring
Example:thinking

Fetch mode

Response

OK

successboolean

Whether the request succeeded.

Example response

{
  "data": {
    "content": "# Q4 Report\n\nRevenue grew 23% quarter over quarter.",
    "content_type": "application/pdf",
    "id": "HydraDoc1234",
    "inferred_content": "Summary: Q4 revenue rose 23% QoQ, driven by enterprise expansion.",
    "message": "Success",
    "presigned_url": "https://storage.hydradb.com/sources/HydraDoc1234?sig=...",
    "size_bytes": 20480,
    "success": true
  },
  "error": {
    "code": "DATABASE_NOT_FOUND",
    "message": "Database not found"
  },
  "meta": {
    "collection": "team_docs",
    "database": "acme_corp",
    "deprecation": [
      {
        "deprecated": true,
        "deprecated_field": "tenant_id",
        "deprecated_since": "2.0.1",
        "message": "tenant_id is deprecated; use database instead.",
        "preferred_field": "database"
      }
    ],
    "latency_ms": 12.3,
    "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d",
    "source_type": "file",
    "sub_tenant_id": "sub_tenant_4567",
    "tenant_id": "tenant_1234"
  },
  "success": true
}