REST API + MCP

PDF form filling
for AI agents.

Pagewrite maps form fields, writes answers into the PDF, and returns field errors your agent can fix.

IRS Form 1040Filled sample
Form 1040 filled with sample data: Maria L. Santos, 480 Market Street, Newark, NJ 07102, with Single selected.
Sample data · original layoutView full form

Why use it with an LLM?

Connect your agent.

Upload → inspect fields → fill → download

# Shell + jq · replace the key and PDF path
API=https://pagewrite.dev/api/forms
KEY=cnk_…
form_id=$(curl -fsS "$API" -H "X-API-Key: $KEY" \
  -F "pdf=@housing_form.pdf" | jq -er '.form_id')

# Inspect the actual field IDs, labels and constraints
curl -fsS "$API/$form_id/fields" -H "X-API-Key: $KEY"
# Create values.json: {"values":{"FIELD_ID_FROM_SCHEMA":"VALUE"}}
curl -fsS "$API/$form_id/fill" -H "X-API-Key: $KEY" \
  -H "Content-Type: application/json" --data-binary @values.json

# Check the returned errors and validation before downloading
curl -fsS "$API/$form_id/download" -H "X-API-Key: $KEY" -o filled.pdf

New features and supported forms.

From ML Boost. Privacy · Unsubscribe by email.

Filled form · sample data