PDF Filler API Documentation

Simple and powerful API to fill PDF forms programmatically. Upload your PDF templates and fill them with data in seconds.

Quick Start

To get started with the PDF Filler API, you'll need an API key. Contact us to get your API credentials.

1
2
3
4
5
curl -X POST https://api.autofillpdf.com/v1/fill-pdf \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: multipart/form-data" \ -F "pdf=@template.pdf" \ -F 'data={"name": "John Doe", "email": "john@example.com", "company": "Acme Inc"}'

Authentication

All API endpoints require authentication. Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

API Reference

Fill PDF

Upload a PDF template and data to receive a filled PDF document. Currently only text fields are supported. Checkboxes, dropdowns, and signatures are in beta for business customers - contact us if you need them.

POST/api/fill-pdf

Parameters

pdf
file
The PDF template file to fill
Required
data
text
Text containing the information to fill the PDF fields. Be as descriptive as possible.
Required

Request Example

1
2
3
4
5
curl -X POST https://api.autofillpdf.com/v1/fill-pdf \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: multipart/form-data" \ -F "pdf=@template.pdf" \ -F 'data={"name": "John Doe", "email": "john@example.com", "company": "Acme Inc"}'

Response Example

1
2
3
4
5
{ "success": true, "message": "PDF filled successfully", "pdf_url": "https://api.autofillpdf.com/files/filled_123.pdf" }

Upload Template

Coming Soon

Upload a PDF template to store for later use. Returns a template ID that can be used for future fill operations.

POST/api/pdfs/upload

List Templates

Coming Soon

Retrieve a list of all your stored PDF templates.

GET/api/pdfs

Fill Stored Template

Coming Soon

Fill a previously uploaded template using its template ID.

POST/api/pdfs/{id}/fill