---
title: "Read a file from a computer"
method: POST
path: "/computer/{computerId}/file/read"
tags: ["Computer"]
---

# Read a file from a computer

`POST /computer/{computerId}/file/read`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/computer/{computerId}/file/read`
- Auth: HTTP bearer

## Path parameters

- `computerId` string, required: The ID of the computer

## Request body

- object
  - `path` string, required: The absolute path of the file on the computer

## Response `200`

The file was read

- object
  - `path` string, required: The path of the file
  - `contents` string, required: The contents of the file, as text

## Other responses

- `default`: An error response

---

[API](https://skmtc.dev/chatbotkit/apis/cbk-api.md) · [All operations](https://skmtc.dev/chatbotkit/apis/cbk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatbotkit/apis/cbk-api/revisions/13d250576136?raw)
