Logo
POST /api/pdf/form/fill

PDF Form Filling API

Send a PDF form and the values by field name, get the filled PDF back — checkboxes ticked, totals recalculated, flattened on request. Made for applications and contracts.

  • Free plan
  • No credit card

Request

curl -X POST https://apdf.io/api/pdf/form/fill \
  -H "Authorization: Bearer TOKEN" \
  -d file="FILE_URL" \
  -d fields[0][name]="full_name" \
  -d fields[0][value]="Jane Doe" \
  -d fields[1][name]="contact" \
  -d fields[1][value]="Email" \
  -d fields[2][name]="newsletter" \
  -d fields[2][value]="true"

Send the values.
Get the form back.

Each value lands in its field, shown in the field's own format. Calculated fields such as totals are updated right after.

Before fields[] After
Full name
"Jane Doe"
Full name
Jane Doe
Contact me by
Email Phone
"Email"
Contact me by
Email Phone
Newsletter
true
Newsletter
Add flatten=1 and the answers become part of the page, so nobody can change them later.
What each field type takes
text
Any text, and an empty value clears it
checkbox
true or false, or one option of a group
radio
One of its options
combobox
One option, any text if it is editable
listbox
One option, or a list if multi-select
signature
Not fillable, like buttons and read-only fields

No more retyping.

Keep the PDF forms your customers, partners and authorities expect, and fill them from the data you already have.

Prefilled applications

Put the name, address and plan you already know into an application, so your customer only adds the rest.

Official forms as they are

Fill tax, customs or HR forms published as PDFs without rebuilding them as HTML or redrawing a single box.

Order forms with totals

Fill in quantities and prices, and the form's own total fields add up the way they do in a PDF reader.

Final copies

Flatten the form before you archive or send it, so the answers are part of the page instead of editable fields.

Fill forms from anywhere.

Fill forms with the data your other tools already hold. One account and one monthly allowance behind every route.

Your code

One authenticated POST from any language. Copy-paste samples in cURL, Node.js, Python and more.

POST /api/pdf/form/fill
Open the endpoint docs
Zapier

Pick the action in any Zap and map files from earlier steps. No code and no servers to run.

Fill PDF Form
Use it in Zapier
n8n

Add the Apdf node to any workflow, on n8n Cloud or self-hosted, and chain it with your automation.

Fill PDF form
Use it in n8n
AI agents

Let Claude, ChatGPT, Gemini or your own agent run it through the MCP server, on any paid plan.

fill-pdf-form
See what agents can do

1,000 filled forms
a month. Free.

Start on the free plan and move up only when your volume does — up to 1,000,000 operations a month on Business.

  • One call is one operation, however many pages.
  • Only calls that do the work are counted.
  • Hard limits, so no surprise overage charges.
Plan PDF operations / month
Hobby Free
$0 / month
1,000
Pro
$39–$99 / month
20,000 – 60,000
Business
$149–$899 / month
100,000 – 1,000,000

Filling PDF forms, answered

Nothing is filled. You get a 422 response with an error for every field that failed, keyed by its place in your request, saying what the field expects instead, like the options of a radio or a shorter text.
The standard calculations of PDF forms, like sum, average, minimum and maximum, and simple scripted arithmetic. Fields with a custom script keep their value and are listed in calculations.unsupported, the updated ones in calculations.updated. A field you fill yourself is never overwritten.
Forms built with regular PDF form fields work. If such a form also carries an XFA version, that part is removed from the filled copy, so every PDF reader shows the values you filled. Forms that exist only as XFA are not supported.
Not through this endpoint, which fills a form with data you already have. To let people fill in a form in their browser, share it through the hosted PDF viewer and receive every submission as data.
The response contains a download URL that stays valid for 60 minutes. Store the file on your side if you need it longer.
After the API call

Your code made the PDF.
Then it went dark.

Opened, read, signed or ignored — you never see any of it. Send the PDFs you generate as personal links, and every open, page read, comment and signature comes back to your software as a webhook. Need it signed? Same link. Same account, same API key, one more call.

Your PDF, after sending Live
document:loaded CFO
page:read p4 · 38s
signature:signed 11:48

API · Webhook · MCP

Stop typing
into PDF forms.