---
title: "Typst/Markdown 源码 → PDF（scope pdf.convert）"
method: POST
path: "/convert/typst"
---

# Typst/Markdown 源码 → PDF（scope pdf.convert）

`POST /convert/typst`

## Request

- Base URL: `https://pdflean.com/api/v1`
- URL: `https://pdflean.com/api/v1/convert/typst`
- Auth: HTTP bearer

## Response `200`

PDF（base64）

## Other responses

- `422`: 编译错误（COMPILE_ERROR）

---

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