---
title: "Compile New Document PDF"
method: POST
path: "/templates/{template-token}/compile"
tags: ["PDF Generation"]
---

# Compile New Document PDF

`POST /templates/{template-token}/compile`

Compile a PDF document from a specific template

## Query parameters

- `doc-url-expires-in` integer
- `latex-compiler` 'pdflatex' | 'lualatex'
- `latex-runs ` integer
- `main-file-name` string
- `doc-file-name` string

## Headers

- `Content-Type` string, required

## Request body

- object

## Response `200`

Document Status URL Created

- object

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.dev/advicement/apis/dynamicdocs.md) · [All operations](https://skmtc.dev/advicement/apis/dynamicdocs/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/advicement/dynamicdocs/revisions/373fcdf22f44/schema)
