DocuStream's bulk generation endpoint accepts an array of data records and returns a signed URL for every PDF — in parallel, at scale.
Pass an array of variable records alongside your template ID. DocuStream generates all PDFs in parallel and returns a signed URL per record — no polling, no queues to manage.
// Bulk-generate PDFs — one request, multiple documents
const response = await fetch('https://your-docustream.app/api/pdfs/generate/bulk', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'YOUR_API_KEY',
},
body: JSON.stringify({
templateId: 'tmpl_invoice_v2',
records: [
{ recipientName: 'Alice Johnson', amount: '$340.00', invoiceNo: 'INV-001' },
{ recipientName: 'Bob Martinez', amount: '$510.00', invoiceNo: 'INV-002' },
// ... hundreds more
],
}),
});
const { pdfs } = await response.json();
// pdfs → [{ recordIndex: 0, signedUrl: '...' }, { recordIndex: 1, signedUrl: '...' }, ...]Run your billing cycle and generate all customer invoices in one API call. Store or email each PDF automatically.
Issue training completion or graduation certificates to hundreds of recipients in seconds — each one personalized.
Generate employee payslips for your entire company every pay period without manual exports or spreadsheet gymnastics.
Replace legacy mail-merge tooling with a modern API. Inject data from any source and deliver PDFs via signed URLs.
Generate all documents for a fulfillment run in one batch. Integrate directly with your order management system.
Produce client-facing reports, statements, or dashboards as PDFs on a schedule — triggered by a cron job or webhook.
PDFs are generated concurrently, not sequentially — so a batch of 500 documents takes roughly the same time as generating 10.
Every PDF is stored in S3-compatible storage and accessible via time-limited signed URLs. No extra infrastructure needed.
Pair bulk generation with DocuStream's email endpoint to send each PDF to its recipient automatically in the same workflow.
One API key, one endpoint. No complex OAuth or SDK setup. Start generating in minutes.
Start free — 10 PDFs per month on the free plan. Upgrade to Starter, Pro, or Enterprise as your volume grows.
Get started free