Turn structured data into beautiful invoices, receipts, certificates, reports, and contracts. A simple REST API — no HTML, no Chrome, no hassle.
Send a POST request with your template type and JSON data. Get back a polished PDF. That's it.
curl -X POST https://getdocforge.net/api/generate-pdf \
-H "Authorization: Bearer dk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"template": "invoice",
"data": {
"company": { "name": "Acme Inc" },
"client": { "name": "John Doe" },
"invoice": { "number": "INV-001",
"date": "2026-06-01" },
"items": [
{ "description": "Web Design",
"quantity": 10, "unit_price": 75 }
],
"tax_rate": 10
}
}' --output invoice.pdf
const res = await fetch(
"https://getdocforge.net/api/generate-pdf",
{
method: "POST",
headers: {
"Authorization": "Bearer dk_your_api_key",
"Content-Type": "application/json"
},
body: JSON.stringify({
template: "invoice",
data: {
company: { name: "Acme Inc" },
client: { name: "John Doe" },
invoice: { number: "INV-001", date: "2026-06-01" },
items: [{ description: "Web Design",
quantity: 10, unit_price: 75 }],
tax_rate: 10
}
})
}
);
const blob = await res.blob();
// Save or display the PDF
import requests
res = requests.post(
"https://getdocforge.net/api/generate-pdf",
headers={
"Authorization": "Bearer dk_your_api_key",
"Content-Type": "application/json"
},
json={
"template": "invoice",
"data": {
"company": {"name": "Acme Inc"},
"client": {"name": "John Doe"},
"invoice": {"number": "INV-001",
"date": "2026-06-01"},
"items": [{"description": "Web Design",
"quantity": 10, "unit_price": 75}],
"tax_rate": 10
}
}
)
with open("invoice.pdf", "wb") as f:
f.write(res.content)
Built for developers who need reliable PDF generation without the overhead.
Powered by PDFKit — no Chrome, no Puppeteer, no heavy dependencies. PDFs generate in under 2 seconds.
Each template is designed by hand for a polished, branded look. Invoices, receipts, certificates and more.
One endpoint. Send JSON, get PDF. Works with any programming language that can make HTTP requests.
Built-in monthly quota management. Check your usage anytime via the API dashboard.
API key authentication, Vercel edge infrastructure, and 99.9% uptime SLA on paid plans.
Adding a new template is just one file. The template registry makes it trivial to ship new document types.
Five professional templates available now. More coming soon.
Itemized table with quantities, tax calculation, and payment terms.
Clean payment confirmation with PAID stamp and transaction details.
Elegant certificate with decorative border, seal, and signature lines.
Multi-page business report with cover header, metrics, and data table.
Professional legal contract with party info, clauses, and signatures.
Letterhead, packing slip, purchase order, and more templates on the way.
Start free. Upgrade when you need more. Cancel anytime.
No signup required. Try it right now in the playground.
Open Playground →