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

# List the Audit trail

> The org's Audit trail under the caller's permissions: Workbench submission decision history, producer actions from the action ledger, commission checks on the submissions' quotes, the Workbench accounts' own policy terms, and placement terms from the warehouse, merged newest or oldest first with an exact total. Ledger targets and placements are read at one warehouse instant at the seat's can-open boundary. A commission check is assessed against the carrier's contracted terms for the page's rows only; a seat whose role withholds carrier compensation reads none, and selecting them is refused with 403. A page's source.snapshot_id passed back as snapshot reads the same snapshots, so a multi-page export is one relation. The hide.kind and hide.status filters resolve from the request when it names either, else the person's saved Audit view, else nothing hidden; a first page answers the view block with each option's count and how many rows the filters hide. An Office seat is refused.



## OpenAPI

````yaml /openapi.generated.json get /records/audit
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:
  /records/audit:
    get:
      tags:
        - audit
      summary: List the Audit trail
      description: >-
        The org's Audit trail under the caller's permissions: Workbench
        submission decision history, producer actions from the action ledger,
        commission checks on the submissions' quotes, the Workbench accounts'
        own policy terms, and placement terms from the warehouse, merged newest
        or oldest first with an exact total. Ledger targets and placements are
        read at one warehouse instant at the seat's can-open boundary. A
        commission check is assessed against the carrier's contracted terms for
        the page's rows only; a seat whose role withholds carrier compensation
        reads none, and selecting them is refused with 403. A page's
        source.snapshot_id passed back as snapshot reads the same snapshots, so
        a multi-page export is one relation. The hide.kind and hide.status
        filters resolve from the request when it names either, else the person's
        saved Audit view, else nothing hidden; a first page answers the view
        block with each option's count and how many rows the filters hide. An
        Office seat is refused.
      operationId: listAudit
      parameters:
        - description: >-
            The member the read is made for (a WorkOS user id). Unset keeps the
            org-wide posture the key alone grants.
          in: header
          name: Nexio-Act-As
          schema:
            description: >-
              The member the read is made for (a WorkOS user id). Unset keeps
              the org-wide posture the key alone grants.
            type: string
        - description: >-
            The acting member's verified email, lowercased. Ignored without
            Nexio-Act-As.
          in: header
          name: Nexio-Act-As-Email
          schema:
            description: >-
              The acting member's verified email, lowercased. Ignored without
              Nexio-Act-As.
            type: string
        - description: The calling application (workbench).
          in: header
          name: Nexio-Consumer
          schema:
            description: The calling application (workbench).
            type: string
        - description: The calling application's build.
          in: header
          name: Nexio-Consumer-Build
          schema:
            description: The calling application's build.
            type: string
        - description: The access vocabulary hash the calling build was generated against.
          in: header
          name: Nexio-Consumer-Vocabulary
          schema:
            description: >-
              The access vocabulary hash the calling build was generated
              against.
            type: string
        - description: >-
            A caller-chosen request id, echoed in the Nexio-Request-Id response
            header.
          in: header
          name: Nexio-Request-Id
          schema:
            description: >-
              A caller-chosen request id, echoed in the Nexio-Request-Id
              response header.
            type: string
        - description: >-
            The caller's remaining budget for this request, in whole
            milliseconds (1 to 10 digits, greater than zero), relative to
            receipt. The engine stops work at the shorter of this and the
            route's own budget, and answers 504 request_timeout when it expires.
            A value above the route budget is capped to it; a malformed value is
            ignored.
          in: header
          name: Nexio-Timeout
          schema:
            description: >-
              The caller's remaining budget for this request, in whole
              milliseconds (1 to 10 digits, greater than zero), relative to
              receipt. The engine stops work at the shorter of this and the
              route's own budget, and answers 504 request_timeout when it
              expires. A value above the route budget is capped to it; a
              malformed value is ignored.
            type: string
        - description: >-
            Free-text search, trimmed and case-insensitive: a substring of a
            row's account name, carriers, run id, actor name, reason comment or
            sentence. Placement terms match the warehouse placement search. A
            search that reaches commission checks over more than 5,000 distinct
            checks or 200 carrier and state pairs in the caller's scope is
            refused with 400 SEARCH_TOO_BROAD; narrow it with kind or origin.
          explode: false
          in: query
          name: q
          schema:
            description: >-
              Free-text search, trimmed and case-insensitive: a substring of a
              row's account name, carriers, run id, actor name, reason comment
              or sentence. Placement terms match the warehouse placement search.
              A search that reaches commission checks over more than 5,000
              distinct checks or 200 carrier and state pairs in the caller's
              scope is refused with 400 SEARCH_TOO_BROAD; narrow it with kind or
              origin.
            type: string
        - description: >-
            One row kind, or all (the default). commission_check is refused with
            403 for a seat whose role withholds carrier compensation, and all
            leaves those rows out for that seat.
          explode: false
          in: query
          name: kind
          schema:
            description: >-
              One row kind, or all (the default). commission_check is refused
              with 403 for a seat whose role withholds carrier compensation, and
              all leaves those rows out for that seat.
            enum:
              - all
              - recommendation
              - override
              - manual_package
              - dismissal
              - submission_activity
              - producer_action
              - commission_check
              - placement_history
            type: string
        - description: >-
            One source, or all (the default). commission_assessment is refused
            with 403 for a seat whose role withholds carrier compensation.
          explode: false
          in: query
          name: origin
          schema:
            description: >-
              One source, or all (the default). commission_assessment is refused
              with 403 for a seat whose role withholds carrier compensation.
            enum:
              - all
              - submission
              - action_ledger
              - commission_assessment
              - placement_history
            type: string
        - description: >-
            A recommendation's run status, or all (the default). A status
            selects recommendation rows only.
          explode: false
          in: query
          name: status
          schema:
            description: >-
              A recommendation's run status, or all (the default). A status
              selects recommendation rows only.
            enum:
              - all
              - pending
              - running
              - completed
              - degraded
              - failed
            type: string
        - description: >-
            Comma-separated row kinds to leave out: recommendation, override,
            dismissal, manual_package, commission_check, producer_action,
            placement_history, submission_activity. Empty or none hides nothing.
            Left out with every other view filter, the person's saved view or
            the default (nothing hidden) applies. commission_check is refused
            with 403 for a seat whose role withholds carrier compensation, as
            kind=commission_check is; that seat's saved view never applies it.
            Composes with kind, origin and status: a row shows only when every
            filter keeps it. The view block lists the kinds with their counts.
          explode: false
          in: query
          name: hide.kind
          schema:
            description: >-
              Comma-separated row kinds to leave out: recommendation, override,
              dismissal, manual_package, commission_check, producer_action,
              placement_history, submission_activity. Empty or none hides
              nothing. Left out with every other view filter, the person's saved
              view or the default (nothing hidden) applies. commission_check is
              refused with 403 for a seat whose role withholds carrier
              compensation, as kind=commission_check is; that seat's saved view
              never applies it. Composes with kind, origin and status: a row
              shows only when every filter keeps it. The view block lists the
              kinds with their counts.
            type: string
        - description: >-
            Comma-separated run statuses to leave out: pending, running,
            completed, degraded, failed. A status hides recommendation rows
            only; a recommendation with no run status is never hidden by it.
            Empty or none hides nothing. Left out with every other view filter,
            the person's saved view or the default (nothing hidden) applies.
          explode: false
          in: query
          name: hide.status
          schema:
            description: >-
              Comma-separated run statuses to leave out: pending, running,
              completed, degraded, failed. A status hides recommendation rows
              only; a recommendation with no run status is never hidden by it.
              Empty or none hides nothing. Left out with every other view
              filter, the person's saved view or the default (nothing hidden)
              applies.
            type: string
        - description: >-
            newest (the default) or oldest first. Rows whose stamp is not an
            instant order last either way; ties order by id.
          explode: false
          in: query
          name: sort
          schema:
            description: >-
              newest (the default) or oldest first. Rows whose stamp is not an
              instant order last either way; ties order by id.
            enum:
              - newest
              - oldest
            type: string
        - description: >-
            Page size. Defaults to 25. At most 2000, so an export reads its
            whole file in one request; a larger value is coerced to 2000 with a
            LIMIT_COERCED warning.
          explode: false
          in: query
          name: limit
          schema:
            description: >-
              Page size. Defaults to 25. At most 2000, so an export reads its
              whole file in one request; a larger value is coerced to 2000 with
              a LIMIT_COERCED warning.
            format: int64
            minimum: 1
            type: integer
        - description: Rows to skip before the page, at most 1000000.
          explode: false
          in: query
          name: offset
          schema:
            description: Rows to skip before the page, at most 1000000.
            format: int64
            minimum: 0
            type: integer
        - description: >-
            Continue an earlier page's read: pass back its source.snapshot_id
            and this page reads the same native and warehouse snapshots, so a
            multi-page export is one relation. A snapshot that is malformed, in
            the future or older than an hour is refused with 400. The id is not
            signed: it names only read times within the last hour, and every
            read stays under the caller's own scope.
          explode: false
          in: query
          name: snapshot
          schema:
            description: >-
              Continue an earlier page's read: pass back its source.snapshot_id
              and this page reads the same native and warehouse snapshots, so a
              multi-page export is one relation. A snapshot that is malformed,
              in the future or older than an hour is refused with 400. The id is
              not signed: it names only read times within the last hour, and
              every read stays under the caller's own scope.
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditList'
          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
        '424':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Failed Dependency
        '429':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Too Many Requests
        '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
        '504':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Gateway Timeout
      security:
        - bearer: []
