Quickstart
Make an API key, fill your first PDF with one call and read the result for each field.
Send a PDF and the values you want on it. AppliFlo finds the fields, fits each value and returns the filled PDF with a result for every field.
Before you start
API keys come with the Business plan. Keep your key on your server: anyone with it can act for your workspace.
Make an API key
An owner or admin opens Settings, API keys on appliflo.com and chooses Create key. For this quickstart, tick Read and Create drafts. Copy the key when it is shown: it is shown once. Keys start with aflo_live_.
Save it in your shell so the samples below can read it:
export APPLIFLO_API_KEY="paste-your-key-here"Fill a PDF in one call
Send the PDF in the multipart field file and your values in values, a JSON object keyed by the label printed next to each box. Add an Idempotency-Key header so a retry never does the work twice.
curl -X POST https://appliflo.com/api/v1/fill \
-H "Authorization: Bearer $APPLIFLO_API_KEY" \
-H "Idempotency-Key: quickstart-0001" \
-F "file=@rental-application.pdf" \
-F 'values={"Applicant full name":"Alexandra Whitfield-Harrington","Move-in date":"2026-08-01"}'Read the results
The reply has the filled PDF as base64 in data.pdf_base64 and one entry per field in data.results:
{
"success": true,
"data": {
"pdf_base64": "JVBERi0xLjcK...",
"results": [
{ "field_id": "field_12", "status": "filled", "rendered_text": "Alexandra Whitfield-Harrington", "font_size": 8, "lines": 1 },
{ "field_id": "field_19", "status": "formatted", "rendered_text": "01/08/2026" },
{ "field_id": "field_31", "status": "overflowed", "rendered_text": "...", "font_size": 6, "lines": 3 }
],
"groups": [],
"warnings": [],
"ai_pages": { "used": 2, "limit": 1000, "remaining": 998, "exhausted": false, "resets_at": "2026-12-01T00:00:00.000Z" }
}
}status | What it means |
|---|---|
filled | Written as sent. font_size and lines say how it was fitted. |
formatted | Changed to the form's format first, such as a date. rendered_text is what was written. |
overflowed | Too long for the box even at the smallest size. It was not written. |
skipped | Not written. reason says why: empty, invalid-format, invalid-value, unsupported-type or not-needed. |
Check for overflowed and skipped before you pass the PDF on. Fields AppliFlo was unsure about are listed in data.warnings and left empty rather than guessed. Choice questions, such as a set of tick boxes, report in data.groups, and unsure ones in data.group_warnings.
data.ai_pages shows the workspace's AI pages for this month.
Next
- Upload, detect and fill step by step, to see each field before you fill it.
- Send a document for signature.
- Use AppliFlo from a coding agent with the MCP server.