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

# The Markets directory (parameters in the body)

> GET /records/markets/rollups/directory with its query parameters in a JSON body, keyed by their query names, so free text never travels in a URL. A repeatable parameter takes an array. The answer is the GET's; a query string is refused.



## OpenAPI

````yaml /openapi.generated.json post /records/markets/rollups/directory/search
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/markets/rollups/directory/search:
    post:
      tags:
        - markets
      summary: The Markets directory (parameters in the body)
      description: >-
        GET /records/markets/rollups/directory with its query parameters in a
        JSON body, keyed by their query names, so free text never travels in a
        URL. A repeatable parameter takes an array. The answer is the GET's; a
        query string is refused.
      operationId: getMarketsDirectorySearch
      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
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                annual_sales:
                  description: >-
                    With a class asked: the risk's annual sales in dollars, one
                    of the values the view block lists (250000 to 50000000); all
                    (or empty) states none. A row leaves the list only when
                    every source it folds that answers the class states a limit
                    refusing it; a row whose sources state no sales limit stays,
                    and each listed row's class_detail says which. Left out,
                    none applies: a saved view never holds it, and a line, state
                    or plain question ignores it.
                  type: string
                appointment:
                  description: >-
                    Only rows of one appointment relationship with the carrier:
                    at_office (the seat's office is appointed or wrote through
                    it: appointed and written_here together), appointed (the
                    acting seat's office holds an appointment, at market or
                    office level), written_here (the seat's office holds none,
                    but its carrier market sold with the carrier in the trailing
                    12 months), or any_office (the seat's office is appointed,
                    or another office of the firm holds an appointment code row
                    with the carrier; each row's firm_appointments then names
                    the offices to place through, the seat's own first, and
                    another office's appointment is never the seat's office's).
                    Absent keeps every row. Applied before the counts and the
                    page. appointed, written_here and any_office list carriers
                    with an empty profile too; at_office keeps include_empty's
                    rule; a seat with no resolved office answers no rows for
                    appointed, written_here or at_office. any_office answers 503
                    firm_appointments_unavailable when the firm's appointments
                    cannot be read.
                  enum:
                    - appointed
                    - written_here
                    - at_office
                    - any_office
                  type: string
                ask:
                  description: >-
                    A plain-language question resolved to a class, line and
                    state.
                  type: string
                class_naics:
                  description: A NAICS class the appetite must name.
                  type: string
                closing_hour:
                  description: >-
                    With a class asked: the hour the risk closes, on the
                    business-day clock: 21 (9 PM) to 28 (4 AM), or 48 (open
                    around the clock); all (or empty) states none. A row leaves
                    the list only when every source it folds that answers the
                    class states a limit refusing it; a row whose sources state
                    no closing-hour limit stays, and each listed row's
                    class_detail says which. Left out, none applies: a saved
                    view never holds it, and a line, state or plain question
                    ignores it. The view block lists each value with the rows it
                    keeps.
                  type: string
                company_id:
                  type: string
                connection_id:
                  description: The catalog connection; absent, the org's single active one.
                  type: string
                datasource_id:
                  description: 'With company_id: only this AMS source row.'
                  type: string
                entity_key:
                  description: >-
                    Only this catalog head's row (its entity key), with
                    group_companies: the companies of its group that keep their
                    own card. The carrier page's one-row read: the list view's
                    toggles (include_empty, include_terminated, hide.answer,
                    has_appetite, has_rating) never hide it. A head folded under
                    another head has no row of its own and answers none.
                  maxLength: 200
                  type: string
                facet_search:
                  description: >-
                    Narrows the product facet to values whose name or mapped
                    carrier wording contains this text.
                  type: string
                facets:
                  description: >-
                    Comma separated: product, product_type. Counted by the
                    platform over the rows that answer every filter but the
                    product question, under the seat's directory scope; only
                    values a row's appetite names appear.
                  type: string
                has_appetite:
                  description: >-
                    true keeps only rows with appetite on file (for the asked
                    class, when one is asked), and drops every row whose
                    appetite is not on file, even one confirmed in every asked
                    state. Leave it out for a state or line question. Left out,
                    the person's saved view or the default (false) applies.
                  enum:
                    - 'true'
                    - 'false'
                  type: string
                has_rating:
                  description: >-
                    true keeps only rows with a usable AM Best rating. Left out,
                    the person's saved view or the default (false) applies.
                  enum:
                    - 'true'
                    - 'false'
                  type: string
                hide.answer:
                  description: >-
                    unknown leaves out the rows whose answer to a line, class or
                    state question is not on file; none (or empty) shows them.
                    Left out, the person's saved view or the default applies:
                    hidden for a line or class question, shown for a state
                    question. A read with no such question ignores it. The view
                    block lists the value with its count.
                  type: string
                include_empty:
                  description: >-
                    true lists rows with no profile on file. Left out, the
                    person's saved view or the default (false) applies.
                  enum:
                    - 'true'
                    - 'false'
                  type: string
                include_terminated:
                  description: >-
                    true lists terminated appointments. Left out, the person's
                    saved view or the default (false) applies.
                  enum:
                    - 'true'
                    - 'false'
                  type: string
                line:
                  description: >-
                    A line code question, a code of GET
                    /records/products?view=lines (for example workers_comp); the
                    directory answers one. Any other value is a 400
                    (invalid_line).
                  type: string
                office:
                  description: >-
                    An office agency code to read as: one of the seat's own
                    offices, or for a seat with Markets edit (the carrier team,
                    an administrator) any office of the org. Absent, the seat's
                    own office.
                  maxLength: 40
                  type: string
                page:
                  type: string
                page_size:
                  description: Rows per page, 1 to 1000.
                  type: string
                product:
                  description: >-
                    Repeatable. Rows whose appetite names one of these products
                    (ids of /records/products) with an acceptable or
                    will-consider stance, read at each appetite row's declared
                    grain. An id outside the org's list is refused.
                  items:
                    type: string
                  type:
                    - array
                    - 'null'
                product_type:
                  description: >-
                    Repeatable. Rows whose appetite names one of these product
                    types (type ids of /records/products?level=type). One
                    question with product: a row answers either.
                  items:
                    type: string
                  type:
                    - array
                    - 'null'
                scope:
                  description: >-
                    Whose business each row's book_placed and the placed sorts
                    count: firm (the default), the whole firm; office, the
                    seat's office (the office parameter's, else its own); book,
                    the policies the seat's own producer codes hold. Each counts
                    the same business: commercial-lines policies placed in the
                    last five years with a NAICS sector, and their customers.
                    The envelope's scope names the scope answered and the ones
                    this seat can ask for; asking for one it cannot is a 400
                    (scope_unavailable).
                  enum:
                    - firm
                    - office
                    - book
                  type: string
                search:
                  description: >-
                    Words that start the row's names or its written papers'
                    names.
                  type: string
                sort:
                  description: >-
                    With none asked, the default: verdict when a naics is asked,
                    else premium_placed for a seat with an office list and
                    most_complete otherwise (the envelope's sort names the
                    applied order). most_complete, name, office (the seat's
                    office's appointed rows first), premium_placed or
                    policies_placed (the most premium or policies the scope
                    placed with the market first, the business book_placed
                    counts; with premium_placed each row carries premium_placed,
                    unless premium_withheld is true, when policies_placed
                    applies instead), policies_in_force (the former name of
                    policies_placed, the same order), rating (A.M. Best rating,
                    best first, unrated last), or verdict (with the carrier
                    appetite model on, the rows carrying appetite_grade first,
                    by grade: Excellent, Good, Fair, Weak, then Not enough on
                    file, the rows the question excludes after them, with the
                    order below breaking ties; then the asked class's
                    class_appetite.eligibility: acceptable, then will_consider,
                    then no class answer, then not_a_market with every row the
                    question excludes, which only this sort lists; inside each,
                    first the rows whose class answer states the asked class
                    itself, then those whose class_appetite.match_grain is
                    class, then by channel: the seat's office's appointed direct
                    carriers, then intermediaries it is appointed with or wrote
                    through, then other direct carriers, then the preferred
                    wholesalers, then every other wholesaler or MGA; with no
                    naics asked, that channel order alone). Ties fall to the
                    default order.
                  enum:
                    - most_complete
                    - name
                    - office
                    - premium_placed
                    - policies_placed
                    - policies_in_force
                    - rating
                    - verdict
                  type: string
                source_connection_id:
                  description: >-
                    The Markets directory source connection; absent, the org's
                    bound one.
                  type: string
                state:
                  description: >-
                    Repeatable. Rows confirmed in one of these states (two
                    letters each). Ask every state of a question in one call:
                    each row's state_evidence answers every asked state (listed,
                    excluded or not_on_file, with the line codes), and
                    view=brief serves that answer for every row without cutting
                    the page. A state question reads with has_appetite left out:
                    many carriers that write every asked state have no class
                    appetite on file.
                  items:
                    type: string
                  type:
                    - array
                    - 'null'
                state_evidence:
                  description: >-
                    listed keeps only the rows whose products list the asked
                    line in at least one asked state: the markets that write in
                    some of the states, each with state_evidence for every asked
                    state. Use it with state for a several-state question, with
                    hide.answer none, so a market with no class appetite on file
                    still answers. Applied before the counts and the page; with
                    no state asked it keeps every row.
                  enum:
                    - listed
                  type: string
                view:
                  description: >-
                    full (the default): each row as the Markets screen draws it,
                    with every written paper, the AMS identity, the paper
                    standing (appointment) and the provenance. brief: each row's
                    answer to the question only: market_ref, entity_key, name,
                    market_type, am_best_rating, office_appointment (the seat's
                    office appointment, the row's one appointment fact),
                    match_status, match_unknown_reasons, class_appetite,
                    state_evidence, class_detail, appetite_grade, line_codes,
                    appetite_class_count, appetite_context, book_placed,
                    book_lines, written_paper_count, product_matches and
                    asked_product_count, each as full serves it. states: the
                    brief row for a several-state question, about 0.5 KB a row:
                    market_ref, entity_key, name, market_type, am_best_rating,
                    office_appointment, match_status, match_unknown_reasons,
                    class_appetite, state_evidence, appetite_grade, line_codes,
                    appetite_class_count and written_paper_count, plus
                    firm_appointments under appointment=any_office. Filters,
                    counts, order and page are the same in every view.
                  enum:
                    - full
                    - brief
                    - states
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CatalogDirectoryEnvelope'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Bad Request
        '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
        '503':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Service Unavailable
      security:
        - bearer: []
components:
  schemas:
    CatalogDirectoryEnvelope:
      additionalProperties: false
      properties:
        answering_count:
          description: >-
            Under a NAICS question only: how many of the listed markets answer
            it, their stated appetite for the class acceptable or will consider.
            Markets with no class answer on file and markets the question
            excludes stay listed (total_matched, which sizes the pages) and are
            not counted here.
          format: int64
          type: integer
        appetite_markets_on_file:
          format: int64
          type: integer
        confirmed_count:
          format: int64
          type: integer
        facets:
          additionalProperties:
            items:
              $ref: '#/components/schemas/FacetValue'
            type:
              - array
              - 'null'
          type: object
        firm_appointments_unavailable:
          type: boolean
        firm_appointments_unplaced:
          $ref: '#/components/schemas/FirmAppointmentsUnplacedJSON'
          description: >-
            When the firm's appointments were read: the code table's carrier
            labels placed on no row, ambiguous or unmatched. A row without
            firm_appointments offices is then not proof that no office holds
            one.
        has_prohibited_class_data:
          type: boolean
        hidden_empty_count:
          format: int64
          type: integer
        inputs:
          items:
            $ref: '#/components/schemas/CatalogDirectoryInputJSON'
          type:
            - array
            - 'null'
        items:
          items:
            $ref: '#/components/schemas/CatalogDirectoryRowJSON'
          type:
            - array
            - 'null'
        office_appointments:
          $ref: '#/components/schemas/CatalogDirectoryOfficeAppointmentsJSON'
        office_appointments_unavailable:
          $ref: '#/components/schemas/OfficeAppointmentsUnavailableJSON'
        page:
          format: int64
          type: integer
        page_size:
          format: int64
          type: integer
        premium_withheld:
          description: >-
            True when this read withholds placed premium, whatever its sort: no
            row carries premium_placed and no order uses it. Premium shows only
            with scope=book, or scope=office for the seat's own offices. It is
            withheld for the whole firm, for another office a Markets editor
            names, and for the platform offices a platform leader places
            through. Withheld is never 0.
          type: boolean
        product_filter_active:
          type: boolean
        product_less_markets:
          format: int64
          type:
            - integer
            - 'null'
        question:
          $ref: '#/components/schemas/CatalogQuestionJSON'
        rated_markets_on_file:
          format: int64
          type: integer
        scope:
          $ref: '#/components/schemas/CatalogDirectoryScopeJSON'
        serving:
          $ref: '#/components/schemas/BookServingJSON'
        sort:
          description: >-
            The order the read applied: the asked sort, or with none asked the
            default, verdict when a naics is asked, else premium_placed (most
            business first) for a seat with an office list and most_complete
            otherwise. When premium_withheld is true, policies_placed replaces
            premium_placed, asked or default.
          enum:
            - most_complete
            - name
            - office
            - premium_placed
            - policies_placed
            - policies_in_force
            - rating
            - verdict
          type: string
        state_counts:
          additionalProperties:
            format: int64
            type: integer
          type: object
        terminated_count:
          format: int64
          type: integer
        total_corpus:
          format: int64
          type: integer
        total_directory:
          format: int64
          type: integer
        total_matched:
          format: int64
          type: integer
        total_matched_before_appetite:
          format: int64
          type: integer
        unknown_count:
          format: int64
          type: integer
        view:
          $ref: '#/components/schemas/View'
        written_papers_total:
          format: int64
          type: integer
      required:
        - total_directory
        - written_papers_total
        - hidden_empty_count
        - confirmed_count
        - unknown_count
        - terminated_count
        - appetite_markets_on_file
        - total_matched_before_appetite
        - rated_markets_on_file
        - state_counts
        - serving
        - scope
        - sort
        - premium_withheld
        - inputs
        - items
        - page
        - page_size
        - total_matched
        - total_corpus
        - has_prohibited_class_data
        - product_less_markets
        - product_filter_active
      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
    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
    FirmAppointmentsUnplacedJSON:
      additionalProperties: false
      properties:
        ambiguous_labels:
          description: >-
            Carrier labels whose name matches several directory markets of
            different carriers: which market they name is not known, so their
            offices show on none.
          format: int64
          type: integer
        unmatched_labels:
          description: Carrier labels that match no directory market.
          format: int64
          type: integer
      required:
        - ambiguous_labels
        - unmatched_labels
      type: object
    CatalogDirectoryInputJSON:
      additionalProperties: false
      properties:
        family:
          type: string
        role:
          enum:
            - items
            - office_appointments
            - relationship_holders
          type: string
        rows:
          format: int64
          type: integer
        source_coverage:
          $ref: '#/components/schemas/SourceCoverage'
        status:
          description: absent when this part of the answer holds no rows
          enum:
            - present
            - absent
          type: string
      required:
        - role
        - family
        - status
        - rows
        - source_coverage
      type: object
    CatalogDirectoryRowJSON:
      additionalProperties: false
      properties:
        agreement_ended_on:
          type: string
        agreement_year:
          format: int64
          type: integer
        aliases:
          items:
            $ref: '#/components/schemas/MarketsAlias'
          type:
            - array
            - 'null'
        am_best_rating:
          type:
            - string
            - 'null'
        ams_identity:
          $ref: '#/components/schemas/CatalogDirectoryIdentityJSON'
        any_all_licensed:
          type: boolean
        appetite_class_count:
          format: int64
          type: integer
        appetite_context:
          $ref: '#/components/schemas/MarketsAppetiteContext'
        appetite_eligibility_counts:
          $ref: '#/components/schemas/CatalogAppetiteEligibilityCountsJSON'
        appetite_grade:
          $ref: '#/components/schemas/MarketsAppetiteGrade'
          description: >-
            With a NAICS class asked and the carrier appetite model on: the
            market's grade for the class on the agency's own placements (the
            market's best company and asked state, never a sum), with one
            sentence of counts and the line graded. The verdict sort orders by
            it. Absent when the model is off or no placements are published.
        appetite_reference:
          $ref: '#/components/schemas/MarketAppetiteReference'
        appointment:
          $ref: '#/components/schemas/CatalogAppointmentSummaryJSON'
        asked_appetite:
          $ref: '#/components/schemas/CatalogAskedAppetiteJSON'
        asked_product_count:
          format: int64
          type: integer
        asked_products:
          items:
            $ref: '#/components/schemas/CatalogProductJSON'
          type: array
        backing:
          type:
            - string
            - 'null'
        book_lines:
          items:
            $ref: '#/components/schemas/CatalogBookLineJSON'
          type:
            - array
            - 'null'
        book_placed:
          $ref: '#/components/schemas/CatalogBookPlacedJSON'
        class_appetite:
          $ref: '#/components/schemas/MarketsClassAppetite'
        class_detail:
          description: >-
            With a class asked and closing_hour or annual_sales stated: each
            stated detail of the risk, with the limits on file for the class
            that admit it (admits) or none stated (silent). A row whose stated
            limit refuses the value is not listed.
          items:
            $ref: '#/components/schemas/MarketsClassDetail'
          type:
            - array
            - 'null'
        contract_link_status:
          type: string
        effective_year:
          format: int64
          type:
            - integer
            - 'null'
        entity_key:
          type:
            - string
            - 'null'
        firm_appointments:
          $ref: '#/components/schemas/CatalogDirectoryFirmAppointmentsJSON'
          description: >-
            With scope=firm or appointment=any_office: every office of the firm
            holding an appointment with the market's carrier (an appointment
            code row, or the asking seat's own office appointed by any source),
            the seat's own offices first; an empty list when none does. Absent
            otherwise, or when the firm's appointments could not be read
            (firm_appointments_unavailable).
        group_companies:
          description: >-
            With entity_key, on that head's row: the companies of its group that
            keep their own card (an AMS company whose book business the head's
            own figure counts, through the book's reviewed name links or the
            head's own key and aliases), by name, each with its own placed
            figure, its writing companies and, when the firm's appointments are
            read, the offices appointed with it. The group's own figure already
            counts their business. Empty on every other read.
          items:
            $ref: '#/components/schemas/CatalogDirectoryGroupCompanyJSON'
          type:
            - array
            - 'null'
        id:
          type: string
        legal_name:
          type: string
        line_codes:
          items:
            type: string
          type:
            - array
            - 'null'
        logo:
          anyOf:
            - $ref: '#/components/schemas/MarketLogoJSON'
              description: >-
                The carrier's stored logo; null when none is on file, and the
                screen draws the initials tile.
            - type: 'null'
        market_id:
          type: string
        market_ref:
          type: string
        market_type:
          type:
            - string
            - 'null'
        match_status:
          type: string
        match_unknown_reasons:
          items:
            type: string
          type:
            - array
            - 'null'
        name:
          type: string
        native_member_count:
          format: int64
          type: integer
        office_appointment:
          $ref: '#/components/schemas/CatalogDirectoryOfficeAppointmentJSON'
        parties:
          items:
            type: string
          type:
            - array
            - 'null'
        people:
          $ref: '#/components/schemas/CatalogDirectoryPeopleJSON'
          description: >-
            View full only: who in the firm wrote the market, as GET
            /records/market-people?kind=summary answers it for this seat and the
            page's state and line, from kept answers only. status read carries
            the summary (absent when no one wrote the market); book_pending says
            the seat's own book is not read yet at the warehouse's current data,
            so the summary counts every policy; reading means no answer is kept
            yet for this question; unavailable means the seat's people could not
            be read. Absent when the page asks more than one state. Read the
            summary route for a row that is not read; it keeps what it reads.
        premium_placed:
          description: >-
            With sort=premium_placed and premium_withheld false: the published
            premium of the business the read's scope placed with the market.
            When premium_placed_partial is true, this is a partial sum, not the
            complete premium. 0 when it placed none; absent when withheld.
          format: double
          type: number
        premium_placed_partial:
          description: >-
            Never set when premium_withheld is true. True when premium_placed
            omits withheld money or its source completeness is unknown. Describe
            the amount as at least, never as the complete premium. Withheld
            money is not zero.
          type: boolean
        product_count:
          format: int64
          type: integer
        product_matches:
          items:
            $ref: '#/components/schemas/Reference'
          type:
            - array
            - 'null'
        provenance:
          $ref: '#/components/schemas/CatalogProvenanceJSON'
        raw_lines:
          items:
            type: string
          type:
            - array
            - 'null'
        short_name:
          type: string
        source_parent:
          $ref: '#/components/schemas/CatalogDirectorySourceParentJSON'
        source_presence:
          type: string
        state_evidence:
          items:
            $ref: '#/components/schemas/MarketsStateEvidence'
          type:
            - array
            - 'null'
        symbol:
          anyOf:
            - $ref: '#/components/schemas/MarketLogoJSON'
              description: >-
                The carrier's square symbol, for a tile too small to read its
                logo; null when none is on file. The bytes are at the logo read
                with mark=symbol.
            - type: 'null'
        website:
          description: >-
            The carrier's website from its verified domain; null when none is on
            file.
          type:
            - string
            - 'null'
        written_paper_count:
          format: int64
          type: integer
        written_papers:
          items:
            $ref: '#/components/schemas/CatalogDirectoryWrittenPaperJSON'
          type:
            - array
            - 'null'
        written_states:
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - written_papers
        - written_paper_count
        - aliases
        - group_companies
        - contract_link_status
        - entity_key
        - market_ref
        - native_member_count
        - source_presence
        - match_status
        - match_unknown_reasons
        - website
        - logo
        - symbol
        - id
        - market_id
        - name
        - short_name
        - market_type
        - am_best_rating
        - effective_year
        - provenance
        - backing
        - product_count
        - line_codes
        - raw_lines
        - written_states
        - any_all_licensed
        - appointment
        - appetite_class_count
      type: object
    CatalogDirectoryOfficeAppointmentsJSON:
      additionalProperties: false
      properties:
        appointed_count:
          format: int64
          type: integer
        carrier_market:
          type: string
        office_agency_code:
          type: string
        office_name:
          type: string
        written_count:
          format: int64
          type: integer
      required:
        - office_agency_code
        - office_name
        - carrier_market
        - appointed_count
        - written_count
      type: object
    OfficeAppointmentsUnavailableJSON:
      additionalProperties: false
      properties:
        reason:
          enum:
            - warehouse_timeout
            - warehouse_error
            - office_unresolved
          type: string
      required:
        - reason
      type: object
    CatalogQuestionJSON:
      additionalProperties: false
      properties:
        class_keyword:
          type:
            - string
            - 'null'
        line:
          type:
            - string
            - 'null'
        naics:
          type:
            - string
            - 'null'
        product_types:
          items:
            type: string
          type:
            - array
            - 'null'
        products:
          items:
            type: string
          type:
            - array
            - 'null'
        state:
          type:
            - string
            - 'null'
        states:
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - naics
        - class_keyword
        - state
        - line
      type: object
    CatalogDirectoryScopeJSON:
      additionalProperties: false
      properties:
        options:
          description: The scopes this seat can ask for, firm first.
          items:
            type: string
          type:
            - array
            - 'null'
        value:
          description: The scope the figures count.
          enum:
            - firm
            - office
            - book
          type: string
      required:
        - value
        - options
      type: object
    BookServingJSON:
      additionalProperties: false
      properties:
        as_of:
          format: date-time
          type: string
        batch_set_id:
          type: string
        binding_id:
          type: string
        lens:
          $ref: '#/components/schemas/BookLensJSON'
        overlay_rev:
          format: int64
          type: integer
        read_pin:
          format: date-time
          type: string
        source:
          $ref: '#/components/schemas/BookReadSourceJSON'
      required:
        - overlay_rev
        - as_of
      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
    ProblemError:
      additionalProperties: false
      properties:
        location:
          description: Where the input was, for example query.limit.
          type: string
        message:
          type: string
        value: {}
      required:
        - message
      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
    MarketsAlias:
      additionalProperties: false
      properties:
        company_code:
          type: string
        company_id:
          type: string
        datasource_id:
          type: string
        kind:
          type: string
        name:
          type: string
      required:
        - datasource_id
        - company_id
        - company_code
        - name
        - kind
      type: object
    CatalogDirectoryIdentityJSON:
      additionalProperties: false
      properties:
        code_conflict:
          type: boolean
        company_code:
          type: string
        company_id:
          type: string
        connection_id:
          type: string
        datasource_id:
          type: string
        identity_conflict:
          type: boolean
        orphan_paper:
          type: boolean
        status:
          type: string
      required:
        - identity_conflict
        - code_conflict
        - orphan_paper
        - connection_id
        - datasource_id
        - company_id
        - company_code
        - status
      type: object
    MarketsAppetiteContext:
      additionalProperties: false
      properties:
        items:
          items:
            $ref: '#/components/schemas/MarketsAppetiteContextItem'
          type:
            - array
            - 'null'
        total:
          format: int64
          type: integer
      required:
        - total
        - items
      type: object
    CatalogAppetiteEligibilityCountsJSON:
      additionalProperties: false
      properties:
        acceptable:
          format: int64
          type: integer
        not_a_market:
          format: int64
          type: integer
        will_consider:
          format: int64
          type: integer
      required:
        - acceptable
        - will_consider
        - not_a_market
      type: object
    MarketsAppetiteGrade:
      additionalProperties: false
      properties:
        grade:
          description: >-
            The grade on the agency's own placements of the class: Excellent,
            Good, Fair, Weak or Not enough on file. The sentence leads with it;
            a client renders the sentence, never a copy of these words.
          type: string
        line:
          description: >-
            The line graded: the asked line, or with none asked, the line the
            agency places the class's industry group (four-digit NAICS) on most.
          type: string
        sentence:
          description: >-
            The grade with its counts in one sentence, for example Excellent: 23
            clients placed in NAICS 4841 on commercial auto in 36 months; 41 on
            the line in IL. No count under 5 clients is printed.
          type: string
      required:
        - grade
        - sentence
        - line
      type: object
    MarketAppetiteReference:
      additionalProperties: false
      properties:
        company_id:
          type: string
        connection_id:
          type: string
        datasource_id:
          type: string
        entity_key:
          type: string
        kind:
          type: string
      required:
        - kind
        - connection_id
      type: object
    CatalogAppointmentSummaryJSON:
      additionalProperties: false
      properties:
        agreement:
          anyOf:
            - $ref: '#/components/schemas/CatalogStandingAgreementJSON'
              description: >-
                The agreement the standing rests on: the one in force when
                current, the last to end when terminated; null otherwise.
            - type: 'null'
        execution_backed:
          type: boolean
        statement:
          description: >-
            One sentence: whether we can place with the carrier today, and under
            which agreement.
          type: string
        status:
          type: string
        via_prior_names_only:
          type: boolean
      required:
        - status
        - execution_backed
        - via_prior_names_only
        - statement
        - agreement
      type: object
    CatalogAskedAppetiteJSON:
      additionalProperties: false
      properties:
        business_class:
          type: string
        cell_count:
          format: int64
          type: integer
        confidence:
          format: double
          type:
            - number
            - 'null'
        eligibility:
          type: string
        line:
          type: string
        line_code:
          type: string
        market_entity_key:
          type: string
        product_grain:
          enum:
            - product
            - type
          type: string
        product_id:
          type:
            - string
            - 'null'
        product_source_text:
          type: string
        product_unmatched_reason:
          type:
            - string
            - 'null'
        provenance:
          $ref: '#/components/schemas/CatalogProvenanceJSON'
        segment:
          type: string
        signals:
          $ref: '#/components/schemas/CatalogSignalsJSON'
        verdict:
          description: >-
            What the eligibility tells a producer: writes (send it), considers
            (ask first), wont_write (do not send), or unstated when the token is
            outside the eligibility vocabulary. Read from eligibility, whose
            provenance is the cell's source.
          enum:
            - writes
            - considers
            - wont_write
            - unstated
          type: string
      required:
        - cell_count
        - market_entity_key
        - segment
        - business_class
        - line
        - line_code
        - eligibility
        - verdict
        - confidence
        - provenance
        - product_id
        - product_grain
        - product_source_text
        - product_unmatched_reason
      type: object
    CatalogProductJSON:
      additionalProperties: false
      properties:
        appetite_strength:
          type:
            - string
            - 'null'
        avoided:
          type: boolean
        band_max_cents:
          format: int64
          type:
            - integer
            - 'null'
        band_min_cents:
          format: int64
          type:
            - integer
            - 'null'
        citations:
          additionalProperties:
            $ref: '#/components/schemas/CatalogCitationJSON'
          type: object
        commission_is_percent:
          type:
            - boolean
            - 'null'
        commission_new:
          format: double
          type:
            - number
            - 'null'
        commission_new_fraction:
          format: double
          type:
            - number
            - 'null'
        commission_renewal:
          format: double
          type:
            - number
            - 'null'
        commission_renewal_fraction:
          format: double
          type:
            - number
            - 'null'
        commission_tier_kind:
          type: string
        effective_date:
          type:
            - string
            - 'null'
        eligible_states:
          items:
            type: string
          type:
            - array
            - 'null'
        excluded_states:
          items:
            type: string
          type:
            - array
            - 'null'
        governing:
          type: boolean
        governing_exclusions:
          items:
            type: string
          type:
            - array
            - 'null'
        held_for_review:
          type: boolean
        id:
          type: string
        issuing_company:
          type:
            - string
            - 'null'
        line:
          type: string
        line_class:
          type: string
        line_code:
          type:
            - string
            - 'null'
        line_group:
          type:
            - string
            - 'null'
        market_entity_key:
          type: string
        placement_group_rank:
          format: int64
          type: integer
        policy_condition:
          type:
            - string
            - 'null'
        product_grain:
          enum:
            - product
            - type
          type: string
        product_id:
          type:
            - string
            - 'null'
        product_key:
          type: string
        product_name:
          type:
            - string
            - 'null'
        product_source_text:
          type: string
        product_unmatched_reason:
          type:
            - string
            - 'null'
        program_parent:
          type:
            - string
            - 'null'
        prohibited_naics:
          items:
            type: string
          type:
            - array
            - 'null'
        provenance:
          $ref: '#/components/schemas/CatalogProvenanceJSON'
        raw_label:
          type: string
        register_group_rank:
          format: int64
          type: integer
        signals:
          $ref: '#/components/schemas/CatalogSignalsJSON'
        source_line_label:
          type:
            - string
            - 'null'
        state_scope:
          type:
            - string
            - 'null'
        tier_basis:
          type: string
        variant_rank:
          format: int64
          type: integer
      required:
        - commission_new_fraction
        - commission_renewal_fraction
        - id
        - product_key
        - market_entity_key
        - line
        - line_code
        - line_class
        - product_name
        - commission_new
        - commission_renewal
        - commission_is_percent
        - source_line_label
        - policy_condition
        - appetite_strength
        - excluded_states
        - prohibited_naics
        - state_scope
        - avoided
        - provenance
        - citations
        - eligible_states
        - effective_date
        - issuing_company
        - program_parent
        - line_group
        - raw_label
        - commission_tier_kind
        - tier_basis
        - band_min_cents
        - band_max_cents
        - placement_group_rank
        - register_group_rank
        - product_id
        - product_grain
        - product_source_text
        - product_unmatched_reason
      type: object
    CatalogBookLineJSON:
      additionalProperties: false
      properties:
        classes:
          description: >-
            The policies on this line in each of the market's largest four-digit
            NAICS industry groups by policies over every line, at most five.
            Every line carries the same groups in the same order; a group the
            line has no policies in reads 0 and names why in blank.
          items:
            $ref: '#/components/schemas/CatalogBookClassJSON'
          type:
            - array
            - 'null'
        clients:
          format: int64
          type: integer
        line_code:
          type: string
        policies:
          format: int64
          type: integer
      required:
        - line_code
        - policies
        - clients
        - classes
      type: object
    CatalogBookPlacedJSON:
      additionalProperties: false
      properties:
        clients:
          format: int64
          type: integer
        policies:
          format: int64
          type: integer
        sectors:
          format: int64
          type: integer
      required:
        - sectors
        - policies
        - clients
      type: object
    MarketsClassAppetite:
      additionalProperties: false
      properties:
        dated:
          description: >-
            The date of the guide document the line was read in, the date the
            market's page cites the guide by; null on an assertion and on an
            undated document.
          format: date-time
          type:
            - string
            - 'null'
        eligibility:
          enum:
            - acceptable
            - will_consider
            - not_a_market
          type: string
        label:
          type: string
        line_codes:
          items:
            type: string
          type:
            - array
            - 'null'
        line_named:
          type: boolean
        match_grain:
          enum:
            - class
            - sector
          type: string
        matched_term:
          type: string
        preferred:
          $ref: '#/components/schemas/MarketsClassPreferred'
          description: >-
            A guide line on file that names the asked class a preferred, top or
            target class, with the guide's own words; null when no guide says
            so.
        publisher:
          type:
            - string
            - 'null'
        retrieved_at:
          format: date-time
          type:
            - string
            - 'null'
        source_blob_ref:
          type:
            - string
            - 'null'
        source_kind:
          enum:
            - guide
            - assertion
          type: string
        states_named:
          items:
            type: string
          type:
            - array
            - 'null'
        verdict:
          enum:
            - stated
            - declined
          type: string
      required:
        - verdict
        - eligibility
        - line_named
        - line_codes
        - states_named
        - source_kind
        - source_blob_ref
        - label
        - match_grain
        - matched_term
        - retrieved_at
        - publisher
        - dated
        - preferred
      type: object
    MarketsClassDetail:
      additionalProperties: false
      properties:
        asked:
          description: >-
            The stated value: the closing hour on the business-day clock (23 is
            11 PM, 24 midnight, 26 2 AM, 48 open around the clock), or annual
            sales in dollars.
          format: double
          type: number
        fact:
          enum:
            - closing_hour
            - annual_sales
          type: string
        limits:
          description: >-
            The limits on file that admit the stated value, each with its source
            line; empty when silent.
          items:
            $ref: '#/components/schemas/MarketsClassLimit'
          type:
            - array
            - 'null'
        status:
          enum:
            - admits
            - silent
          type: string
      required:
        - fact
        - asked
        - status
        - limits
      type: object
    CatalogDirectoryFirmAppointmentsJSON:
      additionalProperties: false
      properties:
        office_count:
          description: >-
            How many offices of the firm hold an appointment with the carrier:
            an appointment code row, or the asking seat's own office appointed
            by any source.
          format: int64
          type: integer
        offices:
          description: >-
            Those offices: the asking seat's own offices first, then the others,
            each group by name.
          items:
            $ref: '#/components/schemas/CatalogDirectoryFirmAppointmentJSON'
          type:
            - array
            - 'null'
      required:
        - office_count
        - offices
      type: object
    CatalogDirectoryGroupCompanyJSON:
      additionalProperties: false
      properties:
        book_placed:
          $ref: '#/components/schemas/CatalogBookPlacedJSON'
          description: >-
            The business the read's scope placed under the company's own names,
            as its own card's book_placed. Absent when none.
        company_code:
          type: string
        firm_appointments:
          $ref: '#/components/schemas/CatalogDirectoryFirmAppointmentsJSON'
          description: >-
            With scope=firm or appointment=any_office: the offices of the firm
            appointed with the company, as the company's own card shows them.
            Absent otherwise.
        market_ref:
          type: string
        name:
          type: string
        papers:
          description: The writing companies filed under the company in AMS 360, by name.
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - market_ref
        - name
        - company_code
        - papers
      type: object
    MarketLogoJSON:
      additionalProperties: false
      properties:
        etag:
          description: >-
            The logo's version: a prefix of its sha256. Pass it as v= on the
            logo read to cache the bytes for good.
          type: string
        fit:
          description: >-
            How a square tile draws the file: fill is a near-square file that
            carries its own safe area (a bare mark inset in the file, or a
            filled tile to its edge), drawn edge to edge and clipped to the
            tile's corners; pad is a wordmark or a file stored before it was
            normalized, inset with even padding.
          enum:
            - fill
            - pad
          type: string
        format:
          enum:
            - svg
            - png
            - webp
            - jpeg
          type: string
        height:
          description: >-
            Pixels for a raster; the viewBox height for an SVG. Null when the
            file does not state it.
          format: int64
          type:
            - integer
            - 'null'
        width:
          description: >-
            Pixels for a raster; the viewBox width for an SVG. Null when the
            file does not state it.
          format: int64
          type:
            - integer
            - 'null'
      required:
        - etag
        - format
        - width
        - height
        - fit
      type: object
    CatalogDirectoryOfficeAppointmentJSON:
      additionalProperties: false
      properties:
        agency_codes:
          items:
            type: string
          type:
            - array
            - 'null'
        carrier_market:
          type: string
        level:
          description: >-
            The appointment's grant: market (a Market Level code: every office
            in the carrier market is appointed) or office (an office code or the
            2026-09-21 appointment tracker). Meaningful only when status is
            appointed; a written_here row is office.
          enum:
            - market
            - office
          type: string
        office_agency_code:
          type: string
        office_name:
          type: string
        office_of:
          description: >-
            Whose office this is: asking_seat, the office of the seat the read
            runs as (the signed-in user, or the seat viewed as). The seat
            decides the office; an asked state never does.
          enum:
            - asking_seat
          type: string
        request:
          $ref: '#/components/schemas/OfficeAppointmentRequestJSON'
          description: >-
            The newest open request from the seat's office (or one for every
            office) for an appointment or broker agreement with this market.
            Served only while the status is not appointed.
        sources:
          description: >-
            Where the status comes from: carrier_platform_codes (the Company
            Manager code table), appointment_tracker (the 2026-09-21 appointment
            tracker, for a carrier the code table does not list for the office),
            workbench_on_file (an appointment or broker agreement someone added
            from a market card, for a carrier neither lists), sold_business, or
            workbench_request for a requested status.
          items:
            type: string
          type:
            - array
            - 'null'
        status:
          description: >-
            appointed, written_here, or requested: no source places the office
            with the market and someone at the office asked for an appointment
            or a broker agreement (request).
          enum:
            - appointed
            - written_here
            - requested
          type: string
      required:
        - office_of
        - status
        - level
        - office_agency_code
        - office_name
        - carrier_market
        - agency_codes
        - sources
      type: object
    CatalogDirectoryPeopleJSON:
      additionalProperties: false
      properties:
        book_pending:
          description: >-
            The seat's book scope is narrower than the whole book and is not
            read yet at the warehouse's current data: the summary counts every
            policy until it is, as kind=summary names it in unreachable.
          type: boolean
        kept_at:
          description: >-
            Set when the summary is the answer kept at an earlier warehouse
            version or read day, served while the current one builds (at most 36
            h old): the instant it was kept. Absent when the answer is current.
          format: date-time
          type: string
        status:
          description: >-
            read: summary is the answer (absent when no one wrote the market).
            reading: no answer is kept yet for this question. unavailable: the
            seat's people could not be read.
          enum:
            - read
            - reading
            - unavailable
          type: string
        summary:
          $ref: '#/components/schemas/MarketPersonRecord'
          description: The market's summary row, as kind=summary serves it.
      required:
        - status
      type: object
    Reference:
      additionalProperties: false
      properties:
        product_grain:
          enum:
            - product
            - type
          type: string
        product_id:
          type:
            - string
            - 'null'
        product_source_text:
          type: string
        product_unmatched_reason:
          type:
            - string
            - 'null'
      required:
        - product_id
        - product_grain
        - product_source_text
        - product_unmatched_reason
      type: object
    CatalogProvenanceJSON:
      additionalProperties: false
      properties:
        effective_from:
          format: date-time
          type: string
        extraction_run_id:
          type:
            - string
            - 'null'
        source_blob_ref:
          type:
            - string
            - 'null'
        source_label:
          type:
            - string
            - 'null'
        source_removed_at:
          format: date-time
          type: string
      required:
        - source_blob_ref
        - source_label
        - extraction_run_id
        - effective_from
      type: object
    CatalogDirectorySourceParentJSON:
      additionalProperties: false
      properties:
        company_code:
          type: string
        company_id:
          type: string
        company_type:
          type: string
        connection_id:
          type: string
        datasource_id:
          type: string
        name:
          type: string
      required:
        - connection_id
        - datasource_id
        - company_id
        - company_code
        - name
        - company_type
      type: object
    MarketsStateEvidence:
      additionalProperties: false
      properties:
        line_codes:
          items:
            type: string
          type:
            - array
            - 'null'
        state:
          type: string
        status:
          enum:
            - listed
            - excluded
            - not_on_file
          type: string
      required:
        - state
        - status
        - line_codes
      type: object
    CatalogDirectoryWrittenPaperJSON:
      additionalProperties: false
      properties:
        ams_status:
          type: string
        company_code:
          type: string
        company_id:
          type: string
        connection_id:
          type: string
        datasource_id:
          type: string
        entity_key:
          type: string
        has_appetite:
          type: boolean
        kind:
          type: string
        name:
          type: string
      required:
        - connection_id
        - kind
        - entity_key
        - datasource_id
        - company_id
        - company_code
        - name
        - ams_status
        - has_appetite
      type: object
    BookLensJSON:
      additionalProperties: false
      properties:
        display_name:
          type: string
        scope_kind:
          type: string
        target:
          type: string
      required:
        - target
        - display_name
        - scope_kind
      type: object
    BookReadSourceJSON:
      additionalProperties: false
      properties:
        current:
          type: boolean
        fetched_at:
          format: date-time
          type: string
        freshness:
          type: string
        mode:
          type: string
        stale_since:
          format: date-time
          type: string
      required:
        - mode
        - fetched_at
      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
    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
    MarketsAppetiteContextItem:
      additionalProperties: false
      properties:
        actor_email:
          type: string
        business_class_label:
          type: string
        eligibility:
          type: string
        line_code:
          type: string
        route_ref:
          type: string
        route_scope:
          type: string
        source:
          type: string
        state_code:
          type: string
        state_scope:
          type: string
        updated_at:
          type: string
      required:
        - business_class_label
        - line_code
        - state_scope
        - route_scope
        - eligibility
        - source
        - updated_at
      type: object
    CatalogStandingAgreementJSON:
      additionalProperties: false
      properties:
        effective_from_date:
          type:
            - string
            - 'null'
        effective_to_date:
          type:
            - string
            - 'null'
        party:
          description: >-
            The agency family the agreement is attributed to (the paper's party,
            resolved through the profile's agency codes); empty when the paper
            states none.
          type: string
        prior_name:
          description: The agreement is held under a prior agency name.
          type: boolean
        source_blob_ref:
          type:
            - string
            - 'null'
      required:
        - party
        - prior_name
        - effective_from_date
        - effective_to_date
        - source_blob_ref
      type: object
    CatalogSignalsJSON:
      additionalProperties: false
      type: object
    CatalogCitationJSON:
      additionalProperties: false
      properties:
        field_path:
          type:
            - string
            - 'null'
        grain:
          type: string
        page:
          format: int64
          type:
            - integer
            - 'null'
        quote:
          type:
            - string
            - 'null'
        region:
          $ref: '#/components/schemas/CatalogCitationRegionJSON'
        source_blob_ref:
          type:
            - string
            - 'null'
      required:
        - source_blob_ref
        - field_path
        - quote
        - page
        - region
        - grain
      type: object
    CatalogBookClassJSON:
      additionalProperties: false
      properties:
        blank:
          description: >-
            Why a cell with no policies is empty, from the market's own records,
            the first that holds. not_in_contract: the market's current
            commission schedule names lines and not this one. not_in_guide: its
            appetite guide names nothing on this line, or only declines there.
            none_placed: the book holds no policy here (every policy in the
            subsector sits on a landed line, and every policy of the line there
            in a landed group). too_few_or_none: policies in the group's
            subsector sit below the disclosure floor, so the cell holds none or
            too few to show; never how many. Absent on a cell with policies.
          enum:
            - not_in_contract
            - not_in_guide
            - none_placed
            - too_few_or_none
          type: string
        naics:
          description: The four-digit NAICS industry group code.
          type: string
        policies:
          format: int64
          type: integer
        title:
          description: >-
            The NAICS 2022 industry group title; absent when Census publishes
            none for the code.
          type: string
      required:
        - naics
        - policies
      type: object
    MarketsClassPreferred:
      additionalProperties: false
      properties:
        label:
          description: The guide's class text the words name, as written.
          type: string
        source_blob_ref:
          description: The guide document the line was read in.
          type:
            - string
            - 'null'
        wording:
          description: >-
            The guide's own words naming the class preferred, for example
            Top/Target Classes.
          type: string
      required:
        - wording
        - label
        - source_blob_ref
      type: object
    MarketsClassLimit:
      additionalProperties: false
      properties:
        label:
          type: string
        operator:
          enum:
            - <=
            - '>='
          type: string
        source:
          $ref: '#/components/schemas/MarketsClassLimitSource'
        state:
          type: string
        value:
          format: double
          type: number
        verbatim:
          description: The source's own words.
          type: string
      required:
        - operator
        - value
        - label
        - verbatim
        - source
      type: object
    CatalogDirectoryFirmAppointmentJSON:
      additionalProperties: false
      properties:
        agency_code:
          type: string
        asking_seat:
          description: >-
            True when the office is one of the asking seat's own offices, or the
            office a read names in its office parameter. False for another
            office: its appointment is that office's, to place through that
            office, and is no appointment of the seat's office and no access to
            that office's accounts. False too when the seat's office could not
            be resolved.
          type: boolean
        name:
          type: string
      required:
        - agency_code
        - name
        - asking_seat
      type: object
    OfficeAppointmentRequestJSON:
      additionalProperties: false
      properties:
        agreement:
          enum:
            - appointment
            - broker_agreement
          type: string
        created_at:
          format: date-time
          type: string
        id:
          type: string
        office_agency_code:
          type: string
        requested_by:
          description: The e-mail of the person who asked.
          type: string
      required:
        - id
        - agreement
        - office_agency_code
        - requested_by
        - created_at
      type: object
    MarketPersonRecord:
      additionalProperties: false
      properties:
        accounts:
          description: >-
            Distinct accounts with policies on the market in the window. For a
            seat whose book scope is not the whole book, only those inside the
            seat's own scope; null when the row has none there.
          format: int64
          type:
            - integer
            - 'null'
        ask:
          $ref: '#/components/schemas/MarketPeopleAsk'
          description: >-
            summary rows: the person to ask at the top office; absent when the
            office has no Market Leader and no active writer. The first of asks
            when its role is market_leader or top_writer.
        asks:
          description: >-
            summary rows: up to 4 people to ask, ranked: the market's active
            writers at the seat's office, then the top office's Market Leader,
            else its top writer, then the market's other active writers; within
            each, by accounts, then name; never the seat itself. Counts follow
            the read's state and line.
          items:
            $ref: '#/components/schemas/MarketPeopleAsk'
          type:
            - array
            - 'null'
        email:
          description: The person's work address (person rows).
          type: string
        id:
          description: >-
            person:&lt;HR employee id&gt;, office:&lt;agency code&gt; or
            summary:&lt;market_ref&gt;; unique with market_ref.
          type: string
        kind:
          description: >-
            person: an active employee whose producer code wrote the market.
            office: an office with policies on the market, terminated and house
            codes included. summary: the market's top office with the person to
            ask there, its people and its offices, counted inside the seat's own
            book scope when any policy is there, else over every policy; while a
            narrower book is still being read at the warehouse's current data,
            over every policy, and unreachable names book_scope. Its accounts
            and policies follow the accounts rule.
          enum:
            - person
            - office
            - summary
          type: string
        largest_account_premium:
          description: >-
            The largest account's premium on the market: the latest term of each
            of its policies in the window, summed over those inside the seat's
            own book scope; null outside that scope and on office rows.
          format: double
          type:
            - number
            - 'null'
        last_written:
          description: The latest policy effective date, YYYY-MM-DD.
          type: string
        lines:
          description: The lines of business written, as the policies name them.
          items:
            type: string
          type:
            - array
            - 'null'
        market_leader:
          description: >-
            The nearest Market Leader in the person's HR chain, the person
            included; on an office row, the one most of its writers report
            through.
          type: string
        market_leader_email:
          type: string
        market_ref:
          description: The Markets directory row the market key resolved to.
          type: string
        name:
          description: The person's name as HR records it (person rows).
          type: string
        office:
          description: The office name.
          type: string
        office_code:
          description: >-
            The office's agency code: the office most of the person's policies
            sit in, or the office row's own.
          type: string
        office_state:
          description: The office's state.
          type: string
        offices:
          description: >-
            summary rows: every office that wrote the market in the summary's
            scope, terminated and house codes included.
          format: int64
          type: integer
        people:
          description: >-
            Active writers at the office (office rows), or of the market in the
            summary's scope (summary rows).
          format: int64
          type: integer
        person_id:
          description: The HR employee id (person rows).
          type: string
        platform:
          description: The office's platform.
          type: string
        policies:
          description: >-
            Policies on the market in the window. For a seat whose book scope is
            not the whole book, only those inside the seat's own scope; null
            when the row has none there.
          format: int64
          type:
            - integer
            - 'null'
        title:
          description: The person's HR job title (person rows).
          type: string
        vp_sales:
          description: >-
            The nearest VP of sales in the person's HR chain; on an office row,
            the one most of its writers report through.
          type: string
        vp_sales_email:
          type: string
      required:
        - id
        - market_ref
        - kind
        - office_code
        - office
        - office_state
        - platform
        - accounts
        - policies
        - largest_account_premium
        - lines
        - last_written
      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
    CatalogCitationRegionJSON:
      additionalProperties: false
      properties:
        h:
          format: double
          type: number
        w:
          format: double
          type: number
        x:
          format: double
          type: number
        'y':
          format: double
          type: number
      required:
        - x
        - 'y'
        - w
        - h
      type: object
    MarketsClassLimitSource:
      additionalProperties: false
      properties:
        as_of:
          type: string
        kind:
          enum:
            - workbook
            - testimony
          type: string
        label:
          type: string
        row:
          format: int64
          type: integer
        sheet:
          type: string
      required:
        - kind
        - label
      type: object
    MarketPeopleAsk:
      additionalProperties: false
      properties:
        accounts:
          description: >-
            Their distinct accounts on the market in the window; 0 for a Market
            Leader who wrote none. For a seat whose book scope is not the whole
            book, only those inside the seat's own scope; null when they have
            none there.
          format: int64
          type:
            - integer
            - 'null'
        email:
          type: string
        market_leader:
          description: The nearest Market Leader in their HR chain, the person included.
          type: string
        market_leader_email:
          type: string
        name:
          type: string
        office:
          description: That office's name.
          type: string
        office_code:
          description: >-
            The office they are asked at: the top office for market_leader and
            top_writer, else the office most of their policies on the market sit
            in.
          type: string
        office_state:
          description: That office's state.
          type: string
        person_id:
          description: The HR employee id.
          type: string
        policies:
          description: >-
            Their policies on the market in the window, in the read's state and
            line when asked. For a seat whose book scope is not the whole book,
            only those inside the seat's own scope; null when they have none
            there.
          format: int64
          type:
            - integer
            - 'null'
        role:
          description: >-
            office_colleague: an active writer of the market whose office is one
            of the seat's. market_leader: the top office's Market Leader.
            top_writer: the top office has none, so its active writer with the
            most accounts there. writer: another active writer of the market.
          enum:
            - office_colleague
            - market_leader
            - top_writer
            - writer
          type: string
        title:
          description: The HR job title.
          type: string
      required:
        - name
        - role
        - accounts
        - policies
      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.