Skip to main content

Lifecycle

Endpoint reference

For user memories, see POST /memories/add_memory.

Which endpoint should I use?

Typical call sequence

For batched uploads with mixed content:

Status pipeline

Items in graph_creation are already retrievable. Wait for completed only when you specifically need full graph traversal.

Key concepts

Source – Any unit of ingested content. Files become sources, app knowledge payloads become sources, memory items become sources. Each gets a unique source_id. Files vs app knowledge – Files require parsing (HydraDB extracts text, layout, metadata). App knowledge items arrive pre-parsed – you supply the text and structured metadata directly in the app_knowledge multipart field. Multipart form data/ingestion/upload_knowledge always uses multipart/form-data, even when sending only app_knowledge (no actual files). Nested JSON fields (file_metadata, app_knowledge) must be sent as JSON-stringified form values. Upsert – By default, ingesting a source with an existing ID overwrites the previous version. Set upsert: false to fail instead. Forceful relations – At ingestion time, you can declare relationships between sources via the relations field. These are surfaced in thinking-mode recall as additional_context.