GET /v1/memory_stores/{memory_store_id}/memories
Retrieves active memory entries in the specified Memory Store. List responses do not include content.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
memory_store_id | string | Yes | Memory Store ID with the memstore_ prefix |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $QODER_PAT |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Maximum number of records per page. Must be positive; defaults to 20 and is capped at 100 |
after_id | string | No | Cursor pagination: return records after this ID. Mutually exclusive with before_id |
before_id | string | No | Cursor pagination: return records before this ID. Mutually exclusive with after_id |
path_prefix | string | No | Return only entries whose path starts with this prefix |
created_at[gte] | string | No | Return records created at or after this RFC 3339 timestamp |
created_at[lte] | string | No | Return records created at or before this RFC 3339 timestamp |
Example request
Example response
HTTP 200 OKResponse fields
| Field | Type | Description |
|---|---|---|
data | array | Array of Memory entry objects. content is omitted |
first_id | string | null | ID of the first record on the current page; null when data is empty |
last_id | string | null | ID of the last record on the current page; null when data is empty |
has_more | boolean | Whether more records are available |
Pagination
Memory entry lists are returned by descending resource ID. Useafter_id=<last_id> to fetch the next page when has_more is true.
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | Invalid limit, invalid timestamp, or both before_id and after_id are provided |
| 401 | authentication_error | Missing or invalid authentication token |
| 404 | not_found_error | Memory Store does not exist |
Related
Build persistent memory
Give your agent persistent memory across sessions.