Rendering

Render page as PDF (HTML pipeline)

Returns application/pdf bytes using the HTML + headless Chrome pipeline, regardless of the template's rendererType. Same draft/cache rules and tweaks as POST /api/render. Requires API token.

POST/api/render/html-pdf

Request body

PropertyTypeRequiredDescription
pageIdstringYes
templateIdstringNo
draftbooleanNo
tweaksobjectNo
emojiTypestringNo

Responses

200

application/pdf body

400

Invalid body

401

Missing or invalid API token

404

Page or template not found

Request
curl -X POST "https://bannx.com/api/render/html-pdf" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{"pageId":"string","templateId":"string","draft":false,"tweaks":null,"emojiType":"string"}'
Response
// Binary image (image/png, image/svg+xml, or image/webp)
// Or data URL for inline format