Back
AnthropicClaude API
We've added the agent-memory-2026-07-22 beta header, which changes how listing memories behaves: results are…
AI summary
Written by AI from the official notes. Check them for exact details.A new beta header agent-memory-2026-07-22 changes memory listing behavior and SDKs now use it.
- New beta header
agent-memory-2026-07-22introduced for memory listing. - Results are returned in a stable, server-defined order.
depthparameter now accepts only 0, 1, or omitted.path_prefixmust end with '/' and match whole path segments.- SDKs updated to use the new header for memory store calls.
Why it matters: Developers using Claude's memory features should update their code to comply with the new header requirements.
Full release notes2 changes
- We've added the
agent-memory-2026-07-22beta header, which changes how listing memories (GET /v1/memory_stores/{memory_store_id}/memories) behaves: results are returned in a stable, server-defined order and theorder_byandorderparameters are ignored;depthaccepts only0,1, or being omitted (other values return a400error); andpath_prefixmust end with/and matches whole path segments instead of a substring. Page cursors issued without the header aren't valid with it, so restart from the first page when you adopt it. On memory store endpoints,agent-memory-2026-07-22replacesmanaged-agents-2026-04-01; sending both returns a400error. On July 22, 2026, themanaged-agents-2026-04-01header adopts the same list behavior. See Beta headers. - The Python (0.116.0), TypeScript (0.110.0), Go (1.56.0), Java (2.48.0), Ruby (1.55.0), PHP (0.36.0), C# (12.35.0), and CLI (1.16.0) SDKs now send
agent-memory-2026-07-22on all memory store calls instead ofmanaged-agents-2026-04-01. If your code passesbetasexplicitly on memory store calls, replacemanaged-agents-2026-04-01withagent-memory-2026-07-22there rather than adding a second value.