Skip to main content
POST

Authorizations

x-api-key
string
header
required

API key issued from your Blink PDF account, prefixed bp_. Send it in the x-api-key header on every request. The documentation and health endpoints are exempt.

Headers

x-idempotency-key
string

Optional client-supplied idempotency token. When present, usage metering deduplicates on (key, user_id) so retries with the same body do not double-count. Reusing the key with a different request body returns 409 idempotency_conflict (no PDF, no usage headers).

Body

values
object
required

Fill-by-name map. Keys are inspect names. Tx and Ch are strings, checkbox is boolean, radio is string or null. Omitted names stay unchanged. false is a value.

pdf
string<byte>

AcroForm PDF bytes, Base64-encoded. Does not store the PDF. XOR with templateId.

templateId
string

Stored template id from POST /v1/templates. XOR with pdf. Same store as GET /v1/templates/:id. Unknown, deleted, or foreign is 404.

flatten
boolean

Omit flatten or set it false. Widgets stay interactive with written /AP. flatten: true stamps appearances and strips the form. Not the default. Password fields still do not flatten in the clear.

Response

Filled PDF. Appearances are written. Preview and print show the values. Streams the bytes and does not keep the output. Default keeps /AcroForm and widgets. flatten: true stamps appearances, strips widgets, and still shows the values. Overlay warnings ride X-Fill-Warnings (empty when every appearance fit). Content-Disposition is {PDF /Title or form}-filled.pdf. Records one unit

The response is of type file.