Skip to content

List form fields

POST
/v1/pdf/forms/fields
curl -H "X-Api-Key: $KEY" -F files=@form.pdf \
http://localhost:9027/v1/pdf/forms/fields

Lists a PDF’s form fields with their kinds, pages and values.

Media typemultipart/form-data
object
files
required

The PDF whose form fields to list.

string format: binary

The form fields

Media typeapplication/json
Array<object>

One form field, as /v1/pdf/forms/fields lists them.

object
kind
required

text, checkbox, radio, choice, signature or button.

string
name
required

Fully qualified name, such as customer.name.

string
options
required
Array<string>
page
required

1-based page of the first widget.

integer format: int32
value
string | null

Example generated

[
{
"kind": "example",
"name": "example",
"options": [
"example"
],
"page": 1,
"value": "example"
}
]

The request is wrong

Media typeapplication/json

The JSON body of every error response.

object
error
required

A stable, machine-readable kind.

string
message
required

What went wrong, for a person.

string

Example

{
"error": "invalid_request",
"message": "unknown step 'teleport'"
}

Not supported in this version

Media typeapplication/json

The JSON body of every error response.

object
error
required

A stable, machine-readable kind.

string
message
required

What went wrong, for a person.

string

Example

{
"error": "invalid_request",
"message": "unknown step 'teleport'"
}