Saved templates
Use [[var:invoice-template-html]] to load familiar HTML templates for dynamic content.
Load a saved HTML template with [[var:invoice-template-html]], use saved CSS with [[var:invoice-template-css]], and pass JSON data into the template to generate clean PDF files for reports, quotes, certificates, invoices, and workflow-generated documents.
/api/utilities/html-to-pdf
POST /api/utilities/html-to-pdf
Authorization: Bearer ns_live_...
// Direct HTML
{
"html": "<h1>Project Report</h1><p>Hello [[customer.name]]</p>",
"css": "body { font-family: sans-serif; color: #10211f; }",
"data": {
"customer": { "name": "Acme Inc" },
"report": { "title": "Q2 Summary" }
},
"page_size": "A4",
"orientation": "portrait"
}
// Saved variables
{
"html": "[[var:invoice-template-html]]",
"css": "[[var:invoice-template-css]]",
"data": {
"customer": { "name": "Acme Inc" },
"report": { "title": "Q2 Summary" }
},
"page_size": "A4",
"orientation": "portrait"
}
Each tool follows the same platform contract: bearer auth, JSON requests, predictable responses, action usage tracking, and operational visibility.
Use [[var:invoice-template-html]] to load familiar HTML templates for dynamic content.
Use [[var:invoice-template-css]] to apply reusable styling.
Return download URLs, signed URLs, optional base64, size, and page count.
Choose page size, orientation, margins, and whether files expire.
CSS sanitization, file limits, and image validation protect the service.
{
"success": true,
"data": {
"download_url": "https://app.nisastack.com/files/download/...",
"signed_url": "https://files.nisastack.com/...",
"size_bytes": 123456,
"page_count": 2
}
}
Start with 100 free actions per month. No card required.