Create a memory store
api/beta/memory_stores/create
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/beta/memory_stores/create Changed · +19 / -16 lines
# Create a memory store ## Headers ## Body parameters ## Returns ## Example ### Response (200) ## Create a memory store ### Header Parameters ### Body Parameters ### Returns ### Example #### Response
---- -title: Create a memory store -url: https://platform.claude.com/docs/en/api/beta/memory_stores/create ---- +# Create a memory store -## Create a memory store +**POST** `/v1/memory_stores` -**post** `/v1/memory_stores` - Create a memory store -### Header Parameters +## Headers - `"anthropic-beta": optional array of AnthropicBeta`
- `"mid-conversation-tool-changes-2026-07-01"` -### Body Parameters +## Body parameters - `name: string` Human-readable name for the store. Required; 1–255 characters; no control characters. The mount-path slug under `/mnt/memory/` is derived from this name (lowercased, non-alphanumeric runs collapsed to a hyphen). Names need not be unique within a workspace. + minLength: 1, maxLength: 255 + - `description: optional string` Free-text description of what the store contains, up to 1024 characters. Included in the agent's system prompt when the store is attached, so word it to be useful to the agent. + maxLength: 1024 + - `metadata: optional map[string]` Arbitrary key-value tags for your own bookkeeping (such as the end user a store belongs to). Up to 16 pairs; keys 1–64 characters; values up to 512 characters. Not visible to the agent. -### Returns +## Returns -- `BetaManagedAgentsMemoryStore object { id, created_at, name, 5 more }` +- `BetaManagedAgentsMemoryStore object` A `memory_store`: a named container for agent memories, scoped to a workspace. Attach a store to a session via `resources[]` to mount it as a directory the agent can read and write.
A timestamp in RFC 3339 format + format: date-time + - `name: string` Human-readable name for the store. 1–255 characters. The store's mount-path slug under `/mnt/memory/` is derived from this name.
- `type: "memory_store"` - - `"memory_store"` - - `updated_at: string` A timestamp in RFC 3339 format + format: date-time + - `archived_at: optional string or null` A timestamp in RFC 3339 format + format: date-time + - `description: optional string` Free-text description of what the store contains, up to 1024 characters. Included in the agent's system prompt when the store is attached, so word it to be useful to the agent. Empty string when unset.
Arbitrary key-value tags for your own bookkeeping (such as the end user a store belongs to). Up to 16 pairs; keys 1–64 characters; values up to 512 characters. Returned on retrieve/list but not filterable. -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/memory_stores \ -H 'Content-Type: application/json' \ -H 'anthropic-version: 2023-06-01' \
}' ``` -#### Response +### Response (200) ```json {