---
title: "Fill form fields in a PDF document"
method: POST
path: "/pdf/form/fill/"
tags: ["PDF", "form"]
---

# Fill form fields in a PDF document

`POST /pdf/form/fill/`

Returns a modified PDF document with filled form fields. A subset of fields can be filled.

## Response `201`

PDF Document filled successfully

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Internal server error

## Changes

- **2024-09-06** `a5a51ce2a2fd` — 1 info
  - added the new optional request property `options/flattenForm`
- **2024-06-03** `29e892d0949b` — 1 breaking, 1 warning, 1 info
  - removed `subschema #1, subschema #2, subschema #3, subschema #4` from the `options/fields/items/` request property `anyOf` list
  - removed the request property `options/fields/items/name`
  - added `subschema #1, subschema #2, subschema #3, subschema #4` to the `options/fields/items/` request property `anyOf` list
- **2024-06-03** `d292b8ba831c` — 1 info
  - the request property `options` became optional
- **2024-05-31** `f53cbf3e2593` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/onedoclabs/apis/fileforge-api/changes/pdf/form/fill/post.md)

---

[API](https://skmtc.dev/onedoclabs/apis/fileforge-api.md) · [All operations](https://skmtc.dev/onedoclabs/apis/fileforge-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/onedoclabs/fileforge-api/revisions/a5a51ce2a2fd/schema)
