# Drift · memory — neuraldeep.tech API

> One section of the machine-readable reference. All sections: https://neuraldeep.tech/llms.txt · everything in one file: https://neuraldeep.tech/llms-full.txt

Base URL: `https://drift.neuraldeep.tech/v1`
Auth: `Authorization: Bearer dft_...`

Every Drift user has persistent memory — `MEMORY.md` in their workspace + a per-conversation compressed history. The agent decides what to write itself (the [[remember-the-X]] pattern in reasoning), but via the API you can also poke it from outside.

```bash
# read
curl https://drift.neuraldeep.tech/v1/memory \
  -H "Authorization: Bearer dft_xxxxxxxx"
# → {"content":"# Memory\n\n- Name: John\n- Plan: starter\n..."}

# overwrite (careful — replaces everything)
curl -X PUT https://drift.neuraldeep.tech/v1/memory \
  -H "Authorization: Bearer dft_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"content":"# Memory\n\n- Project Y starts on June 1"}'
```

> Usually it's easier not to hit the API directly — ask the agent *"Remember X"* in the dialog; it will decide the format itself and won't break existing notes.
