Skip to main content

Retrieve API

POST /v1/users/:user_id/streams/:stream_id/retrieve

Run hybrid retrieval for one user and stream.

What This Route Is For

This is the main recall route for the runtime. It merges multiple retrieval signals instead of relying on a single search path. Signals can include:
  • semantic similarity
  • text retrieval
  • graph expansion
  • time filtering
  • organization knowledge
  • multimodal query input

Request

Request Fields

Response

Response Fields

Practical Notes

  • Query text is always required, even for multimodal retrieval.
  • Shared organization knowledge can enter the result set when org_id is provided.
  • graph_depth lets retrieval expand through graph-linked neighbors instead of staying on direct matches only.
  • agent_id is useful when you want to bias toward one agent’s procedural memory.