Skip to content
Navigation

Detect a template’s fillable fields

Enumerates the fillable fields in a pdf-form template, with the page geometry to draw them on.

The response is { fields, pageBoxes, pageCount, detected }. Each field carries its name, type, label, page and bounding box — plus maxLength, multiline and options where the widget declares them. The names you see here are exactly the keys values takes on POST /v1/fill. Save the curated fields 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.

Any PDF you can reach works here, not only a saved template — a file in one of your spaces is inspected the same way.

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.

Learn more: Form filling guide

POST
https://api.cloudraker.com/v1/templates/{id}/inspect
Try it
Path parameters
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • id
    string
    required
    minLength: 1

Returns

200

Field inventory, values schema and page geometry.

JSON
  • fields
    array of
    object
    required
    • name
      string
      required

      The field name — the key values and task submissions use.

    • type
      string
      required
    • label
      string | null
      required

      Human label, read from the form or inferred. null when neither worked.

    • page
      integer
      required

      0-based page the field sits on.

      maximum: 9007199254740991 · minimum: -9007199254740991
    • box
      object
      required

      Widget box in points, origin top-left.

      • x
        number
        required
      • y
        number
        required
      • width
        number
        required
      • height
        number
        required
    • description
      optional
      string
    • required
      optional
      boolean
    • options
      optional
      array of
      string

      Choice options (radio, dropdown, listbox).

    • maxLength
      optional
      integer

      Character cap the widget enforces — longer values are truncated on fill.

      maximum: 9007199254740991 · minimum: -9007199254740991
    • multiline
      optional
      boolean
    • section
      optional
      string

      Heading the field sits under, if any.

    • ignore
      optional
      boolean

      Curated as not-fillable.

  • pageBoxes
    array of
    object
    required

    Page size in points, one entry per page.

    • width
      number
      required
    • height
      number
      required
  • pageCount
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991
  • detected
    boolean
    required

    True when the fields were detected rather than read from an existing AcroForm.

  • schema
    optional
    map of
    unknown

    A JSON Schema describing the values object the fields accept.

  • templateHash
    optional
    string

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

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

409

The template is still uploading (file_not_ready).

413

The template exceeds the 32 MB inspect cap (template_too_large).

422

The template is not a PDF (template_not_inspectable).

429

Rate limited. The /v1 API allows at least 67 requests per minute per organization (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the Retry-After interval and retry — the error is retryable.
JSON
  • code
    rate_limited
    required
  • message
    string
    required
  • retryable
    true
    required
  • requestId
    string
    required
  • docUrl
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close