Lists memory stores of the current workspace in reverse creation order. Archived stores are excluded by default.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
GET /memory_stores
Query parametersinclude_archivedboolean (可选)If false (default), only unarchived stores are returned; true also returns archived oneslimit integer (可选)Page size, 1-100, default 20page string (可选)Pagination cursor. Omit on the first call; pass next_page from the previous response to fetch the next page | Request example |
Response fieldsdataarray<object>Array of memory storesid stringMemory store ID, in the format memstore_xxxtype stringAlways memory_storename stringMemory store name, 1-255 charactersdescription stringPurpose description; an empty string if not setmetadata objectCustom key-value metadata for business usearchived_at string | nullArchive time; omitted or null when not archivedcreated_at stringCreation time, ISO 8601 UTCupdated_at stringLast update time, ISO 8601 UTCnext_page string | nullCursor for the next page; absent or null when there is no more data | Response |
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 |