---
title: "Read a remote file"
method: POST
path: "/fs/read"
---

# Read a remote file

`POST /fs/read`

## Request

- Base URL: `http://localhost:21721`
- URL: `http://localhost:21721/fs/read`
- Auth: HTTP bearer

Reads the entire content of a remote file through an active shell session.

## Request body

- FsReadRequest
  - `store` string, required: The store uuid
  - `path` string, required: The target file path

## Response `200`

The operation was successful. The file was read.

## Other responses

- `400`: Bad request. Please check error message and your parameters.
- `401`: Authorization failed. Please supply a `Bearer` token via the `Authorization` header.
- `403`: Authorization failed. Please supply a valid `Bearer` token via the `Authorization` header.
- `500`: Internal error.

---

[API](https://skmtc.dev/xpipe/apis/xpipe-api-documentation.md) - [All operations](https://skmtc.dev/xpipe/apis/xpipe-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/xpipe/apis/xpipe-api-documentation/revisions/cc0e84caab21?raw)
