---
title: "Public Preview File"
method: GET
path: "/api/files/public/preview/{file_id}"
tags: ["files"]
---

# Public Preview File

`GET /api/files/public/preview/{file_id}`

## Path parameters

- `file_id` string, required

## Query parameters

- `relative_path` string, nullable
- `token` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-06-13** `33e4ba4936ad` — 1 info
  - added the new optional `query` request parameter `token`
- **2026-05-01** `c9eb29ec9a1b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/xorbitsai/apis/xagent/changes/api/files/public/preview/:file_id/get.md)

---

[API](https://skmtc.dev/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.dev/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/33e4ba4936ad/schema)
