PDF Generation
Generate Multiple PDFs (Batch)
Generate multiple PDFs from different templates in a single API call with detailed result tracking
POST
Generate Multiple PDFs (Batch)
Documentation Index
Fetch the complete documentation index at: https://docs.curatepdf.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Generate PDFs Batch endpoint allows you to create multiple PDF documents from different templates in a single API call. This is perfect for scenarios where you need to generate many documents at once, such as bulk invoice processing, mass certificate generation, or report batching.Each PDF in the batch is processed individually with detailed success/failure tracking. Partial success is supported - some PDFs can succeed while others fail.
Key Features
Bulk Processing
Multiple TemplatesGenerate PDFs from different templates in a single request, each with unique data and filenames.
Detailed Results
Individual TrackingGet detailed success/failure status for each PDF with specific error messages and download URLs.
Partial Success
Resilient ProcessingIf some PDFs fail, successful ones are still generated and available for download.
Efficiency
Optimized PerformanceProcess multiple PDFs in a single request.
Request Structure
The request body is a direct array of PDF generation requests. Each item has the same structure as the single PDF endpoint.Basic Batch Request
Mixed Template Batch
Response Structure
The response includes detailed results for each PDF generation attempt, plus summary statistics.Successful Batch Response
Partial Success Response
Authorizations
API key for accessing the Docurate PDF API
Body
application/json
Minimum array length:
1Example:
[
{
"templateId": "template_123",
"data": {
"name": "John Doe",
"company": "Acme Corp"
},
"filename": "document1.pdf"
},
{
"templateId": "template_456",
"data": {
"name": "Jane Smith",
"department": "Marketing"
},
"filename": "document2.pdf"
}
]
Generate Multiple PDFs (Batch)