Overview
Search your vault records by keyword (grep) or file pattern (glob). Returns matching records or file paths.
Query Parameters
File glob pattern to match (e.g., person/*.md, **/*alice*.md).
Text to search for in record content (case-insensitive).
Response
Search results as text. If the output is structured JSON, it is returned directly instead.
Request Example
curl -X GET \
"/api/v1/vault/search?grep=machine%20learning&glob=project/*.md" \
-H "Authorization: Bearer alf_your_key_here"
Response Example
{
"raw": "project/ML Pipeline Redesign.md\nproject/Customer Segmentation Model.md\nproject/NLP Research Initiative.md"
}