---
title: "Export a document"
method: GET
path: "/v1beta/documents/{document_id}/export"
tags: ["Documents"]
---

# Export a document

`GET /v1beta/documents/{document_id}/export`

Generates a time-limited download URL for the document PDF.

## Path parameters

- `document_id` string, required — Document ID.

## Query parameters

- `version_id` string — Optional version ID. If omitted, exports the current version.

## Response `200`

Success

- ExportDocumentResponse — ExportDocumentResponse contains the download URL.
  - `expires_at` string, date-time, required — Timestamp when the download URL expires.
  - `headers` object — HTTP headers to include when fetching the URL.
  - `url` string, required — Presigned URL to download the document PDF.

## Other responses

- `400` — Invalid request parameters
- `401` — Authentication failed - missing or invalid API key
- `403` — Authorization failed - valid key but insufficient permissions
- `404` — Resource not found
- `429` — Too many requests
- `500` — Internal server error

---

[API](https://skmtc.net/factify-inc/apis/factify-api.md) · [All operations](https://skmtc.net/factify-inc/apis/factify-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/factify-inc/factify-api/revisions/8baabdfb82bf/schema)
