---
title: "Generate PDF"
method: GET
path: "/api/pdf/{document-id}.json"
tags: ["Invoices", "Estimates", "Guides"]
---

# Generate PDF

`GET /api/pdf/{document-id}.json`

## Path parameters

- `document-id` integer, required

## Query parameters

- `api_key` string, required
- `second_copy` boolean

## Response `200`

SUCCESS

- PdfResponse
  - `output` object
    - `pdfUrl` string

## Other responses

- `202` — ACCEPTED
- `401` — ACCESS DENIED
- `404` — NOT FOUND

## Changes

- **2026-08-25** `5b82d4eb0d9f` — 1 breaking, 1 warning
  - the `errors` response's property type/format changed from `object`/`` to `array`/`` for status `401`
  - removed the optional property `errors/error` from the response with the `401` status

[Change history](https://skmtc.dev/invoicexpress/apis/invoicexpress-api/changes/api/pdf/:document-id.json/get.md)

---

[API](https://skmtc.dev/invoicexpress/apis/invoicexpress-api.md) · [All operations](https://skmtc.dev/invoicexpress/apis/invoicexpress-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/invoicexpress/invoicexpress-api/revisions/5b82d4eb0d9f/schema)
