---
title: "Read one file out of a Computer."
method: GET
path: "/v1/computers/{id}/files"
tags: ["Computers"]
---

# Read one file out of a Computer.

`GET /v1/computers/{id}/files`

## Request

- Base URL: `https://api.scalix.world`
- URL: `https://api.scalix.world/v1/computers/{id}/files`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Query parameters

- `path` string, required

## Response `200`

File contents, base64-encoded

- ComputerFileRead: One file read out of a Computer.
  - `exists` boolean, required
  - `content_b64` string, required: Base64-encoded contents. Empty when `exists` is false.
  - `size` string, required: Size in bytes, as a string.

## Other responses

- `400`: Missing `path` query parameter
- `404`: Not found
- `409`: The Computer is not RUNNING

---

[API](https://skmtc.dev/scalix/apis/scalix-cloud-api.md) · [All operations](https://skmtc.dev/scalix/apis/scalix-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalix/apis/scalix-cloud-api/revisions/2c04ca0a90bb?raw)
