---
title: "Generate PDF from URL"
method: POST
path: "/api/pdf"
---

# Generate PDF from URL

`POST /api/pdf`

Convert any web page to a PDF document. Supports A4, Letter, and other page formats.

## Request body

- object
  - `url` string, uri, required
  - `format` 'A4' | 'Letter' | 'Legal' | 'Tabloid'
  - `landscape` boolean

## Response `200`

PDF document

## Other responses

- `400` — Invalid request
- `401` — Missing or invalid API key
- `429` — Monthly request limit exceeded

---

[API](https://skmtc.dev/michaelcli/apis/snapapi.md) · [All operations](https://skmtc.dev/michaelcli/apis/snapapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/michaelcli/snapapi/revisions/41f32a15c9ca/schema)
