Documentation

PDF API Hub Developer Docs

Clear and simple docs for integrating with our PDF API. Only documented fields are shown—everything else is configured in the app/editor.

Video Tutorials

Create Account & API Key
Create Account & API Key
Signup, verify, generate API key.
Map Fields in the PDF Editor
Map Fields in the PDF Editor
Upload template, detect & map fields.
Watermark Setup & API Button
Watermark Setup & API Button
Configure watermark; copy cURL from UI.

API Basics

Authentication
All requests require an API key

Send your API key in the header:

Authorization: Bearer YOUR_API_KEY
Base URL
All endpoints are relative to this

Use this base url for all your requests:

https://api.prefillpdf.com
POST
/fill-pdf
Fill a PDF template with structured data, AcroForm fields, and image placeholders (new!).

Supports three sections: data (custom fields),form-fields (PDF AcroForm fields), and images (new – for logos, signatures, QR codes).

Request body (application/json)

{
  "template_id": "tmpl_123",
  "data": {
    "field-bizname": "Acme LLC"
  },
  "form-fields": {
    "dba-name": "Acme DBA",
    "legal-business-name": "Acme LLC"
  },
  "images": {
    "logo": "https://example.com/logo.png",
    "signature": "https://example.com/signature.png"
  }
}

cURL

curl -X POST "https://api.prefillpdf.com/fill-pdf" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template_id": "tmpl_123",
    "data": { "field-bizname": "Acme LLC" },
    "form-fields": {
      "dba-name": "Acme DBA",
      "legal-business-name": "Acme LLC"
    },
    "images": {
      "logo": "https://example.com/logo.png",
      "signature": "https://example.com/signature.png"
    }
  }'

More examples (auto-generated)

Ready to Get Started?

Start filling PDFs, adding watermarks, and automating your workflow in minutes.

Getting Started with PDF API Hub

Automate document workflows with ease. Generate PDFs, fill forms, insert images, and watermark files all from a simple API.

Popular Use Cases

  • ✔️ Automated invoices & receipts
  • ✔️ Contracts & legal agreements
  • ✔️ E-signatures & logos in templates
  • ✔️ Watermarked PDFs for secure sharing

Frequently Asked Questions

What is PDF API Hub?

PDF API Hub is a developer-friendly service that lets you fill PDF forms, add text, insert images, and apply watermarks programmatically using a simple REST API.

How do I authenticate requests?

All API requests require an API key. You can generate one inside your dashboard after creating an account. Send it in the header: `Authorization: Bearer YOUR_API_KEY`.

What endpoints are available?

Currently, we provide `/fill-pdf` for filling templates with data and images, and `/watermark` for applying text watermarks to PDF files. More endpoints are coming soon.

Do you support images and signatures?

Yes. The `images` object in the `/fill-pdf` endpoint lets you insert logos, signatures, and QR codes directly into your templates.

Is there a free trial?

Yes! You can sign up for free and receive trial credits to test the API before upgrading to a paid plan.

Ready to build with PrefillPDF?

Get your API key and start automating documents today.