> ## 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 document type's fields

> Each field of the type with its label, type, who fills it and whether it is required. With subject, the known value of each records field read through Access, and the gaps: a field the seat may not see is a gap with reason not_visible, never filled from unredacted data.



## OpenAPI

````yaml /openapi.generated.json get /api/v1/documents/types/{key}/fields
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/types/{key}/fields:
    get:
      tags:
        - Documents
      summary: Read a document type's fields
      description: >-
        Each field of the type with its label, type, who fills it and whether it
        is required. With subject, the known value of each records field read
        through Access, and the gaps: a field the seat may not see is a gap with
        reason not_visible, never filled from unredacted data.
      operationId: documentsTypeFields
      parameters:
        - description: The document type key, for example a letter's slug.
          in: path
          name: key
          required: true
          schema:
            description: The document type key, for example a letter's slug.
            type: string
        - description: >-
            Optional Records record reference the document is about. With it the
            answer carries the known value of each records field, read through
            Access, and the gaps.
          explode: false
          in: query
          name: subject
          schema:
            description: >-
              Optional Records record reference the document is about. With it
              the answer carries the known value of each records field, read
              through Access, and the gaps.
            type: string
        - description: >-
            Policy numbers the form is for, repeatable, at most 10. Only the
            subject's own policies they match select the policies a form's
            projected facts come from; none matching leaves those facts unheld.
          explode: true
          in: query
          name: policy_number
          schema:
            description: >-
              Policy numbers the form is for, repeatable, at most 10. Only the
              subject's own policies they match select the policies a form's
              projected facts come from; none matching leaves those facts
              unheld.
            items:
              type: string
            maxItems: 10
            type:
              - array
              - 'null'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentsFieldsJSON'
          description: OK
        '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
        '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:
    DocumentsFieldsJSON:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/DocumentFields'
      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
    DocumentFields:
      additionalProperties: false
      properties:
        fields:
          items:
            $ref: '#/components/schemas/DocumentField'
          type:
            - array
            - 'null'
        filed:
          $ref: '#/components/schemas/FiledSource'
        gaps:
          items:
            $ref: '#/components/schemas/DocumentFieldGap'
          type:
            - array
            - 'null'
        known:
          items:
            $ref: '#/components/schemas/DocumentKnownValue'
          type:
            - array
            - 'null'
        source_gaps:
          items:
            $ref: '#/components/schemas/DocumentSourceGap'
          type:
            - array
            - 'null'
        subject:
          type: string
        type:
          $ref: '#/components/schemas/DocumentTypeSummary'
      required:
        - type
        - fields
        - known
        - gaps
      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
    DocumentField:
      additionalProperties: false
      properties:
        columns: {}
        enum_values:
          items:
            type: string
          type:
            - array
            - 'null'
        filled_by:
          type: string
        hint:
          type: string
        id:
          type: string
        label:
          type: string
        required:
          type: boolean
        type:
          type: string
        value:
          type: string
      required:
        - id
        - label
        - type
        - filled_by
        - required
      type: object
    FiledSource:
      additionalProperties: false
      properties:
        application:
          $ref: '#/components/schemas/FiledApplicationSource'
          description: >-
            An application filed as an email's attachment, signed or completed
            ones first, to read for the form's answers.
        document:
          description: The filing's Records id.
          type: string
        fields:
          description: The facts the filing's boxes answered.
          items:
            type: string
          type:
            - array
            - 'null'
        name:
          description: The filing's file name.
          type: string
        reason:
          description: >-
            Why the filing answered no fact: it holds no readable form boxes, or
            the filings could not be read.
          type: string
      required:
        - fields
      type: object
    DocumentFieldGap:
      additionalProperties: false
      properties:
        field:
          type: string
        reason:
          type: string
      required:
        - field
        - reason
      type: object
    DocumentKnownValue:
      additionalProperties: false
      properties:
        field:
          type: string
        provenance:
          $ref: '#/components/schemas/DocumentKnownProvenance'
        rows:
          items:
            additionalProperties:
              type: string
            type: object
          type: array
        source:
          $ref: '#/components/schemas/DocumentFieldSource'
        value:
          type: string
      required:
        - field
        - source
      type: object
    DocumentSourceGap:
      additionalProperties: false
      properties:
        field:
          type: string
        reason:
          type: string
      required:
        - field
        - reason
      type: object
    DocumentTypeSummary:
      additionalProperties: false
      properties:
        field_count:
          format: int64
          type: integer
        key:
          type: string
        kind:
          type: string
        name:
          type: string
        outputs:
          items:
            type: string
          type:
            - array
            - 'null'
        version:
          format: int64
          type: integer
      required:
        - key
        - version
        - name
        - kind
        - outputs
        - field_count
      type: object
    FiledApplicationSource:
      additionalProperties: false
      properties:
        document:
          description: The email's Records id.
          type: string
        fields:
          description: >-
            The facts its first page answered: the proposed term, when that term
            has not started.
          items:
            type: string
          type:
            - array
            - 'null'
        member:
          description: The attachment's path in the email.
          type: string
        name:
          description: The attachment's file name.
          type: string
        pages:
          description: The attachment's page count.
          format: int64
          type: integer
      required:
        - document
        - member
        - name
        - pages
        - fields
      type: object
    DocumentKnownProvenance:
      additionalProperties: false
      properties:
        from:
          type: string
        ref:
          type: string
      required:
        - from
      type: object
    DocumentFieldSource:
      additionalProperties: false
      properties:
        column:
          type: string
        derive:
          type: string
        family:
          type: string
        from:
          items:
            $ref: '#/components/schemas/DocumentColumnRef'
          type:
            - array
            - 'null'
        reads:
          items:
            $ref: '#/components/schemas/DocumentReadDependency'
          type:
            - array
            - 'null'
        rows:
          type: boolean
      type: object
    DocumentColumnRef:
      additionalProperties: false
      properties:
        column:
          type: string
        family:
          type: string
      required:
        - family
        - column
      type: object
    DocumentReadDependency:
      additionalProperties: false
      properties:
        paths:
          items:
            type: string
          type:
            - array
            - 'null'
        read:
          type: string
      required:
        - read
        - paths
      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.