Create a Memory entry in a Forward Memory Store.
Creates a Memory entry in a Memory Store. An active
HTTP 200 OK
Returns a Memory object, including
Memories cannot be created in an archived Memory Store. The endpoint returns
path must be unique within a Store. Creating a duplicate path returns 409.
Creating a Memory automatically produces a version snapshot with operation=created.
Path
POST /api/v1/forward/memory_stores/{memory_store_id}/memories
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <PAT or admin SAT> |
Content-Type | Yes | application/json |
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
memory_store_id | string | Yes | Memory Store ID (memstore_...). |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Case-sensitive relative path in the Store. See Path constraints. |
content | string | Yes | Plain-text UTF-8 content, not base64. The raw content is limited to 100 KiB. See Content constraints. |
metadata | object | No | Key-value metadata whose values must be strings. Up to 16 keys. See Memory metadata constraints. |
Example request
Example response
HTTP 200 OK
Response
Returns a Memory object, including content.
Notes
Memories cannot be created in an archived Memory Store. The endpoint returns 409.
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | path or content is missing or invalid, content exceeds 100 KiB or contains non-printable control characters, or metadata violates its constraints. |
| 401 | authentication_error | The authentication token is missing or invalid. |
| 403 | permission_error | The caller cannot access the resource. |
| 404 | not_found_error | The Memory Store does not exist or is not visible across users. |
| 409 | conflict_error | An active Memory with this path already exists in the Store, or the Store is archived. |
| 500/502/503 | api_error | Forward or a dependent service failed. |