---
title: "List memory history"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List memory history

Path: CloudRaker Workspace API › Workspace Agents

`GET /agents/{agentRef}/memory/history`

Lists saved versions, newest first, optionally for one file. Pass `nextCursor` back as `cursor` for the next page.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `agentRef` (`listAgentMemoryHistory.path.agentRef`; string, required)

## Query parameters

- `path` (`listAgentMemoryHistory.query.path`; string, optional)
  - minLength 1; maxLength 512
- `cursor` (`listAgentMemoryHistory.query.cursor`; string, optional)
  - pattern `^[0-9a-f]{40}$`
- `limit` (`listAgentMemoryHistory.query.limit`; integer, optional)
  - min 1; max 100

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/agents/<agentRef>/memory/history' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/agents/<agentRef>/memory/history';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/agents/<agentRef>/memory/history"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

List memory history

#### Example

```json
{
  "data": [
    {
      "sha": "string",
      "parents": [
        "string"
      ],
      "author": "string",
      "email": "string",
      "time": 0,
      "message": "string"
    }
  ],
  "nextCursor": "string"
}
```

- `data` (`listAgentMemoryHistory.response.200.data`; array<object>, required)
  - `sha` (`listAgentMemoryHistory.response.200.data.sha`; string, required)
  - `parents` (`listAgentMemoryHistory.response.200.data.parents`; array<string>, required)
  - `author` (`listAgentMemoryHistory.response.200.data.author`; string, required)
  - `email` (`listAgentMemoryHistory.response.200.data.email`; string, required)
  - `time` (`listAgentMemoryHistory.response.200.data.time`; number, required)
  - `message` (`listAgentMemoryHistory.response.200.data.message`; string, required)
- `nextCursor` (`listAgentMemoryHistory.response.200.nextCursor`; string | null, required)

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`listAgentMemoryHistory.response.400.success`; boolean, required)
  - one of `false`
- `error` (`listAgentMemoryHistory.response.400.error`; array<unknown>, required)
- `data` (`listAgentMemoryHistory.response.400.data`; unknown, required)

### 403

`personal_account_required` — only the owner may open this memory.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`listAgentMemoryHistory.response.403.error`; string, required) — The sentence a human reads.
- `error_code` (`listAgentMemoryHistory.response.403.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`listAgentMemoryHistory.response.403.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`listAgentMemoryHistory.response.403.issues.path`; string, required)
  - `code` (`listAgentMemoryHistory.response.403.issues.code`; string, required)
  - `message` (`listAgentMemoryHistory.response.403.issues.message`; string, required)

### 404

`memory_not_available` — this memory does not exist for you.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`listAgentMemoryHistory.response.404.error`; string, required) — The sentence a human reads.
- `error_code` (`listAgentMemoryHistory.response.404.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`listAgentMemoryHistory.response.404.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`listAgentMemoryHistory.response.404.issues.path`; string, required)
  - `code` (`listAgentMemoryHistory.response.404.issues.code`; string, required)
  - `message` (`listAgentMemoryHistory.response.404.issues.message`; string, required)


Source: https://docs.cloudraker.com/workspace/api/workspace-agents/list-agent-memory-history/index.md
