Skip to main content
Memory Stores

List Memory Stores

List Forward Memory Stores visible to the current account.

Returns the Memory Stores visible to the current account, ordered by ID in descending order with cursor pagination. The response includes the default Identity store created automatically when a Session is created (system_managed=true). This differs from the generic GET /api/v1/forward/resources?type=memory_store endpoint, which only returns stores explicitly created by users.

Path

GET /api/v1/forward/memory_stores

Headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT or admin SAT>

Query parameters

ParameterTypeRequiredDescription
limitintegerNoMaximum number of results per page, from 1 to 100. Default: 20.
before_idstringNoBackward pagination cursor. Mutually exclusive with after_id.
after_idstringNoForward pagination cursor. Mutually exclusive with before_id.
system_managedbooleanNoThree-state filter: true returns only system-managed default stores; false returns only user-created stores; omit it to return both.

Example requests

# Basic list
curl -X GET "https://api.qoder.com/api/v1/forward/memory_stores" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

# Paginated list
curl -X GET "https://api.qoder.com/api/v1/forward/memory_stores?limit=10&after_id=memstore_xxx" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

# User-created stores only
curl -X GET "https://api.qoder.com/api/v1/forward/memory_stores?system_managed=false" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

Example response

HTTP 200 OK
{
  "data": [
    {
      "id": "memstore_00mc7mukn7lkxr454tjd",
      "type": "memory_store",
      "name": "project-alpha-memory",
      "description": "Agent knowledge base for project Alpha",
      "status": "active",
      "entry_count": 12,
      "total_size": 4096,
      "metadata": {"created_by": "forward", "team": "backend"},
      "system_managed": false,
      "identity_id": null,
      "created_at": "2026-08-14T10:00:00Z",
      "updated_at": "2026-08-14T10:00:00Z",
      "archived_at": null,
      "binding_info": {"identity_template_count": 1}
    }
  ],
  "first_id": "memstore_00mc7mukn7lkxr454tjd",
  "last_id": "memstore_00mc7mukn7lkxr454tjd",
  "has_more": false
}

Empty-list response

{
  "data": [],
  "first_id": null,
  "last_id": null,
  "has_more": false
}

Response fields

FieldTypeDescription
dataarrayArray of Memory Store objects.
first_idstring/nullID of the first record on the current page.
last_idstring/nullID of the last record on the current page.
has_morebooleanWhether more records are available.

Errors

HTTPTypeTrigger
400invalid_request_errorlimit is out of range, or after_id and before_id are both supplied.
401authentication_errorThe authentication token is missing or invalid.
403permission_errorThe caller cannot access the resource.
500/502/503api_errorForward or a dependent service failed.