---
title: "Generate PDF"
method: POST
path: "/v1/pdf/generate"
tags: ["PDF"]
---

# Generate PDF

`POST /v1/pdf/generate`

## Request

- Base URL: `https://api.oviond.com`
- URL: `https://api.oviond.com/v1/pdf/generate`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Enqueue a PDF generation job for a report.

## Request body

- GeneratePdfRequest
  - `report_id` string, required
  - `client_id` string, required
  - `format` 'A4' | 'Letter', required
  - `orientation` 'portrait' | 'landscape', required

## Response `202`

PDF generation queued

- GeneratePdfResponse
  - `success` true, required
  - `data` object, required
    - `job_id` string, required
    - `message` string, required

## Other responses

- `400`: The report is a dashboard, which has no pages to paginate
- `503`: S3 not configured

---

[API](https://skmtc.dev/oviond/apis/oviond-backend-api.md) · [All operations](https://skmtc.dev/oviond/apis/oviond-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/oviond/apis/oviond-backend-api/revisions/4cb0a07daf41?raw)
