Skip to main content
GET
/
v1
/
memories
/
{memory_id}
/
revisions
Get revision chain
curl --request GET \
  --url https://api.production.xtrace.ai/v1/memories/{memory_id}/revisions \
  --header 'X-Org-Id: <api-key>' \
  --header 'x-api-key: <api-key>'
{
  "object": "list",
  "data": [
    {
      "id": "<string>",
      "text": "<string>",
      "object": "memory",
      "user_id": "<string>",
      "agent_id": "<string>",
      "conv_id": "<string>",
      "app_id": "<string>",
      "metadata": {},
      "categories": [
        "<string>"
      ],
      "score": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "details": {
        "fact_type": "<string>",
        "status": "<string>",
        "supersedes": "<string>",
        "source_role": "<string>",
        "episode_id": "<string>",
        "artifact_id": "<string>",
        "artifact_ids": [
          "<string>"
        ],
        "source_event_ids": [
          "<string>"
        ]
      }
    }
  ],
  "has_more": false,
  "next_cursor": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mem.xtrace.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Long-lived org API key. Alternative: Authorization: Bearer <key>.

X-Org-Id
string
header
required

Required alongside the API key (no key→org reverse index).

Headers

X-Service-Token
string | null

Path Parameters

memory_id
string
required

Response

Successful Response

Stripe-style list envelope used by GET /v1/memories, GET /v1/memories/{id}/revisions, and the default search response.

object
string
default:list

Constant discriminator for the resource type.

Allowed value: "list"
data
Memory · object[]

Page of memory rows.

has_more
boolean
default:false

True if more rows exist beyond this page; use next_cursor to fetch them.

next_cursor
string | null

Opaque cursor for the next page. Null on the final page. Tenant-scoped: only usable with the same (org, key) that produced it.