Detect a template’s fillable fields

View as Markdown
Enumerates the fillable fields in a `pdf-form` template, with the page geometry to draw them on. The response is `{ fields, schema, pageBoxes, pageCount, detected, templateHash }`. Each field carries its name, type, label, page and bounding box — the names you see here are exactly the keys `values` takes on [POST /v1/fill](https://docs.cloudraker.com/api/cloud-raker-api/capabilities/fill). Save the curated `fields` and the `templateHash` onto a fill config to fix the schema for every run. If the PDF carries no form fields of its own, they are detected from the page instead and `detected` says so. <Note> Idempotent, but the first call on a template can be slow while the document is analyzed. Later calls reuse that result and return promptly. </Note> **Learn more:** [Form filling guide](https://docs.cloudraker.com/capabilities/fill)

Authentication

AuthorizationBearer

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

Path parameters

idstringRequired>=1 character

Response

Field inventory, values schema and page geometry.
fieldslist of objects
schemamap from strings to any

A JSON Schema describing the values object the fields accept.

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.
templateHashstring

sha256 of the prepared template bytes — save it with the fields to spot a stale curation.

Errors

409
Conflict Error
413
Content Too Large Error
422
Unprocessable Entity Error
429
Too Many Requests Error