---
title: "Read memory files"
---

> 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.

# Read memory files

Path: CloudRaker Workspace API › Workspace Agents

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

Reads up to 20 files at once. Repeat `path` for each file. A missing file answers `missing: true`.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

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

## Query parameters

- `path` (`getAgentMemoryFiles.query.path`; string, required) — A relative file path. Repeat up to 20 times.

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/agents/<agentRef>/memory/files?path=string';
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/files?path=string"

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

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

print(response.text)
```

## Responses

### 200

Read memory files

#### Example

```json
{
  "data": {
    "sha": "string",
    "files": [
      {
        "path": "string",
        "content": "string",
        "blob": "string",
        "missing": true
      }
    ]
  }
}
```

- `data` (`getAgentMemoryFiles.response.200.data`; object, required)
  - `sha` (`getAgentMemoryFiles.response.200.data.sha`; string | null, required)
  - `files` (`getAgentMemoryFiles.response.200.data.files`; array<object>, required)
    - `path` (`getAgentMemoryFiles.response.200.data.files.path`; string, required)
    - `content` (`getAgentMemoryFiles.response.200.data.files.content`; string, optional)
    - `blob` (`getAgentMemoryFiles.response.200.data.files.blob`; string, optional)
    - `missing` (`getAgentMemoryFiles.response.200.data.files.missing`; boolean, optional)

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


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