---
title: "ReadSandboxFile"
method: POST
path: "/textql.rpc.public.sandbox_admin.SandboxAdminService/ReadSandboxFile"
tags: ["SandboxAdminService"]
---

# ReadSandboxFile

`POST /textql.rpc.public.sandbox_admin.SandboxAdminService/ReadSandboxFile`

## Headers

- `Connect-Protocol-Version` 1, required — Define the version of the Connect protocol
- `Connect-Timeout-Ms` number — Define the timeout, in ms

## Request body

- TextqlRpcPublicSandboxAdminReadSandboxFileRequest
  - `sandboxId` string
  - `path` string — File to read, relative to the sandbox files root.

## Response `200`

Success

- TextqlRpcPublicSandboxAdminReadSandboxFileResponse — One CPU/memory measurement of a sandbox worker.
  - `available` boolean
  - `name` string — CPU in cores (e.g. 0.12 used of a 1.5 limit). Limit 0 = none configured.
  - `sizeBytes` union
    - integer
    - string, int64
  - `mimeType` string — Percent of the limit in [0, 100]; 0 when no limit is configured.
  - `content` string
  - `binaryContent` string, byte
  - `truncated` boolean
  - `isBinary` boolean

## Other responses

- `default` — Error

---

[API](https://skmtc.net/textql/apis/textql-rpc-platform.md) · [All operations](https://skmtc.net/textql/apis/textql-rpc-platform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/textql/textql-rpc-platform/revisions/31ce2b0c4427/schema)
