API Integration
Connect document generation to your application.
Integrate DraftPrism with existing applications and automate branded document generation through a secure REST API. Works with HTML, DOCX and supported Canva templates according to your plan.
REST API · Illustrative preview
POST /api/v1/generations
{
"templateId": "tmpl_loan",
"data": {
"customerName": "Asha Mehta",
"agreementNumber": "LA-20481",
"loanAmount": 1250000
},
"mode": "ASYNC"
}What you can do
- API key authentication
- Template-based generation
- Dynamic data mapping
- Asynchronous bulk generation
- Job status monitoring
- Document retrieval
Paid plans include REST API access according to their quotas. Enterprise capacity is configurable.
Prefer asynchronous generation for production workloads and poll for completion.
Illustrative request · adapt to OpenAPI at /api/v1/docs
{
"templateId": "template_123",
"data": {
"employee_name": "John Smith",
"employee_id": "EMP001",
"designation": "Manager"
},
"outputFormat": "PDF",
"executionMode": "ASYNC"
}Build with the DraftPrism API
Create an API key in the product and generate documents from your application.