Skip to main content

POST /api/context

Query project context — journals, knowledge docs, code headers.
curl -X POST http://localhost:4360/api/context \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query": "CLI startup", "maxItems": 10}'

Request Body

FieldTypeDescription
querystringOptional search query
maxItemsnumberMaximum results (default: 30)
taskTypestringPrioritization: code, spec, content, strategy, general

Response

{
  "items": [
    {
      "source": "journal",
      "type": "feature",
      "title": "CLI startup optimization",
      "content": "Reduced p90 from 6.7s to 98ms...",
      "path": ".jfl/journal/main.jsonl"
    }
  ]
}