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

# Render the book report

> Renders the book report (library template book-report) for the Reports page's filters, read from the people, staff and summary rollups as the caller: pdf (the report, or slides with layout=slides), xlsx (Summary, one sheet per grouping, Retention by month and Staff metrics) or csv (the grouping as one flat table). Nothing is stored. A caller without the rollups is refused as the rollup route refuses it.



## OpenAPI

````yaml /openapi.generated.json get /documents/templates/book-report/exports/{format}
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/templates/book-report/exports/{format}:
    get:
      tags:
        - Documents
      summary: Render the book report
      description: >-
        Renders the book report (library template book-report) for the Reports
        page's filters, read from the people, staff and summary rollups as the
        caller: pdf (the report, or slides with layout=slides), xlsx (Summary,
        one sheet per grouping, Retention by month and Staff metrics) or csv
        (the grouping as one flat table). Nothing is stored. A caller without
        the rollups is refused as the rollup route refuses it.
      operationId: documentsRenderBookReport
      parameters:
        - in: path
          name: format
          required: true
          schema:
            enum:
              - pdf
              - xlsx
              - csv
            type: string
        - description: >-
            How the book splits, as the Reports page's Group by. Default
            client_manager.
          explode: false
          in: query
          name: group
          schema:
            description: >-
              How the book splits, as the Reports page's Group by. Default
              client_manager.
            enum:
              - client_manager
              - producer
              - office
              - market
              - carrier
              - line
              - business_type
              - account
            type: string
        - description: >-
            1 for the asking seat's own book (where they are the producer or
            client manager).
          explode: false
          in: query
          name: mine
          schema:
            description: >-
              1 for the asking seat's own book (where they are the producer or
              client manager).
            enum:
              - '0'
              - '1'
            type: string
        - description: Producers by AMS 360 employee code, or me, repeatable.
          explode: true
          in: query
          name: producer
          schema:
            description: Producers by AMS 360 employee code, or me, repeatable.
            items:
              type: string
            maxItems: 50
            type:
              - array
              - 'null'
        - description: Client managers by AMS 360 employee code, or me, repeatable.
          explode: true
          in: query
          name: client_manager
          schema:
            description: Client managers by AMS 360 employee code, or me, repeatable.
            items:
              type: string
            maxItems: 50
            type:
              - array
              - 'null'
        - description: >-
            The PDF's layout: report (portrait, the default) or slides
            (landscape, one section to a page).
          explode: false
          in: query
          name: layout
          schema:
            description: >-
              The PDF's layout: report (portrait, the default) or slides
              (landscape, one section to a page).
            enum:
              - report
              - slides
            type: string
        - description: Narrow to one market of the organization's market map.
          explode: false
          in: query
          name: market
          schema:
            description: Narrow to one market of the organization's market map.
            type: string
        - description: Narrow to one office.
          explode: false
          in: query
          name: office
          schema:
            description: Narrow to one office.
            type: string
        - description: Narrow to one line of business.
          explode: false
          in: query
          name: line
          schema:
            description: Narrow to one line of business.
            type: string
        - description: Narrow to one carrier.
          explode: false
          in: query
          name: carrier
          schema:
            description: Narrow to one carrier.
            type: string
        - description: The account's in-force premium floor, whole dollars.
          explode: false
          in: query
          name: min_premium
          schema:
            description: The account's in-force premium floor, whole dollars.
            type: string
        - description: >-
            Policies expiring from the read date up to this many days later (0
            is off, at most 366).
          explode: false
          in: query
          name: renewing_days
          schema:
            description: >-
              Policies expiring from the read date up to this many days later (0
              is off, at most 366).
            type: string
        - description: >-
            all (the default), commercial, personal, benefits, life or other:
            only the policies whose type of business falls in that book count.
          explode: false
          in: query
          name: world
          schema:
            description: >-
              all (the default), commercial, personal, benefits, life or other:
              only the policies whose type of business falls in that book count.
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentDraftRenderJSON'
          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:
    DocumentDraftRenderJSON:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/DraftFile'
      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
    DraftFile:
      additionalProperties: false
      properties:
        content_type:
          type: string
        data:
          description: Base64 encoded file bytes. This working copy is not filed.
          type: string
        draft_id:
          type: string
        filename:
          type: string
        format:
          type: string
        unfilled:
          description: >-
            On a render into a workbook: every label, column and row of it the
            draft did not fill, and why.
          items:
            $ref: '#/components/schemas/WorkbookGap'
          type:
            - array
            - 'null'
        updated_at:
          format: date-time
          type: string
      required:
        - draft_id
        - updated_at
        - format
        - filename
        - content_type
        - data
        - unfilled
      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
    WorkbookGap:
      additionalProperties: false
      properties:
        all:
          description: 'On not_held: no row holds a value.'
          type: boolean
        cell:
          description: The label's value cell, or the column's header cell.
          type: string
        cells:
          description: The cells left blank or affected.
          items:
            type: string
          type:
            - array
            - 'null'
        column:
          type: string
        label:
          description: The workbook's own label or column header.
          type: string
        reason:
          description: >-
            column_not_mapped: a column header no draft field answers.
            label_not_mapped: a header-block label no field answers. not_held: a
            matched label or column whose field holds no value, on every row
            (all) or on the rows named. not_read: a matched label whose field
            the account read does not carry; AMS 360 may hold it and the
            producer supplies it. row_left_out: draft rows the workbook does not
            hold that found no blank row, on a sheet rows cannot be added to (a
            pivot table on the sheet, a form control, a comment under the table,
            a locked sheet, a total that would not take the new rows).
            row_formula_missing: a blank data row without the formula its column
            computes on the other rows, left without an invented formula and
            explicitly reported. text_in_summed_column: a text value in a column
            the totals row sums. kept_existing: a label cell, or a matched row's
            cell, that already held another value; it is kept. cell_refused: a
            cell the filler refused. column_not_found: a draft column whose
            header no workbook column holds. column_ambiguous: a draft column
            whose header two columns hold, in the workbook or the draft; it is
            not filled. row_not_matched: draft rows whose key value names more
            than one workbook row, or that no key tells apart from a row the
            workbook holds; a row the workbook does not hold fills its next
            blank row, else a row added under the table that carries the row
            above's formulas and formats.
          enum:
            - column_not_mapped
            - label_not_mapped
            - not_held
            - not_read
            - row_left_out
            - row_formula_missing
            - text_in_summed_column
            - kept_existing
            - cell_refused
            - column_not_found
            - column_ambiguous
            - row_not_matched
          type: string
        rows:
          description: 'The draft rows named: left out, or blank in this column.'
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - reason
      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.