Extract the fillable fields of a PDF or image form
POST /Platform/dtypes/extract-form-fields
Extract the fillable fields of a PDF or image form. For a visual
document -- a form to be filled. NOT for structured (tree) or text
values: their fields are already in the result; read them with
get_content.
Runs BOTH engines and merges them: real AcroForm widgets (PyMuPDF,
deterministic, no network) AND Textract vision (covers scanned PDFs and
images). Each field gets a STABLE id, a source tag (widget|vision|
both), and a normalized bbox ([x, y, w, h] in 0..1) so edit can
act on it by id.
Body parameters
ref: str. Dtype handle/hash to extract (or, in a chat, the tool_call_id of the result). An unrecognized handle is a 404.
Returns
ExtractFormFieldsResponse
handle: str. The extracted handle.fields: optional List[FormField]. Merged fields with stable ids.has_widgets: optional bool. Whether the document has real AcroForm widgets.engines: optional List[str]. Extraction engines that ran.
Example request
curl -X POST "https://api.hilus.ai/Platform/dtypes/extract-form-fields" \
-H "Authorization: Bearer $HILUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'