---
title: "Create a memory [write]"
method: POST
path: "/memory_stores/{store_id}/memories"
---

# Create a memory \[write\]

`POST /memory_stores/{store_id}/memories`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/memory_stores/{store_id}/memories`
- Auth: HTTP bearer

## Path parameters

- `store_id` string, required

## Request body

- object
  - `path` string, required: Absolute path starting with /
  - `content` string

## Response `201`

Created memory

- object
  - `memory` MemoryFull, required: Memory with content — returned by single-get, create, and update responses.
    - `id` string, required: mem_…
    - `object` 'memory', required
    - `memory_store_id` string, required
    - `path` string, required: Absolute path starting with /
    - `content` string, required
    - `content_sha256` string, required
    - `content_bytes` integer, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
  - `version_id` string, required

## Other responses

- `409`: Error — { error: { code, message } }
- `default`: Error — { error: { code, message } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 2 info
  - added the optional property `error/request_id` to the response with the `409` status
  - added the optional property `error/request_id` to the response with the `default` status

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/memory_stores/:store_id/memories/post.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
