Skip to main content
POST
Recall

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
searchType
enum<string> | null
default:GRAPH_COMPLETION

Search strategy, e.g. GRAPH_COMPLETION, RAG_COMPLETION, CHUNKS, SUMMARIES. Pass null to let cognee auto-route the query to the best strategy.

Available options:
SUMMARIES,
CHUNKS,
RAG_COMPLETION,
HYBRID_COMPLETION,
TRIPLET_COMPLETION,
GRAPH_COMPLETION,
GRAPH_COMPLETION_DECOMPOSITION,
GRAPH_SUMMARY_COMPLETION,
CYPHER,
NATURAL_LANGUAGE,
GRAPH_COMPLETION_COT,
GRAPH_COMPLETION_CONTEXT_EXTENSION,
FEELING_LUCKY,
TEMPORAL,
CODING_RULES,
CHUNKS_LEXICAL,
AGENTIC_COMPLETION,
CODE
datasets
string[] | null

Dataset names to search within. Omit (null) to search all datasets you have read access to.

Example:
datasetIds
string<uuid>[] | null

Dataset UUIDs to search within; takes precedence over 'datasets' names when both are provided. Leave empty to resolve by name.

Example:

null

query
string
default:What is in the document?
systemPrompt
string | null
default:Answer the question using the provided context. Be as brief as possible.
nodeName
string[] | null

Restrict results to these node sets (the node_set values passed to /v1/add or /v1/remember). Omit to search all nodes.

Example:

null

topK
integer | null
default:15
onlyContext
boolean
default:false
verbose
boolean
default:false
includeReferences
boolean
default:false

Include source/provenance references in completion results.

sessionId
string | null

Session whose cached QA and trace entries should be searched. With search_type null and no datasets, session hits short-circuit the graph search.

Example:

null

scope

Which memory sources to include: 'graph', 'session', 'trace', 'session_context', 'all', 'auto', or a list of these. Defaults to 'auto' (session first when session_id is set, else graph).

Example:

null

contextProfile
string
default:qa

Profile to render for the 'session_context' scope: 'qa' (conversational) or 'agent' (tool/workflow). Ignored by other scopes.

Response

Successful Response

time
string
required
question
string
required
context
string
required
answer
string
required
source
string
required
Allowed value: "session"
qa_id
string | null
feedback_text
string | null
feedback_score
integer | null
used_graph_element_ids
Used Graph Element Ids · object | null
memify_metadata
Memify Metadata · object | null
used_session_context_ids
string[] | null