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

# Join documents into one packet PDF

> Joins every named file, in order, into one PDF and stores it as a Document of the subject in app_id's Documents: a document draft rendered as it reads now (an ACORD form), a filled carrier form or any ready Document by id, a filed Records document, or a conversation attachment. Each member is read as the caller with its own read's admission. A member the caller cannot open, or one that is not a PDF, refuses the whole packet and names that member, so a packet never leaves a named file out. The same members at the same bytes land on the same Document. Nothing is sent or signed.



## OpenAPI

````yaml /openapi.generated.json post /documents/packets
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/packets:
    post:
      tags:
        - Documents
      summary: Join documents into one packet PDF
      description: >-
        Joins every named file, in order, into one PDF and stores it as a
        Document of the subject in app_id's Documents: a document draft rendered
        as it reads now (an ACORD form), a filled carrier form or any ready
        Document by id, a filed Records document, or a conversation attachment.
        Each member is read as the caller with its own read's admission. A
        member the caller cannot open, or one that is not a PDF, refuses the
        whole packet and names that member, so a packet never leaves a named
        file out. The same members at the same bytes land on the same Document.
        Nothing is sent or signed.
      operationId: createDocumentPacket
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PacketRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentsPacketJSON'
          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
        '409':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Conflict
        '413':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Request Entity Too Large
        '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:
    PacketRequest:
      additionalProperties: false
      properties:
        app_id:
          description: The app whose Documents hold the members and receive the packet.
          type: string
        members:
          description: >-
            Every file the packet holds, in the order it prints them: 1 to 20,
            each naming exactly one of draft, document, record or attachment.
          items:
            $ref: '#/components/schemas/PacketMember'
          type:
            - array
            - 'null'
        name:
          description: 'The packet''s file name. Default: Submission packet.pdf.'
          type: string
        subject:
          description: >-
            The Records record reference the packet is about, or seat:&lt;your
            user id&gt; for a packet about no account on file (a prospect): only
            that seat reads or downloads it.
          type: string
        turn:
          description: The Assistant turn filing the packet. A new packet records it.
          type: string
      required:
        - app_id
        - subject
        - members
      type: object
    DocumentsPacketJSON:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/PacketView'
      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
    PacketMember:
      additionalProperties: false
      properties:
        attachment:
          description: >-
            A conversation attachment: its id, its doc: address, or its file
            name as the conversation lists it. Read as the caller, inside
            conversation only.
          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: a filled carrier form
            (supplemental-...), a filed copy or an upload, by its id. An id a
            same-turn revision replaced joins the copy that replaced it.
          type: string
        draft:
          description: >-
            A document draft the caller can open (an ACORD form or a template
            draft), by the draft_id its fill answered. Its PDF is rendered as
            the draft reads now.
          type: string
        pages:
          description: >-
            The physical pages of the file the packet takes, as a page, a range
            or a list (35-36,57,99): the original pages in page order, none
            re-rendered. Empty takes every page. A page past the file's last
            page refuses the packet.
          type: string
        record:
          description: >-
            A filed Records document, by its Records id, read through the
            Records documents content route as the caller.
          type: string
      type: object
    PacketView:
      additionalProperties: false
      properties:
        document:
          $ref: '#/components/schemas/DocumentGenerated'
        parts:
          description: Every member, in the packet's order, each with the pages it adds.
          items:
            $ref: '#/components/schemas/PacketPart'
          type:
            - array
            - 'null'
        stored:
          description: >-
            False when this exact packet was already stored and its Document is
            answered.
          type: boolean
      required:
        - document
        - stored
        - parts
      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
    DocumentGenerated:
      additionalProperties: false
      properties:
        content_type:
          type: string
        id:
          type: string
        name:
          type: string
        page_count:
          format: int64
          type: integer
        size_bytes:
          format: int64
          type: integer
      required:
        - id
        - name
      type: object
    PacketPart:
      additionalProperties: false
      properties:
        name:
          description: The member's file name.
          type: string
        pages:
          description: The pages it adds.
          format: int64
          type: integer
        ref:
          description: The draft, document, record or attachment the request named.
          type: string
        selection:
          description: >-
            The page list the member took from its file, when the request named
            one.
          type: string
      required:
        - ref
        - name
        - pages
      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.