HTML to PDF
Hundreds of certificates from a single template
Send the template once along with the participant list; get everything back in a ZIP.
The problem
Generating certificates one by one is slow, expensive and error-prone when an event has hundreds of participants.
The solution
The batch endpoint takes an HTML template with placeholders and up to 500 items. Each item becomes a PDF, with an automatic discount from 10 items and a single ZIP download.
How it works
Bulk certificates
Create the template
HTML with placeholders like {{name}} and {{course}}.
Send the batch
POST /batch with the template and one item per participant.
Download the ZIP
When the batch finishes, download all the certificates at once.
- Up to 500 documents per batch
- 5% to 20% discount
- One ZIP with everything
curl -X POST 'https://api.respawntech.dev/v1/tools/document/pdf/convert' \
-H "X-API-Token: $RESPAWN_API_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"html": "<h1>Fatura #001</h1><p>Total: R$ 199,90</p>",
"format": "pdf",
"page_size": "A4",
"webhook_url": "https://seu-app.com/webhooks/pdf"
}'FAQ
Frequently asked questions
Can I name each file?
Yes. Provide file_name on each item or a file_name_template on the batch.
What if some items fail?
The batch completes as partially failed; the ZIP contains the generated documents and you can reprocess the ones that failed.
Start integrating today
Create your account, generate a token and make your first call in a few minutes.