---
title: "Preview Document Endpoint"
method: GET
path: "/api/v1/documents/{document_id}/preview"
tags: ["Documents"]
---

# Preview Document Endpoint

`GET /api/v1/documents/{document_id}/preview`

## Request

- Base URL: `https://api.withverifa.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.withverifa.com/api/v1/documents/{document_id}/preview`
- Auth: none declared

Return a JPEG preview of a single page of a document.

Works for both PDFs (rendered via PyMuPDF at 200 DPI) and images
(returned as-is or resized). Auth requires BOTH a valid HMAC signature
AND a valid API key / cookie session — same contract as ``/download``.
The signature is bound to the caller's ``org_id``.

Query params:
    page:    1-indexed page number (for PDFs; ignored for images).
    expires: HMAC expiry timestamp.
    sig:     HMAC signature.

## Path parameters

- `document_id` string, required

## Query parameters

- `page` integer
- `expires` integer, required
- `sig` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/withverifa/apis/verifa.md) · [All operations](https://skmtc.dev/withverifa/apis/verifa/llms.txt) · [OpenAPI document](https://skmtc.dev/withverifa/apis/verifa/revisions/7288c82c9e33?raw)
