Inkspan › cURL
Use the Inkspan /v1/generate/template endpoint to generate a PDF from a template in cURL. It runs as a managed API — no headless-browser infrastructure, fonts, or scaling to maintain. Authenticate with your API key and send a single POST request.
curl -X POST https://api.inkspan.dev/v1/generate/template \
-H "X-API-Key: ink_live_..." \
-H "Content-Type: application/json" \
-d '{"template":"<h1>{{name}}</h1>","data":{"name":"Ada"}}' --output out.pdf
X-API-Key header.Related: generate a PDF from HTML · convert Markdown to PDF · merge PDF files