Creates a memory store for keeping an agent's long-term working notes.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
POST /memory_stores
Request bodynamestring (必选)Memory store name, 1-255 charactersdescription string (可选)Purpose description; an empty string is returned if omittedmetadata object (可选)Custom key-value pairs for business metadata; an empty object if omitted | Request example |
Response fieldsidstringMemory store ID, format memstore_xxxtype stringAlways memory_storename stringMemory store name, 1-255 charactersdescription stringPurpose description; an empty string if not setmetadata objectCustom key-value pairsarchived_at string | nullArchive time; omitted or null when not archivedcreated_at stringCreation time, ISO 8601 UTCupdated_at stringLast update time, ISO 8601 UTC | Response example |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | invalid_request_error | Invalid parameters, path, limit, or pagination cursor |
| 401 | InvalidApiKey | API key missing, invalid, or expired |
| 403 | permission_error | Insufficient identity or resource access permissions |