DocuStream
Bulk PDF Generation API

Generate Thousands of PDFs in One API Call

DocuStream's bulk generation endpoint accepts an array of data records and returns a signed URL for every PDF — in parallel, at scale.

Bulk PDF generation in one request

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: '...' }, ...]

High-volume document workflows powered by DocuStream

🧾

Monthly invoices

Run your billing cycle and generate all customer invoices in one API call. Store or email each PDF automatically.

🏅

Certificates at scale

Issue training completion or graduation certificates to hundreds of recipients in seconds — each one personalized.

💵

Payslips

Generate employee payslips for your entire company every pay period without manual exports or spreadsheet gymnastics.

📢

Mail merges

Replace legacy mail-merge tooling with a modern API. Inject data from any source and deliver PDFs via signed URLs.

📦

Shipping labels & packing slips

Generate all documents for a fulfillment run in one batch. Integrate directly with your order management system.

📊

Periodic reports

Produce client-facing reports, statements, or dashboards as PDFs on a schedule — triggered by a cron job or webhook.

Why teams choose DocuStream for bulk PDF generation

Parallel rendering

PDFs are generated concurrently, not sequentially — so a batch of 500 documents takes roughly the same time as generating 10.

☁️

Automatic cloud storage

Every PDF is stored in S3-compatible storage and accessible via time-limited signed URLs. No extra infrastructure needed.

📧

Email each recipient

Pair bulk generation with DocuStream's email endpoint to send each PDF to its recipient automatically in the same workflow.

🔑

Simple API key auth

One API key, one endpoint. No complex OAuth or SDK setup. Start generating in minutes.

Ready to generate PDFs at scale?

Start free — 10 PDFs per month on the free plan. Upgrade to Starter, Pro, or Enterprise as your volume grows.

Get started free