> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usenexio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Read a form's boxes

> Reads a form that has no document type: a PDF with fillable boxes, a PDF whose questions are printed flat into the page, or a Word (.docx) application, held as a ready Document under app_id, a filed Records document or a conversation attachment: every box it can take, with the words the page prints beside it, and each box's answer on last year's completed copy when prior is a fillable PDF. Signature boxes are never listed. A scanned or XFA form answers fillable false with the reason. Reads only.



## OpenAPI

````yaml /openapi.generated.json post /api/v1/documents/forms/inspect
openapi: 3.1.0
info:
  description: >-
    Public API reference. Generated from apps/engine/openapi.yaml by make
    docs-openapi-write. Do not edit.
  title: Nexio platform API
  version: '1'
servers:
  - url: https://api.usenexio.com
security: []
tags:
  - name: Access
  - name: Catalog
  - name: Conversations
  - name: Documents
  - name: Engines
  - name: Events
  - name: Feedback
  - name: Graph
  - name: Records
  - name: Roadmap
  - name: Runs
  - name: Webhooks
  - name: accounts
  - name: actions
  - name: activities
  - name: activity-feed
  - name: attachments
  - name: audit
  - name: benefit-plans
  - name: billing-transactions
  - name: carrier_documents
  - name: certificate-holders
  - name: certificate_drafts
  - name: certificates
  - name: change_feed
  - name: claims
  - name: classes
  - name: codes
  - name: commission_facts
  - name: connections
  - name: contacts
  - name: contingencies
  - name: conversations
  - name: customer
  - name: customer_contacts
  - name: deals
  - name: dependents
  - name: document_extractions
  - name: documents
  - name: drivers
  - name: eforms
  - name: employees
  - name: events
  - name: feature_requests
  - name: form-templates
  - name: invoices
  - name: leads
  - name: line_schedules_other
  - name: loss_history
  - name: machines
  - name: markets
  - name: motor-carriers
  - name: notes
  - name: opportunities
  - name: opportunity-signals
  - name: pages
  - name: personal_lines_detail
  - name: placement_choices
  - name: placement_feedback
  - name: placements
  - name: policies
  - name: policy_parties
  - name: policy_personnel
  - name: policy_transactions
  - name: premium_rows
  - name: procedures
  - name: proposals
  - name: quote_comparisons
  - name: quotes
  - name: records
  - name: register-views
  - name: renewal-entries
  - name: risk_review_choices
  - name: rollups
  - name: seats
  - name: sec-filings
  - name: service_agreements
  - name: submissions
  - name: suspenses
  - name: tasks
  - name: umbrella_underlying
  - name: underwriting_questions
  - name: uploaded_documents
  - name: vehicles
  - name: workflows
paths:
  /api/v1/documents/forms/inspect:
    post:
      tags:
        - Documents
      summary: Read a form's boxes
      description: >-
        Reads a form that has no document type: a PDF with fillable boxes, a PDF
        whose questions are printed flat into the page, or a Word (.docx)
        application, held as a ready Document under app_id, a filed Records
        document or a conversation attachment: every box it can take, with the
        words the page prints beside it, and each box's answer on last year's
        completed copy when prior is a fillable PDF. Signature boxes are never
        listed. A scanned or XFA form answers fillable false with the reason.
        Reads only.
      operationId: documentsInspectForm
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DocumentFormInspectRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentsFormInspectJSON'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Bad Request
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Forbidden
        '404':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Not Found
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Unprocessable Entity
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Internal Server Error
        '503':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Service Unavailable
      security:
        - bearer: []
