Skip to main content
Memory Stores

List Memory versions

List version snapshots in a Forward Memory Store.

Lists version snapshots in a Memory Store. Versions are organized at the Store level. Use memory_id to filter for the history of one Memory. Creating, updating, or deleting a Memory automatically produces an immutable version. The list response does not include content. Use Get a Memory version to retrieve version content.

Path

GET /api/v1/forward/memory_stores/{memory_store_id}/memory_versions

Headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT or admin SAT>

Path parameters

ParameterTypeRequiredDescription
memory_store_idstringYesMemory Store ID (memstore_...).

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.
memory_idstringNoReturns only versions of this Memory (mem_...).

Example requests

# All versions in a Store
curl -X GET "https://api.qoder.com/api/v1/forward/memory_stores/memstore_00mc7mukn7lkxr454tjd/memory_versions" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

# Version history of one Memory
curl -X GET "https://api.qoder.com/api/v1/forward/memory_stores/memstore_00mc7mukn7lkxr454tjd/memory_versions?memory_id=mem_00mc7mvag5u68kkfvxhy" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

Example response

HTTP 200 OK
{
  "data": [
    {
      "id": "memver_00mc7mw0t337kbcx5q52",
      "type": "memory_version",
      "memory_store_id": "memstore_00mc7mukn7lkxr454tjd",
      "memory_id": "mem_00mc7mvag5u68kkfvxhy",
      "path": "decisions/arch-choice.md",
      "content_size_bytes": 108,
      "content_sha256": "9a4f8d2c1b7e6543210fedcba9876543210fedcba9876543210fedcba987654",
      "operation": "updated",
      "redacted": false,
      "redacted_at": null,
      "created_at": "2026-08-14T11:00:00Z"
    },
    {
      "id": "memver_00mc7mvag5u68lh2y8gwh",
      "type": "memory_version",
      "memory_store_id": "memstore_00mc7mukn7lkxr454tjd",
      "memory_id": "mem_00mc7mvag5u68kkfvxhy",
      "path": "decisions/arch-choice.md",
      "content_size_bytes": 99,
      "content_sha256": "1712de0d497a5aeef2beeccf4fbb7d5a16944975438d0c25447b9c1fba13099a",
      "operation": "created",
      "redacted": false,
      "redacted_at": null,
      "created_at": "2026-08-14T10:00:00Z"
    }
  ],
  "first_id": "memver_00mc7mw0t337kbcx5q52",
  "last_id": "memver_00mc7mvag5u68lh2y8gwh",
  "has_more": false
}

Empty-list response

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

Response fields

FieldTypeDescription
dataarrayArray of Memory Version objects, without content.
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.
404not_found_errorThe Memory Store does not exist or is not visible across users.
500/502/503api_errorForward or a dependent service failed.