CONVERT API

Markdown to PDF

Publish Markdown documents as styled PDFs.

POST/v1/convert/markdownFREE+
Scope: convert:write
API usagePOST /api/pdf/v1/convert/markdown ยท x-api-key authentication
curl --request POST \
  --url /api/pdf/v1/convert/markdown \
  --header "x-api-key: $PDF_API_KEY" \
  --header "content-type: application/json" \
  --data '{"markdown": "..."}'
JavaScript / Node.js
const response = await fetch("/api/pdf/v1/convert/markdown", { method: "POST", headers: { "x-api-key": process.env.PDF_API_KEY, "content-type": "application/json" }, body: JSON.stringify({ "markdown": "..." }) });
Python
import requests
requests.post("/api/pdf/v1/convert/markdown", headers={"x-api-key": API_KEY}, json={"markdown": "..."})
PHP
$ch = curl_init("/api/pdf/v1/convert/markdown");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-api-key: " . getenv("PDF_API_KEY"), "content-type: application/json"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(["markdown" => "..."]));
Go
req, _ := http.NewRequest("POST", "/api/pdf/v1/convert/markdown", bytes.NewBufferString(`{"markdown":"..."}`))
req.Header.Set("x-api-key", os.Getenv("PDF_API_KEY"))
Playground requests use your selected key and count against the workspace quota.
Developer guide

API usage

Use your API key in the x-api-key header.

POSThttps://api.pdfapi.eu/v1/convert/markdownDirect response
curl --request POST \
  --url https://api.pdfapi.eu/v1/convert/markdown \
  --header "x-api-key: $PDF_API_KEY" \
  --header "content-type: application/json" \
  --data '{ "markdown": "..." }'
Responseapplication/pdf