> ## 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 working copy

> Read a document working copy



## OpenAPI

````yaml /openapi.generated.json get /documents/drafts/{id}
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:
  /documents/drafts/{id}:
    get:
      tags:
        - Documents
      summary: Read a document working copy
      description: Read a document working copy
      operationId: documentsReadWorkingCopy
      parameters:
        - description: >-
            The draft id. The first fill creates the draft under this id; it is
            1 to 200 letters, digits, '_', '.', ':' or '-'.
          in: path
          name: id
          required: true
          schema:
            description: >-
              The draft id. The first fill creates the draft under this id; it
              is 1 to 200 letters, digits, '_', '.', ':' or '-'.
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentWorkingCopyJSON'
          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
        '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:
    DocumentWorkingCopyJSON:
      additionalProperties: false
      properties:
        data:
          additionalProperties: false
          properties:
            accountId:
              type: string
            accountName:
              type: string
            composition:
              $ref: '#/components/schemas/DraftComposition'
            filedDocumentId:
              type:
                - string
                - 'null'
            id:
              type: string
            policyNumbers:
              items:
                type: string
              type:
                - array
                - 'null'
            removedSections:
              items:
                type: string
              type:
                - array
                - 'null'
            sections:
              items:
                $ref: '#/components/schemas/WorkingSection'
              type:
                - array
                - 'null'
            sources:
              additionalProperties:
                $ref: '#/components/schemas/WorkingSource'
              type: object
            state:
              anyOf:
                - $ref: '#/components/schemas/MachineState'
                  description: >-
                    The draft's status with its label, settled flag and tone
                    from the org's declared template_draft machine; null when
                    the org declares no template_draft machine.
                - type: 'null'
            status:
              enum:
                - draft
                - filed
              type: string
            suggestedPreset:
              type:
                - string
                - 'null'
            templateId:
              type: string
            updatedAt:
              format: date-time
              type: string
            values:
              additionalProperties:
                oneOf:
                  - type: string
                  - items:
                      additionalProperties:
                        type: string
                      type: object
                    type: array
              type: object
          required:
            - state
            - id
            - templateId
            - accountId
            - accountName
            - status
            - values
            - sources
            - filedDocumentId
            - updatedAt
            - removedSections
            - policyNumbers
            - composition
            - suggestedPreset
            - sections
          type: object
      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
    DraftComposition:
      additionalProperties: false
      properties:
        kind:
          enum:
            - renewal
            - newBusiness
            - quoteOnly
          type: string
        options:
          items:
            type: string
          type: array
        preset:
          type: string
        sections:
          items:
            $ref: '#/components/schemas/DraftSectionUse'
          type: array
      required:
        - preset
        - sections
      type: object
    WorkingSection:
      additionalProperties: false
      properties:
        editableFields:
          items:
            type: string
          type:
            - array
            - 'null'
        id:
          type: string
        line:
          type:
            - string
            - 'null'
        locked:
          type: boolean
        removed:
          type: boolean
        required:
          type: boolean
        title:
          type: string
      required:
        - id
        - line
        - title
        - removed
        - locked
        - required
        - editableFields
      type: object
    WorkingSource:
      additionalProperties: false
      properties:
        from:
          enum:
            - account
            - document
            - producer
            - derived
            - fixed
          type: string
      required:
        - from
      type: object
    MachineState:
      additionalProperties: false
      properties:
        label:
          description: >-
            The words a person sees for the value; null when the machine labels
            none.
          type:
            - string
            - 'null'
        machine:
          description: The machine's state field (GET /records/machines/{field}).
          type: string
        next:
          anyOf:
            - $ref: '#/components/schemas/MachineNextStep'
              description: The next step served for the value; null when it has none.
            - type: 'null'
        settled:
          description: True when the value ends the work.
          type: boolean
        step:
          description: The workflow step the value sits in; null when it sits in none.
          type:
            - string
            - 'null'
        tone:
          description: The tone the value is shown with; null when the machine gives none.
          enum:
            - neutral
            - positive
            - warning
            - danger
            - null
          type:
            - string
            - 'null'
        value:
          type: string
      required:
        - machine
        - value
        - label
        - step
        - settled
        - tone
        - next
      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
    DraftSectionUse:
      additionalProperties: false
      properties:
        detail:
          enum:
            - detailed
            - plain
          type: string
        id:
          type: string
        line:
          type: string
      required:
        - id
      type: object
    MachineNextStep:
      additionalProperties: false
      properties:
        key:
          description: The next step key.
          type: string
        label:
          description: The words a person sees for the step.
          type: string
        waiting_on:
          description: Who the work waits on at this step.
          type: string
      required:
        - key
      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.