Skip to main content
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

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 raw content, the response carries inferred_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 typically null unless derived content exists. It is returned for every mode.
  • 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 id returns its raw text content. There are no presigned URLs for memory items - mode=url and mode=both return presigned_url: null.

Authorizations

Authorization
string
header
required

API key sent as a Bearer token: "Bearer prefix.secret"

Query Parameters

id
string
required

Source ID

Example:

"HydraDoc1234"

database
string
required

Database (canonical name for the tenant scope)

Example:

"acme_corp"

collection
string

Collection (canonical name for the sub-tenant scope)

Example:

"team_docs"

tenant_id
string
deprecated

Deprecated alias for database

Example:

"tenant_1234"

sub_tenant_id
string
deprecated

Deprecated alias for collection

Example:

"sub_tenant_4567"

expiry_seconds
integer
default:3600

Presigned URL expiry in seconds

mode
string

Fetch mode

Example:

"thinking"

Response

OK

data
object
Example:
error
object

Error message, empty string on success.

Example:
meta
object
Example:
success
boolean

Whether the request succeeded.

Example:

true