---
title: "GET /ai/workspace/file"
method: GET
path: "/ai/workspace/file"
tags: ["AI Chat"]
---

# GET /ai/workspace/file

`GET /ai/workspace/file`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/workspace/file`
- Auth: HTTP bearer

## Query parameters

- `path` string, required

## Response `200`

- ApplicationWorkspaceFileContentResponse
  - `binary` boolean, required
  - `content` string, nullable
  - `content_b64` string, nullable: Base64-encoded raster image bytes when this file has a verified, browser-safe image signature and is within the configured preview cap.
  - `media_type` string, nullable
  - `path` string, required
  - `size_bytes` integer, required
  - `truncated` boolean, required

## Other responses

- `400`
- `401`
- `403`
- `404`
- `500`

## Changes

- **2026-09-07** `504478bfd788`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/workspace/file/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
