Inspect a form template's fillable fields

View as Markdown
Reads the PDF referenced by the JSON body — either `{ spaceId, fileId }` (a file in that space) or `{ fileId }` alone (an org-level template file) — detecting form fields when the document has none, and returns the field inventory with page geometry (`{ fields, pageBoxes, pageCount, detected }`). Idempotent; initial field detection can take longer, while later calls reuse the prior result. The file must be `application/pdf` and parented to `:spaceId` (when given) or to the caller’s organization (else 422 `file_ineligible`), and must have finished uploading (else 409 `file_not_ready`). Organization administrators only (denied → 403).

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

idstringRequired

Request

This endpoint expects an object.
fileIdstringRequired>=1 character
The template PDF to inspect.
spaceIdstringOptional

Space the file lives in. Omit for an organization-level template (parentType: organization).

Response

Field inventory and page geometry.
fieldslist of objects
pageBoxeslist of objects
Page size in points, one entry per page.
pageCountinteger-9007199254740991-9007199254740991
detectedboolean
True when the fields were detected rather than read from an existing AcroForm.

Errors

409
Conflict Error
422
Unprocessable Entity Error