GET /api/v1/cloud/memory_stores
Returns the Memory Stores under the current account. Archived stores are excluded by default.
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <PAT or SAT> |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Maximum number of records per page. Defaults to 20; valid range: 1–100. Values above 100 return 400 invalid_request_error |
page | string | No | Opaque cursor returned in next_page by the previous response. Mutually exclusive with after_id and before_id |
after_id | string | No | Cursor pagination: return records after this ID. Cannot be used with before_id |
before_id | string | No | Cursor pagination: return records before this ID. Cannot be used with after_id |
include_archived | boolean | No | When true, include archived Memory Stores |
name | string | No | Case-insensitive prefix search on the store name |
created_at[gte] | string | No | Return only records created at or after this RFC 3339 timestamp |
created_at[lte] | string | No | Return only records created at or before this RFC 3339 timestamp |
Example request
Example response
HTTP 200 OK
Response fields
| Field | Type | Description |
|---|---|---|
data | array | Array of Memory Store objects |
has_more | boolean | Whether more records are available |
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 |
next_page | string | null | Opaque cursor for the next page; null when no more records are available |
Pagination
Memory Stores are returned in descending resource-ID order. To iterate through the list:
- Set
limitin the first request to retrieve the first page. - If
has_moreistrue, passnext_pageas thepageparameter in the next request. - You can alternatively use
after_id=<last_id>orbefore_id=<first_id>for ID-based pagination.
Error codes
| HTTP | type | Trigger |
|---|---|---|
| 400 | invalid_request_error | Invalid limit, invalid timestamp format, or both before_id and after_id are specified |
| 401 | authentication_error | Missing or invalid authentication token |