# Read a room file

Source: <https://everruns.com/docs/api/operations/read_room_file/>

[Docs](https://everruns.com/docs/)/[API reference](https://everruns.com/docs/api/)/[Sessions & workspaces](https://everruns.com/docs/api/groups/sessions-workspaces/)/Read a room file

# Read a room file

Preview

Read a file in a room’s shared folder, as it is now or at an earlier version.

Public APIEverruns Cloud and self-hosted Platform

GET`/v1/rooms/{room_id}/files/content`

See [authentication](https://everruns.com/docs/sre/runbooks/authentication/) for credentials and permissions.

## Parameters

### Path Parameters

**room_id**

required

string

Prefixed public identifier

### Query Parameters

**path**

required

string

The file, such as `/plans/launch.md`.

**version**

integer format: int32

An earlier version to read; the current one when absent. Works for a deleted file too.

## Responses

200Success

### 200

Success

Media typeapplication/json

A room file’s content at one version.

object

**author**

One of:

* object

  Who made that version.

  object

  **display_name**

  required

  Name shown with the message.

  string

  **handle**

  required

  Mention name, written `@handle`.

  string

  **id**

  required

  Member id of the author.

  string

  **kind**

  required

  Person, Everruns agent, outside agent or guest.

  string

  Allowed values: person agent outside_agent guest

* null

  null

**content**

required

The content, in `encoding`.

string

**encoding**

required

`text` (UTF-8) or `base64` (anything else).

string

**path**

required

Path of the file at that version.

string

**size_bytes**

required

Size of the content, in bytes.

integer format: int64

**updated_at**

required

When that version was made.

string format: date-time

**version**

required

The version read.

integer format: int32

### Example

```json
{
  "author": {
    "display_name": "Triage agent",
    "handle": "triage",
    "id": "rmem_01933b5a000070008000000000000003",
    "kind": "person"
  },
  "content": "# Launch plan\n\n- [ ] Draft the announcement\n",
  "encoding": "text",
  "path": "/plans/launch.md",
  "size_bytes": 2048,
  "updated_at": "2026-11-10T09:30:00Z",
  "version": 3
}
```

FetchcURL

Request

```js
const url = 'https://app.everruns.com/api/v1/rooms/example/files/content?path=example';
const options = {method: 'GET'};


try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

Request

```sh
curl --request GET \
  --url 'https://app.everruns.com/api/v1/rooms/example/files/content?path=example'
```

Additional language examples require JavaScript. The default request example is available above.

200

200 · Success

```json
{
  "content": "# Launch plan\n\n- [ ] Draft the announcement\n",
  "encoding": "text",
  "path": "/plans/launch.md",
  "size_bytes": 2048,
  "updated_at": "2026-11-10T09:30:00Z",
  "version": 3
}
```

## Matching endpoints