components:
  schemas:
    AuditList:
      additionalProperties: false
      properties:
        data:
          description: One page of the collection, in the requested sort order.
          items:
            $ref: '#/components/schemas/AuditTrailRow'
          type:
            - array
            - 'null'
        facets:
          additionalProperties:
            items:
              $ref: '#/components/schemas/FacetValue'
            type:
              - array
              - 'null'
          description: Present only for the facets the request named in facets=.
          type: object
        missing_count:
          description: >-
            For a hierarchy read, source records missing the requested level
            after source filters, before name/ID filters and pagination. Present
            even when zero or the page is empty.
          format: int64
          type: integer
        page:
          $ref: '#/components/schemas/Page'
        request_id:
          description: The request id, as echoed in the Nexio-Request-Id response header.
          type: string
        source:
          $ref: '#/components/schemas/Source'
        total:
          $ref: '#/components/schemas/Total'
          description: Present only when the request sent include_total=true.
        unreachable:
          description: >-
            Parts of the answer no source could fill, each with its reason.
            Empty when every part was filled.
          items:
            $ref: '#/components/schemas/Unreachable'
          type:
            - array
            - 'null'
        view:
          $ref: '#/components/schemas/View'
          description: >-
            The hide filters this read applied, with each option's count and how
            many rows they hide. Present on a first page (offset 0, no
            snapshot), also with every filter off.
        warnings:
          description: >-
            Adjustments the platform made to the request (a coerced limit, a
            dropped facet).
          items:
            $ref: '#/components/schemas/Warning'
          type:
            - array
            - 'null'
      required:
        - data
        - page
        - source
        - unreachable
        - warnings
        - request_id
      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
    AuditTrailRow:
      additionalProperties: false
      properties:
        account_id:
          type: string
        account_name:
          description: >-
            The account's name as a person reads it; Account unavailable when
            neither the row nor the book names it.
          type: string
        action:
          $ref: '#/components/schemas/BookActionRow'
          description: A producer_action row's ledger command, whole.
        activities:
          description: Submission activities linked to the row, with display names.
          items:
            $ref: '#/components/schemas/AuditActivity'
          type:
            - array
            - 'null'
        actor_id:
          type:
            - string
            - 'null'
        actor_kind:
          description: user, system or principal.
          type: string
        actor_name:
          type:
            - string
            - 'null'
        actor_type:
          description: A ledger command's actor_type as recorded.
          type: string
        at:
          description: >-
            recorded as an instant, null when it is not one; such rows order
            last.
          format: date-time
          type:
            - string
            - 'null'
        carriers:
          description: Carrier names the record states, in its order.
          items:
            type: string
          type:
            - array
            - 'null'
        commission:
          $ref: '#/components/schemas/AuditCommission'
          description: >-
            A commission_check row's verdict: the quoted and contracted rates
            and the agreement read.
        entity_domain:
          description: A ledger command's entity_domain as recorded.
          type: string
        facts:
          description: The detail drawer's label and value lines, in record order.
          items:
            $ref: '#/components/schemas/AuditFact'
          type:
            - array
            - 'null'
        id:
          type: string
        kind:
          description: >-
            recommendation, override, manual_package, dismissal,
            submission_activity, producer_action, commission_check or
            placement_history.
          type: string
        origin:
          description: >-
            submission, action_ledger, commission_assessment or
            placement_history.
          type: string
        placement:
          $ref: '#/components/schemas/BookPlacementHistoryRow'
          description: >-
            A placement_history row's warehouse term; a term on a Workbench
            account's own policy carries policy_term instead.
        policy_term:
          $ref: '#/components/schemas/AuditPolicyTerm'
          description: >-
            A placement_history row recorded on a Workbench account's own
            policy: the term, the term before it and the run's recommendation.
        reason_code:
          description: >-
            The override reason taxonomy code, null when the stored reason names
            none.
          type:
            - string
            - 'null'
        reason_comment:
          description: The override reason's free text.
          type: string
        reason_interest:
          description: >-
            The interest the override reason chiefly serves; null for an absent
            or unknown code.
          enum:
            - client
            - firm
            - producer
            - null
          type:
            - string
            - 'null'
        reason_label:
          description: >-
            The override reason's taxonomy label; null for an absent or unknown
            code.
          type:
            - string
            - 'null'
        record:
          description: >-
            A submission row's source record: the activity, or the run or
            package with its linked activities in order. Absent on commission
            checks and policy terms, whose detail is commission and policy_term.
        recorded:
          description: >-
            The stamp as the source recorded it: an ISO instant, a date, or text
            that is not an instant.
          type: string
        run_id:
          type:
            - string
            - 'null'
        run_state:
          $ref: '#/components/schemas/RunState'
          description: What a reader does with run_status, on a row with one.
        run_status:
          type:
            - string
            - 'null'
        submission_id:
          type:
            - string
            - 'null'
        summary:
          description: One sentence stating the recorded move.
          type: string
        target:
          $ref: '#/components/schemas/AuditLedgerTarget'
          description: >-
            The book record a ledger command names, labelled at the source
            instant. Absent labels never remove the command.
        timestamp_basis:
          description: >-
            Which recorded stamp recorded is (run_completed, run_started,
            acceptance_recorded, submission_updated, package_updated,
            activity_recorded, ledger_recorded, assessment_derived,
            policy_effective, term_year). assessment_derived marks a commission
            check, recomputed on every read rather than recorded.
          type: string
      required:
        - account_name
        - summary
        - facts
        - carriers
        - reason_code
        - reason_interest
        - reason_label
        - reason_comment
        - activities
        - id
        - kind
        - origin
        - recorded
        - at
        - timestamp_basis
        - account_id
        - submission_id
        - actor_id
        - actor_kind
        - actor_name
        - run_id
        - run_status
      type: object
    FacetValue:
      additionalProperties: false
      properties:
        count:
          format: int64
          type: integer
        description:
          type: string
        label:
          type: string
        parent:
          type: string
        value:
          type: string
      required:
        - value
        - count
      type: object
    Page:
      additionalProperties: false
      properties:
        cursor:
          description: The cursor that produced this page; null for the first page.
          type:
            - string
            - 'null'
        limit:
          description: >-
            The page size the platform applied, after any coercion (see
            warnings).
          format: int64
          type: integer
        max_limit:
          description: >-
            The largest page size this collection serves for this request's
            view; a larger limit is coerced to it (see warnings). A reader that
            wants the whole set in one page reads at this ceiling. Absent where
            the collection states none.
          format: int64
          type: integer
        next:
          description: The cursor of the following page; null at the end of the collection.
          type:
            - string
            - 'null'
        offset:
          description: >-
            The rows skipped before this page, echoed only when the request sent
            offset (a register's page jump).
          format: int64
          type: integer
        prev:
          description: The cursor of the preceding page; null on the first page.
          type:
            - string
            - 'null'
      required:
        - cursor
        - next
        - prev
        - limit
      type: object
    Source:
      additionalProperties: false
      properties:
        actor:
          $ref: '#/components/schemas/Actor'
        connection:
          description: >-
            The id of the connection that answered; empty when the read had no
            connection.
          type: string
        coverage:
          $ref: '#/components/schemas/SourceCoverage'
          description: >-
            What the family's data has: late only when its source is older than
            its measured window, and the gaps a reader states where it shows an
            absence for the family.
        elapsed_ms:
          description: A live source's call time for this read.
          format: int64
          type: integer
        family:
          description: The registry family that answered.
          type: string
        freshness:
          description: >-
            The freshness word as served before freshness_promised and
            freshness_observed existed; read those two instead.
          type: string
        freshness_observed:
          description: >-
            What this read observed: settled or prior_stable (the warehouse
            pin), reused (a kept answer of the same statement and data version),
            live (a call answered now), fresh or stale.
          type: string
        freshness_promised:
          description: >-
            What the source promises: pinned (the warehouse, read at a pinned
            instant), live (the system of record, per call), store (the
            platform's own store) or computed (a derived function over other
            reads).
          type: string
        id:
          description: >-
            The registry source id (warehouse, ams360_ems, ...), empty when
            absent.
          type: string
        kind:
          description: >-
            The kind of source that answered: the warehouse, the customer's
            system of record (whichever vendor; the vendor is in id), the
            platform's own store, or absent when no source serves the family.
          enum:
            - warehouse
            - system
            - store
            - absent
          type: string
        operations:
          description: >-
            What ran to serve this answer, in order: the warehouse statements,
            vendor operations, store families or functions. Empty only when no
            source serves the family.
          items:
            $ref: '#/components/schemas/SourceOperation'
          type:
            - array
            - 'null'
        origin:
          description: Which input decided the source.
          enum:
            - default
            - connection
            - seat
          type: string
        reason:
          $ref: '#/components/schemas/SourceReason'
          description: Why the family is absent, when kind is absent.
        snapshot_at:
          description: >-
            The instant the rows were read at: the warehouse pin, or the live
            call's time.
          format: date-time
          type:
            - string
            - 'null'
        snapshot_id:
          description: The warehouse snapshot the rows came from, when one names them.
          type: string
        stale_since:
          description: When the snapshot stopped being current, for a stale read.
          format: date-time
          type: string
        subject:
          $ref: '#/components/schemas/Subject'
        system:
          deprecated: true
          description: >-
            deprecated: read kind; removed with generation 1. The system behind
            the source.
          enum:
            - warehouse
            - ams360
            - store
            - absent
          type: string
      required:
        - coverage
        - family
        - kind
        - connection
        - system
        - id
        - origin
        - freshness
        - freshness_promised
        - snapshot_at
        - operations
        - subject
        - actor
      type: object
    Total:
      additionalProperties: false
      properties:
        exact:
          type: boolean
        value:
          format: int64
          type: integer
      required:
        - value
        - exact
      type: object
    Unreachable:
      additionalProperties: false
      properties:
        detail:
          type: string
        part:
          description: The envelope part (a field path or a child family).
          type: string
        reason:
          description: 'Why: no_adapter, not_documented, absent, source_unavailable, ...'
          type: string
        ref:
          description: The vendor reference id of the call that failed, when one did.
          type: string
      required:
        - part
        - reason
      type: object
    View:
      additionalProperties: false
      properties:
        columns:
          $ref: '#/components/schemas/Columns'
          description: >-
            Every column the seat may show, its role's default columns and the
            columns this person shows.
        filters:
          items:
            $ref: '#/components/schemas/Filter'
          type:
            - array
            - 'null'
        hidden:
          $ref: '#/components/schemas/Hidden'
      required:
        - filters
        - hidden
      type: object
    Warning:
      additionalProperties: false
      properties:
        code:
          description: >-
            UPPER_SNAKE_CASE, one meaning forever (LIMIT_COERCED, FACET_DROPPED,
            ...).
          type: string
        detail:
          type: string
      required:
        - code
      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
    BookActionRow:
      additionalProperties: false
      properties:
        ActedByEmail:
          type: string
        ActedByPrincipal:
          type: string
        ActorPrincipal:
          type: string
        ActorType:
          type: string
        Basis:
          $ref: '#/components/schemas/BookActionBasis'
        Command:
          type: string
        ConnectionID:
          type:
            - string
            - 'null'
        EntityDomain:
          type: string
        EntityRef:
          $ref: '#/components/schemas/BookEntityRef'
        ID:
          type: string
        IdempotencyKey:
          type: string
        IssuedAt:
          format: date-time
          type:
            - string
            - 'null'
        OrgID:
          type: string
        Payload: {}
        RecordedAt:
          format: date-time
          type: string
        SchemaRev:
          format: int64
          type: integer
        Seq:
          format: int64
          type: integer
      required:
        - OrgID
        - Seq
        - ID
        - ActorPrincipal
        - ActorType
        - ActedByPrincipal
        - ActedByEmail
        - EntityDomain
        - EntityRef
        - ConnectionID
        - Command
        - SchemaRev
        - Payload
        - Basis
        - IdempotencyKey
        - IssuedAt
        - RecordedAt
      type: object
    AuditActivity:
      additionalProperties: false
      properties:
        actor_id:
          type: string
        actor_name:
          type:
            - string
            - 'null'
        created_at:
          type: string
        description:
          type: string
      required:
        - description
        - created_at
        - actor_id
        - actor_name
      type: object
    AuditCommission:
      additionalProperties: false
      properties:
        basis:
          description: >-
            The agreement rate applied: renewal for an incumbent's own renewal
            quote, else new.
          enum:
            - new
            - renewal
          type: string
        contracted_floor_pct:
          description: >-
            The lowest contracted rate across the quoted lines, in whole
            percent; null when none applies.
          format: double
          type:
            - number
            - 'null'
        contracted_lines:
          description: The agreement lines the floor was read from.
          items:
            type: string
          type:
            - array
            - 'null'
        delta_pct:
          description: quoted_pct minus contracted_floor_pct; null when either is null.
          format: double
          type:
            - number
            - 'null'
        detail:
          description: The verdict sentence; the row's summary.
          type: string
        market_entity_key:
          description: >-
            The contracted agreement's market key; null when no agreement was
            resolved.
          type:
            - string
            - 'null'
        quote_id:
          type: string
        quote_number:
          type: string
        quoted_pct:
          description: The quote's commission in whole percent; null when it states none.
          format: double
          type:
            - number
            - 'null'
        status:
          description: >-
            pass, flagged (below the contracted floor), not_stated (the quote
            states no rate), rate_not_found (no single contracted rate applies)
            or terms_unavailable (the catalog could not be read; not checked is
            not passed).
          enum:
            - pass
            - flagged
            - not_stated
            - rate_not_found
            - terms_unavailable
          type: string
      required:
        - quote_id
        - quote_number
        - status
        - quoted_pct
        - contracted_floor_pct
        - delta_pct
        - basis
        - contracted_lines
        - market_entity_key
        - detail
      type: object
    AuditFact:
      additionalProperties: false
      properties:
        label:
          type: string
        mono:
          type: boolean
        value:
          type: string
      required:
        - label
        - value
      type: object
    BookPlacementHistoryRow:
      additionalProperties: false
      properties:
        ams360_datasource:
          type: string
        carrier_changed:
          type:
            - boolean
            - 'null'
        carrier_name:
          type:
            - string
            - 'null'
        client_key:
          type:
            - string
            - 'null'
        client_name:
          type:
            - string
            - 'null'
        full_term_premium:
          type:
            - string
            - 'null'
        line:
          type:
            - string
            - 'null'
        policy_key:
          type: string
        policy_number:
          type:
            - string
            - 'null'
        prior_carrier_name:
          type:
            - string
            - 'null'
        prior_premium:
          type:
            - string
            - 'null'
        term_effective_date:
          type:
            - string
            - 'null'
        term_expiration_date:
          type:
            - string
            - 'null'
        term_index:
          format: int64
          type: integer
        term_key:
          type: string
        term_kind:
          type:
            - string
            - 'null'
      required:
        - term_key
        - policy_key
        - client_key
        - ams360_datasource
        - client_name
        - policy_number
        - carrier_name
        - line
        - term_effective_date
        - term_expiration_date
        - full_term_premium
        - prior_carrier_name
        - prior_premium
        - carrier_changed
        - term_kind
        - term_index
      type: object
    AuditPolicyTerm:
      additionalProperties: false
      properties:
        bound_carrier_rank:
          description: >-
            Where the bound carrier sat in the run's ranking; null when it was
            not ranked.
          format: double
          type:
            - number
            - 'null'
        carrier_changed:
          description: >-
            Whether the carrier differs from the prior term's; null when either
            is unrecorded.
          type:
            - boolean
            - 'null'
        carrier_name:
          description: Null when the term was recorded premium-only.
          type:
            - string
            - 'null'
        followed_recommendation:
          description: >-
            Whether the bound carrier is the rank-1 carrier; null when the term
            has no run.
          type:
            - boolean
            - 'null'
        line_label:
          type: string
        override_interest:
          description: The interest the override reason chiefly serves.
          enum:
            - client
            - firm
            - producer
          type:
            - string
            - 'null'
        policy_id:
          type:
            - string
            - 'null'
        policy_status:
          type:
            - string
            - 'null'
        premium:
          format: double
          type:
            - number
            - 'null'
        premium_delta_pct:
          description: >-
            Signed percent change against the prior term's premium; null unless
            both are priced and the prior is positive.
          format: double
          type:
            - number
            - 'null'
        prior_carrier_name:
          type:
            - string
            - 'null'
        prior_premium:
          format: double
          type:
            - number
            - 'null'
        prior_year:
          type:
            - string
            - 'null'
        recommended_carrier_name:
          description: >-
            The run's rank-1 carrier for the term's submission; current terms
            only.
          type:
            - string
            - 'null'
        source:
          description: >-
            policy for the policy's current term, prior_term for an entry of its
            recorded prior terms.
          enum:
            - policy
            - prior_term
          type: string
        year:
          description: The term year as recorded.
          type: string
      required:
        - source
        - line_label
        - year
        - carrier_name
        - premium
        - premium_delta_pct
        - prior_year
        - prior_carrier_name
        - prior_premium
        - recommended_carrier_name
        - followed_recommendation
        - bound_carrier_rank
        - carrier_changed
        - override_interest
        - policy_id
        - policy_status
      type: object
    RunState:
      additionalProperties: false
      properties:
        failed:
          description: >-
            The run ended on a fault. A run that was stopped on purpose settles
            without one.
          type: boolean
        label:
          description: The status in a professional's words.
          type: string
        settled:
          description: The status will not change again.
          type: boolean
        success:
          description: The run ended with its answer.
          type: boolean
        tone:
          description: The tone the status shows with.
          enum:
            - neutral
            - info
            - positive
            - warning
            - danger
          type: string
      required:
        - settled
        - success
        - failed
        - label
        - tone
      type: object
    AuditLedgerTarget:
      additionalProperties: false
      properties:
        account_key:
          type: string
        account_name:
          type:
            - string
            - 'null'
        client_name:
          type:
            - string
            - 'null'
        policy_number:
          type:
            - string
            - 'null'
      required:
        - account_name
        - policy_number
        - client_name
      type: object
    Actor:
      additionalProperties: false
      properties:
        impersonation_kind:
          enum:
            - act_as
            - workos
          type: string
        impersonator:
          description: The operator behind an impersonated session.
          type: string
        member:
          description: The acting member (Nexio-Act-As); empty for a key acting as itself.
          type: string
      type: object
    SourceCoverage:
      additionalProperties: false
      properties:
        as_of:
          description: >-
            The earliest as-of among the family's sources, present only when the
            state is late.
          format: date-time
          type: string
        gaps:
          description: >-
            The family's absence gaps, each stated in plain words with its share
            and whose it is to fill. Empty when the family has none.
          items:
            $ref: '#/components/schemas/CoverageGap'
          type: array
        late:
          $ref: '#/components/schemas/CoverageLate'
          description: Present only when the state is late.
        state:
          description: >-
            late: a source is older than its measured window. current: no source
            is late. unmeasured: no source with a refresh cadence has two stored
            commits yet, so no window is known.
          enum:
            - current
            - late
            - unmeasured
          type: string
      required:
        - state
        - gaps
      type: object
    SourceOperation:
      additionalProperties: false
      properties:
        kind:
          description: >-
            statement: a registered warehouse statement; vendor: a system of
            record operation; store: a platform store family; compute: a derived
            function.
          enum:
            - statement
            - vendor
            - store
            - compute
          type: string
        ref:
          description: >-
            The statement name, the Records operation ref, the store family or
            the function.
          type: string
        reused:
          description: >-
            True when a kept answer of the same statement and data version was
            replayed instead of run.
          type: boolean
      required:
        - kind
        - ref
        - reused
      type: object
    SourceReason:
      additionalProperties: false
      properties:
        kind:
          type: string
        note:
          type: string
        ref:
          type: string
      required:
        - kind
      type: object
    Subject:
      additionalProperties: false
      properties:
        member:
          $ref: '#/components/schemas/SubjectMember'
          description: >-
            The member whose book was read, when the request read as another
            member.
        scope:
          description: The scope kind the acting seat resolved to (self, office, all, ...).
          type: string
        selection:
          description: >-
            The subject selection served, as subject= tokens (own,
            book:&lt;code&gt;, producer:&lt;code|me&gt;,
            client_manager:&lt;code|me&gt;, member:&lt;id&gt;). Empty when none
            was sent.
          items:
            type: string
          type:
            - array
            - 'null'
        selection_kind:
          description: >-
            own, code, client_manager, account, boundary or whole: what the
            served relation is.
          type: string
        selection_source:
          description: >-
            request when the caller chose the selection; none when it chose
            nothing.
          type: string
      required:
        - scope
        - selection
        - selection_kind
        - selection_source
      type: object
    Columns:
      additionalProperties: false
      properties:
        available:
          description: Every labeled field the register serves that this seat may read.
          items:
            $ref: '#/components/schemas/Column'
          type:
            - array
            - 'null'
        default:
          description: The columns the seat's role shows with nothing chosen, in order.
          items:
            type: string
          type:
            - array
            - 'null'
        shown:
          description: >-
            The columns this person shows, in order: their saved choice, else
            the default.
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - available
        - default
        - shown
      type: object
    Filter:
      additionalProperties: false
      properties:
        applied:
          description: The value this read used.
          oneOf:
            - items:
                type: string
              type: array
            - type: integer
            - type: boolean
            - type: string
        default:
          description: The value with nothing chosen.
          oneOf:
            - items:
                type: string
              type: array
            - type: integer
            - type: boolean
            - type: string
        key:
          type: string
        option_count:
          description: Values the filter holds.
          format: int64
          type: integer
        options:
          description: A multiselect's values with their counts, in the order they show.
          items:
            $ref: '#/components/schemas/Option'
          type:
            - array
            - 'null'
        truncated:
          description: More values than options; search with options_q.&lt;key&gt;.
          type: boolean
        type:
          enum:
            - multiselect
            - days
            - toggle
            - select
            - amount
          type: string
      required:
        - key
        - type
        - default
        - applied
      type: object
    Hidden:
      additionalProperties: false
      properties:
        by_filter:
          additionalProperties:
            format: int64
            type: integer
          description: >-
            Rows each filter removes from what every other filter keeps. These
            overlap and need not sum to total.
          type: object
        total:
          description: >-
            Rows the other filters keep minus the rows shown: turning every
            filter of this block off shows exactly this many more.
          format: int64
          type: integer
      required:
        - total
        - by_filter
      type: object
    BookActionBasis:
      additionalProperties: false
      properties:
        batch_set_id:
          type: string
        overlay_rev:
          format: int64
          type: integer
        seq:
          format: int64
          type: integer
      required:
        - overlay_rev
        - seq
      type: object
    BookEntityRef:
      additionalProperties: false
      properties:
        ams360_datasource:
          type: string
        catalog_id:
          type: string
        client_id:
          type: string
        connection_id:
          type: string
        entity_id:
          type: string
        entity_type:
          type: string
        policy_id:
          type: string
        tenant_id:
          type: string
      required:
        - entity_type
      type: object
    CoverageGap:
      additionalProperties: false
      properties:
        code:
          description: Stable gap code.
          type: string
        owner:
          description: Who keeps the source that would fill the gap.
          enum:
            - firm
            - vertafore
            - nexio
          type: string
        section_field:
          description: >-
            Dotted path inside a derived read's section that holds this gap's
            fact: the gap applies when that value is empty.
          type: string
        section_lines:
          description: >-
            AMS 360 line codes the gap speaks to: it applies only when the
            read's line_codes name one.
          items:
            type: string
          type:
            - array
            - 'null'
        sentence:
          description: >-
            The gap in plain words: the source, the share it covers and whose it
            is to fill.
          type: string
      required:
        - code
        - sentence
        - owner
      type: object
    CoverageLate:
      additionalProperties: false
      properties:
        sentence:
          type: string
      required:
        - sentence
      type: object
    SubjectMember:
      additionalProperties: false
      properties:
        display_name:
          type: string
        id:
          type: string
        scope:
          type: string
      required:
        - id
        - display_name
        - scope
      type: object
    Column:
      additionalProperties: false
      properties:
        description:
          description: What the field holds, from the API contract.
          type: string
        key:
          description: >-
            The served field, dotted for a field inside an object:
            producer.name.
          type: string
        label:
          type: string
        sortable:
          description: The list's sort parameter takes this key.
          type: boolean
        type:
          enum:
            - text
            - number
            - date
            - boolean
            - list
            - object
          type: string
      required:
        - key
        - label
        - type
        - sortable
      type: object
    Option:
      additionalProperties: false
      properties:
        count:
          format: int64
          type: integer
        label:
          type: string
        parent:
          description: >-
            The value this option sits under, where the filter groups its
            values: an office's reporting market. Absent when it has none.
          type: string
        uncounted:
          description: >-
            True when the read did not count this option; count is then 0 and
            states nothing. Absent when counted.
          type: boolean
        value:
          type: string
      required:
        - value
        - label
        - count
      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.