GET /v1/memory_stores
Retrieves Memory Stores under the current account. Archived stores are excluded by default.
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 |
include_archived | boolean | No | Set to true to include archived Memory Stores |
name | string | No | Case-insensitive prefix search on store name |
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 Store objects |
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 Store lists are returned by descending resource ID. To page through stores:- Make the first request with
limitto fetch the first page. - If
has_moreistrue, useafter_id=<last_id>to fetch the next page. - Use
before_id=<first_id>to page backward.
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 |
Related
Build persistent memory
Give your agent persistent memory across sessions.