Search notes
Find bullets and documents by text, like the global search, with each result's parent path.
GET https://cotlet.dev/api/v1/remnote/notes/search
read
Searches the open knowledge base the way the Ctrl+P global search does and returns matching bullets with the document they live in and their ancestors. Pass tag to keep only bullets tagged with it, and parent_id to search inside one section only, like hierarchical search. Pass document_id from a result to get_document.
Parameters
| Name | Type | Description |
|---|---|---|
| query string required | string | Text to search for. |
| tag string | string | Only bullets tagged with this tag. |
| parent_id string | string | Only inside this document or bullet. |
| limit integer | integer | 1 to 50. Default: 20. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl "https://cotlet.dev/api/v1/remnote/notes/search?query=query" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("remnote", "search_notes", {"query":"query"}) const result = await cotlet.call('remnote', 'search_notes', {"query":"query"}); cotlet call remnote search_notes --data '{"query":"query"}' Example response
{
"results": [
{
"document_id": "rem_8f21a0",
"text": "Krebs cycle",
"is_document": true,
"path": [
"Biology",
"Cell metabolism"
]
},
{
"document_id": "rem_2c77e1",
"text": "Citrate is the first product of the cycle",
"is_document": false,
"path": [
"Biology",
"Cell metabolism",
"Krebs cycle"
]
}
],
"next_cursor": null
}