---
title: "Render"
method: POST
path: "/v1/render"
---

# Render

`POST /v1/render`

## Request

- Base URL: `https://api.pagepenny.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pagepenny.com/v1/render`
- Auth: none declared

## Request body

- RenderRequest
  - `template_id` string, nullable
  - `html` string, nullable
  - `data` object
  - `format` 'pdf' | 'png' | 'jpeg' | 'webp', nullable
  - `pdf` PdfOptionsIn
    - `page_size` string
    - `landscape` boolean
    - `margin` string
    - `scale` number
  - `image` ImageOptionsIn
    - `width` integer
    - `height` integer
    - `scale` number
    - `quality` integer
    - `full_page` boolean
  - `output` 'url' | 'binary' | 'base64'
  - `async` boolean
  - `webhook_url` string, uri, nullable
  - `expires_in` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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