---
title: "Stream the document's original file"
method: GET
path: "/v1/documents/{id}/file"
tags: ["Documents"]
---

# Stream the document's original file

`GET /v1/documents/{id}/file`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/documents/{id}/file`
- Auth: HTTP bearer

Streams the document's original uploaded bytes (e.g. the source PDF or
image) so a caller can show it alongside extracted data or a review
decision — for example a client-side pdf.js viewer. The platform keeps
no separate page-image/raster store, so a caller that wants to render
a specific page renders this response itself.

Supports HTTP byte-range requests (`Range: bytes=...`) so a viewer can
fetch only the pages it needs instead of the whole file; a `206`
response carries `Content-Range` and omits nothing else. Returns 404
if the document does not exist, is not visible to the API key's
creator (Sources IAM), or has no recoverable original file (e.g. a
legacy document whose source was never retained — use
`GET /v1/documents/{id}/markdown` instead in that case).

A linked duplicate (an exact re-submission of an already-ingested
file) streams the CANONICAL document's bytes while keeping this id's
own filename in `Content-Disposition`.

## Path parameters

- `id` string, uuid, required

## Headers

- `Range` string

## Response `200`

The full file. `Accept-Ranges: bytes` is always present so a client can switch to ranged requests.

## Other responses

- `206`: Partial content for a satisfied `Range` request.
- `401`: Missing or invalid API key.
- `404`: The requested resource was not found.
- `416`: The `Range` value is syntactically invalid or entirely outside the file (documented for RFC 7233 completeness — the current implementation degrades this case to a full `200` instead of returning `416`; treat both as "the server did not honor the requested range").
- `429`: Daily rate limit exceeded.

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) · [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) · [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/678fe5f8c9c3?raw)
