Skip to main content
POST
Search

Authorizations

Authorization
string
header
required

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

Body

application/json
query
string
required

The question to answer. Required; there is no default query.

Example:

"What is in the document?"

searchType
enum<string>
default:HYBRID_COMPLETION

Retrieval strategy. Common values: HYBRID_COMPLETION (default, passages + entities + LLM answer), GRAPH_COMPLETION (graph context + LLM answer), CODE (deterministic code graph), RAG_COMPLETION, CHUNKS, SUMMARIES, TEMPORAL, FEELING_LUCKY (auto-select), AGENTIC_COMPLETION (enables skills/tools/max_iter).

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,
GRAPH_REPORT,
SKILLS
datasets
string[] | null

Dataset names to search. Names only resolve to datasets owned by the caller; use dataset_ids for datasets shared with you.

Example:
datasetIds
string<uuid>[] | null

Dataset UUIDs to search (required for datasets shared with you). When provided, the datasets name list is ignored.

Example:

null

systemPrompt
string | null
default:Answer the question using the provided context. Be as brief as possible.
nodeName
string[] | null

Restrict results to nodes in these node_sets (the node_set values used during add/remember).

Example:

null

topK
integer | null
default:15
onlyContext
boolean
default:false
contextFormat
enum<string>
default:context

Shape of an only_context result. 'context' returns the bare retrieval context; 'prompt' returns the full envelope a completion would have received — session guidance, conversation history, and the rendered user and system prompts. The session layer comes from session_id (the default session when omitted). Ignored unless only_context is true.

Available options:
context,
prompt
Example:

"context"

sessionId
string | null

Session whose history and guidance feed the completion (or the only_context prompt preview). Omit to use the default session.

Example:

null

verbose
boolean
default:false

Return detailed result information including the graph representation when available.

skills
string[] | null

Skill names to load into the agentic retriever. Requires search_type=AGENTIC_COMPLETION; leave null otherwise.

Example:

null

tools
string[] | null

Whitelist of tool names available to the agentic retriever. Requires search_type=AGENTIC_COMPLETION.

Example:

null

maxIter
integer | null

Maximum agentic tool-call iterations before forcing a final answer (positive integer; AGENTIC_COMPLETION only).

Example:

null

includeReferences
boolean
default:false

Attach source references to completion-type results.

codeQuery
Codequery · object | null

Structured arguments for search_type=CODE. Set operation to query_facts, explore, traverse, find_path, impact_analysis, insights, architecture, or delta. Add diagram='mermaid' (or 'dot', or true) to receive the result rendered as diagram source under search_result[0].diagram; architecture includes a Mermaid diagram unless diagram=false.

Response

Successful Response

search_result
any
required
dataset_id
string<uuid> | null
required
dataset_name
string | null
required