---
title: "Preview a visible workspace file"
method: GET
path: "/tally/files/{fileId}/preview"
tags: ["Tally Files"]
---

# Preview a visible workspace file

`GET /tally/files/{fileId}/preview`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/tally/files/{fileId}/preview`
- Auth: HTTP bearer

Revalidates current access and returns bounded preview content without exposing stored-object keys. For a PDF or image the `inline` kind carries a stable, session-authorized relative app path (`/api/v1/tally/files/{fileId}/preview?content=inline`), not a signed or expiring URL; it is fetched with the same session and re-authorizes on every request. Other kinds return a CSV/XLSX row window, text excerpt, safe ZIP listing, or a download-only result.

## Path parameters

- `fileId` string, uuid, required

## Query parameters

- `content` 'inline'
- `sheet` string
- `startRow` integer
- `rowLimit` integer

## Response `200`

Bounded workspace file preview

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
