Context
Inspect Context
Inspect the content of a knowledge or memory source.
GET
Specify the
id of the knowledge or memory you want to retrieve.
Query parameters
Fetch modes
Regardless of
mode, the response also includes inferred_content when available - the model-derived text for the source (for memories, the inferred memory statement; for knowledge, derived/normalized content). It is null when the source has no inferred content.
Use
mode=url when you need the original file. Use mode=content when you only need extracted text for display, summarization, or prompting.Mode examples
- mode=content
- mode=url
- mode=both (binary file)
- Memory source
For a binary file
Behavior notes
Text vs binary handling. In
mode=both, text-parseable sources (PDF, DOCX, MD, TXT) populate content with parsed text while non-text/binary files come back in content_base64; check both fields when handling unknown content types. In mode=content, the payload is always returned base64-encoded in content_base64 and content is null - decode content_base64 to recover the text or bytes.-
inferred_content: Alongside the rawcontent, the response carriesinferred_content- the model-derived text for the source. For memories this is the inferred memory statement (e.g."User prefers concise answers and dark mode."); for knowledge sources it is typicallynullunless derived content exists. It is returned for everymode. - Recently ingested sources: Fetching immediately after ingestion may return a record before the parsed text is ready. For reliable reads, use Ingestion Status first.
-
Presigned URL TTL: The URL is valid only for
expiry_seconds. Anyone with the URL can download the file during that window, so treat it as a short-lived secret. -
Memory items: Fetching a memory’s
idreturns its raw text content. There are no presigned URLs for memory items -mode=urlandmode=bothreturnpresigned_url: null.
Authorizations
API key sent as a Bearer token: "Bearer prefix.secret"
Query Parameters
Source ID
Example:
"HydraDoc1234"
Database (canonical name for the tenant scope)
Example:
"acme_corp"
Collection (canonical name for the sub-tenant scope)
Example:
"team_docs"
Deprecated alias for database
Example:
"tenant_1234"
Deprecated alias for collection
Example:
"sub_tenant_4567"
Presigned URL expiry in seconds
Fetch mode
Example:
"thinking"