> ## Documentation Index
> Fetch the complete documentation index at: https://docs.10et.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Context API

> Query project context from the Context Hub

## POST /api/context

Query project context — journals, knowledge docs, code headers.

```bash theme={null}
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

| Field      | Type   | Description                                            |
| ---------- | ------ | ------------------------------------------------------ |
| `query`    | string | Optional search query                                  |
| `maxItems` | number | Maximum results (default: 30)                          |
| `taskType` | string | Prioritization: code, spec, content, strategy, general |

### Response

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