GET
GET /v1/memory_stores/{memory_store_id}/memories?beta=true — Claude API
Beta
Anthropic API key (required); https://api.anthropic.com
Claude APIList memories
- Base URL
- https://api.anthropic.com
- Auth
- x-api-key: <ANTHROPIC_API_KEY>
- Last verified
- 2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 302 tokens · Vary: Accept
→ 302 tokens · Vary: Accept
Critical gotchas
Authentication uses the x-api-key header and requests also require an anthropic-version header.
The official OpenAPI URL is discovered from the SDK repository manifest and must remain under Anthropic's trusted Stainless storage prefix.
cURL
curl -X GET 'https://api.anthropic.com/v1/memory_stores/memory-store-id/memories?beta=true&path_prefix=example-path-prefix&depth=10&limit=10&page=example-page&view=basic' \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H 'anthropic-version: 2023-06-01'
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| memory_store_id | path | string | Yes | Path parameter memory_store_id |
| path_prefix | query | string | No | Optional path prefix filter. Must end with `/` (segment-aligned), e.g., `/notes/`. This value appears in request URLs. Do not include secrets or personally identifiable information. |
| depth | query | integer | No | `0` (or omitted) returns all descendants below `path_prefix` (recursive). `1` returns immediate children only; deeper entries roll up as `memory_prefix` items. `depth=1` behaves like `ls`; omitting `depth` behaves like `find`. |
| limit | query | integer | No | Maximum number of items to return per page. Must be between 1 and 100. Defaults to 20 when omitted. Capped at 20 when `view=full`. Both `memory` and `memory_prefix` items count toward the limit. |
| page | query | string | No | Opaque pagination cursor (a `page_...` value). Pass the `next_page` value from a previous response to fetch the next page; omit for the first page. |
| view | query | string | No | Which projection of each `memory` to return. Defaults to `basic` (content omitted). `full` populates `content` on each item and caps `limit` at 20; use this as the bulk-read path for export and sync. |
Response 200 OK
{
"data": [
{
"type": "memory",
"id": "string",
"memory_store_id": "string",
"path": "string",
"content": "string",
"content_size_bytes": 0,
"content_sha256": "string",
"memory_version_id": "string",
"created_at": "2026-09-03T00:00:00Z",
"updated_at": "2026-09-03T00:00:00Z"
}
],
"next_page": "string"
} Get a free Claude API key → sponsored Affiliate link - we may earn a commission, at no extra cost to you.