POST /api/v1/cloud/memory_stores/{memory_store_id}/memories
Creates a new memory entry. Returns the created memory with content included.
Path parameters
| Parameter | Description |
|---|---|
memory_store_id | The store ID (memstore_...) |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <PAT> |
Content-Type | Yes | application/json |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Entry path, up to 1024 characters. Cannot contain .. |
content | string | Yes | Entry content, up to 100 KB |
metadata | object | No | Key-value tags. Up to 16 pairs; keys 1–64 characters; values up to 512 characters |
Example request
Response
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | Invalid path, blank or oversized content |
| 404 | not_found_error | Store does not exist |
| 409 | invalid_request_error | Store is archived, or path already exists |