Generate Certificate PDFs from REST API Automatically
Send data via REST API and receive certificates programmatically
Get Started FreeThe Problem
Building certificate generation into your REST API-powered app requires significant development time. You need rendering, formatting, PDF generation...
How It Works
Design Your Template
Use our drag-and-drop editor to create your certificate layout with text, charts, tables, and your branding.
Configure REST API
Get your API endpoint and authentication. Send data as JSON to generate documents.
Generate Certificates on Demand
Each request fills your template and returns a personalized certificate pdf, ready to download.
Calling the API for certificates
POST to /api/v1/documents with a templateId and a data object, using an API key in the Authorization header. Your application keeps its own logic, and the design stays in a template that a non-developer can edit without a deploy.
Field keys in the data object match the keys in your template. The API is included on every plan, and generated documents count toward the same monthly limit as any other certificate.
Example: REST API data in a certificate template
You match each value to a placeholder once, and it applies to every document after that.
| Your data | Template placeholder |
|---|---|
| "recipientName" in the JSON data object | {{recipientName}} |
| "courseTitle" in the JSON data object | {{courseTitle}} |
| "completionDate" in the JSON data object | {{completionDate}} |
| "instructor" in the JSON data object | {{instructor}} |
What to check before issuing certificates in bulk
Names are the risk. Test the template with your longest name and with accented or non-Latin characters before you run a whole cohort, and make sure the font you chose covers them. Reissuing a misspelled certificate costs far more than the check.
Certificates can also be made verifiable. Diro can place a QR code on each one that opens a public page confirming the credential ID, issue date, and document type, without exposing the recipient's raw data.
Popular Use Cases
Course Completion
Issue certificates when courses are finished
Event Attendance
Generate certificates for workshop participants
Achievement Awards
Create award certificates automatically
What You Can Do
- Bulk generation from a whole list
- QR codes that link to a public verification page
- Landscape and portrait page sizes
- Background images and custom fonts
- Download all as a ZIP of PDFs
Start From a Template
Frequently Asked Questions
How do I connect REST API to Diro?
Use Diro's REST API. Send a POST request with your template ID and data. Get back a certificate URL instantly.
How fast are certificates generated?
Most certificates are generated in under 2 seconds. Complex documents with many charts may take up to 5 seconds.
Can I customize the certificate design?
Yes! Add your logo, brand colors, custom fonts, charts, tables, and more. The visual editor gives you full control over the design.
How many certificates can I generate?
The Free plan includes 50 certificates per month. Starter ($9/mo) includes 150, Pro ($29/mo) includes 500, and Enterprise ($99/mo) includes 5,000.