POST /v1/documents/render
POSTPrimary PDF generation method. Accepts HTML, CSS and render options. Returns a ready document or a link to it.
Request Headers
Authorization: Bearer <api_key> Content-Type: application/json
Request Body
{
"html": "<!doctype html><html>...</html>",
"options": {
"pageSize": "A4",
"landscape": false,
"printBackground": true,
"margin": {
"top": "12mm",
"right": "12mm",
"bottom": "12mm",
"left": "12mm"
}
}
}
