Search notes (vector / keyword / hybrid)
const url = 'https://api.engram.page/search';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"diversity":0.3,"limit":5,"mode":"hybrid","query":"omega-3 dosage","type":"Playbook"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.engram.page/search \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "diversity": 0.3, "limit": 5, "mode": "hybrid", "query": "omega-3 dosage", "type": "Playbook" }'Searches the current vault and returns one result per matching note (chunk hits are grouped by note, ranked by best chunk score). mode selects vector, keyword, or hybrid (default) retrieval, and results may be narrowed by tags or folder. Setting cross_vault searches across all of the user’s vaults and requires the Pro plan (403 otherwise).
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Search query
object
Only notes whose frontmatter created date is at or after this ISO 8601 instant.
Only notes whose frontmatter created date is at or before this ISO 8601 instant.
Pro plan only.
Result diversity (MMR). 0 = most relevant (default, tuned per plan); 1 = most varied.
1..50, default 5
Filter to notes whose frontmatter type equals this value (case-insensitive).
Only notes whose frontmatter timestamp is at or after this ISO 8601 instant.
Only notes whose frontmatter timestamp is at or before this ISO 8601 instant.
Example
{ "diversity": 0.3, "limit": 5, "mode": "hybrid", "query": "omega-3 dosage", "type": "Playbook"}Responses
Section titled “Responses”Results
object
object
Examplegenerated
{ "results": [ { "folder": "example", "heading_path": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "match_count": 1, "path": "example", "score": 1, "snippet": "example", "title": "example" } ]}Cross_vault requires Pro
Missing query