---
title: "Get file bytes"
method: GET
path: "/content/files/{uuid}/raw"
tags: ["Content - Files"]
---

# Get file bytes

`GET /content/files/{uuid}/raw`

Stream a workspace file's raw bytes for inline preview (capped at 10 MB)

## Path parameters

- `uuid` string, uuid, required — File identifier.

## Response `200`

Successful response

- union — Response body schema (failure branches only).
  - object
    - `errorMessage` string, required — Error message when the request fails.
  - object
    - `reason` 'fileNotFound', required — Failure reason.
  - object
    - `reason` 'tooLarge', required — Failure reason.
    - `sizeBytes` number, required — The file's size, which exceeds the preview cap.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/getcargo/apis/cargo-api.md) · [All operations](https://skmtc.net/getcargo/apis/cargo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getcargo/cargo-api/revisions/1d5a19e01d83/schema)