components:
  schemas:
    DocumentFormInspectRequest:
      additionalProperties: false
      properties:
        app_id:
          description: The app whose Documents hold the form, as on the Documents routes.
          type: string
        prior:
          $ref: '#/components/schemas/DocumentFormRef'
          description: >-
            Last year's completed copy of the same form; each box's answer on it
            comes back as prior_year.
        ref:
          $ref: '#/components/schemas/DocumentFormRef'
          description: The form to read.
        subject:
          description: >-
            Optional Records record reference the form is for. With it, known
            names each box the subject's Records facts answer.
          type: string
      required:
        - app_id
        - ref
      type: object
    DocumentsFormInspectJSON:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/DocumentFormInspection'
      required:
        - data
      type: object
    Problem:
      additionalProperties: false
      properties:
        code:
          description: >-
            The stable machine-readable error code, UPPER_SNAKE_CASE, one
            meaning forever.
          enum:
            - INVALID_ARGUMENT
            - UNAUTHENTICATED
            - CAPABILITY_DENIED
            - NOT_VISIBLE_OR_ABSENT
            - IDEMPOTENT_REQUEST_IN_FLIGHT
            - ETAG_MISMATCH
            - VALIDATION_FAILED
            - IDEMPOTENCY_KEY_PAYLOAD_MISMATCH
            - SOURCE_UNAVAILABLE
            - RATE_LIMITED
            - INTERNAL
            - DEADLINE_EXCEEDED
            - UNAVAILABLE
            - CLIENT_CLOSED_REQUEST
          type: string
        detail:
          description: A human-readable sentence about this occurrence.
          type: string
        details:
          description: >-
            Structured detail for the reason (for example which owner selection
            rule failed). A Records refusal names its reason code in
            details.reason; a projection refusal (SOURCE_UNAVAILABLE) also names
            its closed subtype in details.subtype (admission_pending, no_build,
            binding_changed, agency_admission_unbounded,
            authority_coordinates_changed, guard_absent, derivation_unaccepted),
            and only admission_pending, which clears by itself, also carries
            details.retry_after_ms, equal to retry_after_ms and the Retry-After
            header.
        errors:
          description: Each invalid parameter, for INVALID_ARGUMENT.
          items:
            $ref: '#/components/schemas/ProblemError'
          type:
            - array
            - 'null'
        instance:
          description: The request path this occurrence answered.
          type: string
        reason:
          description: >-
            The finer cause within the code, UPPER_SNAKE_CASE (for example
            SCOPE_UNAVAILABLE under CAPABILITY_DENIED).
          type: string
        request_id:
          description: The request id, as echoed in the Nexio-Request-Id response header.
          type: string
        retry_after_ms:
          description: When a retry may succeed, the wait before it.
          format: int64
          type: integer
        status:
          description: The HTTP status code.
          format: int64
          type: integer
        title:
          description: The HTTP status phrase.
          type: string
        type:
          description: A URI naming the problem type, derived from the code.
          type: string
      required:
        - type
        - title
        - status
        - code
        - request_id
      type: object
    DocumentFormRef:
      additionalProperties: false
      properties:
        attachment:
          description: >-
            A conversation attachment holding the form: its id, its doc:
            address, or its file name as the conversation lists it. Read as the
            caller, inside conversation only; a scoped key also needs
            conversations:use.
          type: string
        conversation:
          description: >-
            The conversation the attachment was sent in. Required with
            attachment.
          type: string
        document:
          description: A ready Document of the org, under app_id, holding the form.
          type: string
        record:
          description: >-
            A filed Records document holding the form, by its Records id, read
            through the Records documents content route as the caller.
          type: string
        template:
          description: >-
            An active shared carrier template id, admitted under the carrier
            library grant.
          type: string
      type: object
    DocumentFormInspection:
      additionalProperties: false
      properties:
        facts_unread:
          description: >-
            With subject: why the subject's Records facts were not read, so no
            box is answered from Records.
          type: string
        fields:
          items:
            $ref: '#/components/schemas/DocumentFormField'
          type:
            - array
            - 'null'
        fillable:
          type: boolean
        format:
          description: >-
            What the form is: a PDF with fillable boxes, a PDF whose questions
            are printed flat into the page, or a Word application.
          enum:
            - pdf_acroform
            - pdf_flat
            - docx
          type: string
        known:
          description: >-
            With subject: each box the subject's Records facts answer, with the
            value a fill writes there.
          items:
            $ref: '#/components/schemas/DocumentFormAnswer'
          type:
            - array
            - 'null'
        license:
          description: >-
            The standard the form is, read from its own bytes (acord for an
            ACORD form); absent when it is none the platform names.
          type: string
        page_count:
          format: int64
          type: integer
        reason:
          description: >-
            Why the form cannot be filled: xfa, encrypted, unreadable,
            unplaced_fields, printed_signature (a signed copy whose signature is
            printed into the page) or no_questions.
          type: string
        reason_detail:
          description: >-
            For unreadable: the PDF reader's own words for what it refused in
            the file.
          type: string
        source_sha256:
          type: string
      required:
        - fillable
        - page_count
        - fields
      type: object
    ProblemError:
      additionalProperties: false
      properties:
        location:
          description: Where the input was, for example query.limit.
          type: string
        message:
          type: string
        value: {}
      required:
        - message
      type: object
    DocumentFormField:
      additionalProperties: false
      properties:
        existing:
          description: >-
            The answer the form already holds in this box: a Word form's, or the
            applicant's own on a signed copy attached in the conversation
            (checked for a checkbox, unchecked for a box of a choice answered
            with another box). A fill keeps it, and it is not asked again.
          type: string
        kind:
          description: text, checkbox, dropdown or radio.
          type: string
        label:
          description: >-
            The question as the page prints it, or the box name when the page
            prints nothing near it.
          type: string
        max_length:
          format: int64
          type: integer
        multiline:
          type: boolean
        name:
          description: The box's name; an answer names it exactly.
          type: string
        option:
          description: 'For a checkbox: the choice word printed beside it.'
          type: string
        options:
          items:
            type: string
          type:
            - array
            - 'null'
        page:
          format: int64
          type: integer
        prior_year:
          description: >-
            The answer on last year's copy, a string or a boolean, when prior
            was sent.
      required:
        - name
        - kind
        - label
        - page
      type: object
    DocumentFormAnswer:
      additionalProperties: false
      properties:
        field:
          description: The box name exactly as inspect listed it.
          type: string
        from:
          description: >-
            The record the value was read from, or the producer's words.
            Required: a value with no origin is a guess.
          type: string
        source:
          description: account, prior_year or producer.
          type: string
        value:
          description: 'What the box prints: a string, or a boolean for a checkbox.'
      required:
        - field
        - value
        - source
        - from
      type: object
  securitySchemes:
    bearer:
      description: The org's platform API key.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.