> ## 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.

# Memory API

> Search, add, and manage memories

## POST /api/memory/search

Search indexed memories with hybrid BM25 + semantic search.

```bash theme={null}
curl -X POST http://localhost:4360/api/memory/search \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"query": "eval scripts", "limit": 5}'
```

## POST /api/memory/add

Add a memory manually.

```bash theme={null}
curl -X POST http://localhost:4360/api/memory/add \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"title": "My insight", "content": "Details...", "type": "discovery"}'
```

## GET /api/memory/status

Memory system health and stats.

```bash theme={null}
curl http://localhost:4360/api/memory/status \
  -H "Authorization: Bearer $TOKEN"
```

## POST /api/memory/index

Trigger reindex and embedding backfill.

```bash theme={null}
curl -X POST http://localhost:4360/api/memory/index \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"backfill": true}'
```

## POST /api/memory/link

Add a graph edge between two memories.

```bash theme={null}
curl -X POST http://localhost:4360/api/memory/link \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"from": 42, "to": 17, "type": "updates"}'
```

### Link Types

`updates` | `contradicts` | `related_to` | `caused_by` | `part_of`
