Grep
Browse and keyword search across brain resources. Singlequery field in path format: type or type/pattern. Keyword only — for semantic similarity search, use Search.
Request
| Field | Type | Required | Description |
|---|---|---|---|
query | string | Yes | type or type/pattern. Browse: neurons/. Keyword: neurons/support, memories/invoice |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer token or API key |
X-Brain-Id | Yes | Brain UUID. Required for memories/artifacts. |
Behavior
- Browse —
neurons/orneurons(empty pattern). Lists resources. - Keyword —
neurons/support,memories/invoice. ILIKE on names/descriptions; grep cortex for memories/artifacts content.
Response
{ path, title, snippet, url?, score? }. score appears only when similarity scoring is used.
Examples
All requests requireX-Brain-Id; grep searches within brain scope.
Browse neurons:
Related
- Search — Semantic similarity search (POST /v1/search)
- Recollections search — Owner-scoped memory search
- Authentication — client setup and brain-aware auth patterns
- MCP tools — grep and search via MCP