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

# Find market appetite for a class

> Returns matched, weighed appetite cells across canonical markets. Requires catalog:read. NAICS sector rows match only sector asks; subsector and finer rows match broader or narrower asks. Class-agnostic rows never match; has_agreement independently reports a current contractual row for the requested line. Markets with only controlling declines sort last, then route_class ascending, strongest controlling eligibility (will_write, will_consider, not_assessed, approached_not_bound, will_not_write), agreement first, book policies descending, and name. total_markets counts all matches before limit. Book counts use the most specific matched observed row, else revealed: source_class_text first, then longest class_key, with larger sample.n breaking ties. Book class_key and class_level identify that rung; overlapping NAICS levels are never summed. An unlanded head returns colleague testimony only. Source references follow the seat's read policy. Every response uses Cache-Control: no-store.



## OpenAPI

````yaml /openapi.generated.json get /api/v1/catalog/appetite-synthesis
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:
  /api/v1/catalog/appetite-synthesis:
    get:
      tags:
        - Catalog
      summary: Find market appetite for a class
      description: >-
        Returns matched, weighed appetite cells across canonical markets.
        Requires catalog:read. NAICS sector rows match only sector asks;
        subsector and finer rows match broader or narrower asks. Class-agnostic
        rows never match; has_agreement independently reports a current
        contractual row for the requested line. Markets with only controlling
        declines sort last, then route_class ascending, strongest controlling
        eligibility (will_write, will_consider, not_assessed,
        approached_not_bound, will_not_write), agreement first, book policies
        descending, and name. total_markets counts all matches before limit.
        Book counts use the most specific matched observed row, else revealed:
        source_class_text first, then longest class_key, with larger sample.n
        breaking ties. Book class_key and class_level identify that rung;
        overlapping NAICS levels are never summed. An unlanded head returns
        colleague testimony only. Source references follow the seat's read
        policy. Every response uses Cache-Control: no-store.
      operationId: catalogAppetiteByClass
      parameters:
        - description: >-
            Repeatable NAICS code, at most 10 values, each 2 to 6 digits. Sector
            rows match only sector asks; finer rows match broader and narrower
            codes. At least one naics or keyword is required.
          explode: true
          in: query
          name: naics
          schema:
            description: >-
              Repeatable NAICS code, at most 10 values, each 2 to 6 digits.
              Sector rows match only sector asks; finer rows match broader and
              narrower codes. At least one naics or keyword is required.
            items:
              type: string
            type:
              - array
              - 'null'
        - description: >-
            Repeatable class-label substring, case-insensitive and trimmed; at
            most 10 values, each at most 60 characters.
          explode: true
          in: query
          name: keyword
          schema:
            description: >-
              Repeatable class-label substring, case-insensitive and trimmed; at
              most 10 values, each at most 60 characters.
            items:
              type: string
            type:
              - array
              - 'null'
        - description: >-
            Optional catalog line code. Includes that line and line-agnostic
            rows.
          explode: false
          in: query
          name: lob
          schema:
            description: >-
              Optional catalog line code. Includes that line and line-agnostic
              rows.
            type: string
        - description: >-
            Optional two-letter state code. Filters colleague testimony only;
            placed-book and guide evidence remain nationwide.
          explode: false
          in: query
          name: state
          schema:
            description: >-
              Optional two-letter state code. Filters colleague testimony only;
              placed-book and guide evidence remain nationwide.
            type: string
        - description: >-
            Active catalog connection. Required if more than one active
            connection exists.
          explode: false
          in: query
          name: connection_id
          schema:
            description: >-
              Active catalog connection. Required if more than one active
              connection exists.
            type: string
        - description: Maximum markets after global sort. Default 15, maximum 40.
          explode: false
          in: query
          name: limit
          schema:
            description: Maximum markets after global sort. Default 15, maximum 40.
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CatalogClassJSON'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Bad Request
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Forbidden
        '404':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Not Found
        '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:
    CatalogClassJSON:
      additionalProperties: false
      properties:
        head:
          $ref: '#/components/schemas/CatalogAppetiteSynthesisHeadJSON'
        markets:
          items:
            $ref: '#/components/schemas/CatalogClassMarketJSON'
          type:
            - array
            - 'null'
        meta:
          $ref: '#/components/schemas/CatalogClassMetaJSON'
        query:
          $ref: '#/components/schemas/ClassQuery'
        total_markets:
          format: int64
          type: integer
      required:
        - query
        - head
        - total_markets
        - markets
        - meta
      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
    CatalogAppetiteSynthesisHeadJSON:
      additionalProperties: false
      properties:
        derived_at:
          type:
            - string
            - 'null'
        landed:
          type: boolean
        stale:
          type: boolean
      required:
        - landed
        - derived_at
        - stale
      type: object
    CatalogClassMarketJSON:
      additionalProperties: false
      properties:
        all_declined:
          type: boolean
        am_best_rating:
          type: string
        best_eligibility:
          type: string
        book:
          anyOf:
            - $ref: '#/components/schemas/CatalogClassBookJSON'
            - type: 'null'
        cells:
          items:
            $ref: '#/components/schemas/CatalogAppetiteSynthesisCellJSON'
          type:
            - array
            - 'null'
        counterparty_type:
          type: string
        entity_key:
          type: string
        has_agreement:
          type: boolean
        name:
          type: string
        route_class:
          format: int64
          type: integer
        route_note:
          type: string
      required:
        - entity_key
        - name
        - am_best_rating
        - counterparty_type
        - route_class
        - route_note
        - has_agreement
        - best_eligibility
        - book
        - all_declined
        - cells
      type: object
    CatalogClassMetaJSON:
      additionalProperties: false
      properties:
        read_at:
          type: string
        state:
          type: string
        state_note:
          type: string
      required:
        - read_at
        - state
        - state_note
      type: object
    ClassQuery:
      additionalProperties: false
      properties:
        keywords:
          items:
            type: string
          type:
            - array
            - 'null'
        lob:
          type: string
        naics:
          items:
            type: string
          type:
            - array
            - 'null'
        state:
          type: string
      required:
        - naics
        - keywords
        - lob
        - state
      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
    CatalogClassBookJSON:
      additionalProperties: false
      properties:
        class_key:
          type: string
        class_level:
          type: string
        clients:
          format: int64
          type:
            - integer
            - 'null'
        policies:
          format: int64
          type: integer
        unit:
          type: string
      required:
        - policies
        - clients
        - unit
        - class_key
        - class_level
      type: object
    CatalogAppetiteSynthesisCellJSON:
      additionalProperties: false
      properties:
        cell_state:
          type: string
        class_key:
          type: string
        class_label:
          type: string
        class_level:
          type: string
        fast_path_rule:
          type: string
        lob_code:
          type: string
        rows:
          items:
            $ref: '#/components/schemas/CatalogAppetiteSynthesisRowJSON'
          type:
            - array
            - 'null'
        state_code:
          type: string
        state_note:
          type: string
        state_scope:
          type: string
      required:
        - class_key
        - class_level
        - class_label
        - lob_code
        - cell_state
        - rows
      type: object
    CatalogAppetiteSynthesisRowJSON:
      additionalProperties: false
      properties:
        actor:
          anyOf:
            - $ref: '#/components/schemas/CatalogAppetiteSynthesisActor'
            - type: 'null'
        added_by:
          type: string
        added_by_email:
          type: string
        added_by_note:
          type: string
        added_on:
          type: string
        channel:
          type: string
        confidence_band:
          type: string
        constraints:
          anyOf:
            - $ref: '#/components/schemas/AppetiteConstraints'
            - type: 'null'
        eligibility:
          type: string
        exclusion_withheld_by:
          type: string
        fidelity_class:
          format: int64
          type: integer
        gate_effect:
          type: string
        had_quote:
          description: >-
            The declined channel's closed outcome only: the market returned
            terms before the submission closed.
          type: boolean
        may_exclude:
          type: boolean
        notes:
          type: string
        observed_at:
          type:
            - string
            - 'null'
        outweighed_by:
          type: string
        rationale:
          type: string
        sample:
          $ref: '#/components/schemas/AppetiteSample'
        source_refs:
          items:
            $ref: '#/components/schemas/AppetiteSourceRef'
          type:
            - array
            - 'null'
        stored_eligibility:
          type: string
        tier:
          type: string
        weight_state:
          type: string
      required:
        - channel
        - had_quote
        - eligibility
        - confidence_band
        - fidelity_class
        - may_exclude
        - sample
        - source_refs
        - observed_at
        - weight_state
        - rationale
        - gate_effect
        - actor
        - constraints
      type: object
    CatalogAppetiteSynthesisActor:
      additionalProperties: false
      properties:
        email:
          type: string
        id:
          type: string
        name:
          type: string
      required:
        - id
      type: object
    AppetiteConstraints:
      additionalProperties: false
      properties:
        conditions:
          items:
            $ref: '#/components/schemas/MarketAppetiteCondition'
          type:
            - array
            - 'null'
        construction:
          type: string
        factor_order:
          items:
            type: string
          type:
            - array
            - 'null'
        max_building_tiv:
          format: int64
          type: integer
        max_frame_tiv:
          format: int64
          type: integer
        max_location_tiv:
          format: int64
          type: integer
        min_year_built:
          format: int64
          type: integer
        rehab_exception_note:
          type: string
        tenant_classes:
          items:
            type: string
          type:
            - array
            - 'null'
      type: object
    AppetiteSample:
      additionalProperties: false
      properties:
        client_count_is_upper_bound:
          type: boolean
        distinct_clients:
          format: int64
          type: integer
        distinct_policies:
          format: int64
          type: integer
        floor_met:
          type: boolean
        'n':
          format: int64
          type: integer
        rank_distinct_clients:
          format: int64
          type: integer
        rank_n:
          format: int64
          type: integer
        unit:
          type: string
      required:
        - unit
        - 'n'
        - rank_n
        - floor_met
      type: object
    AppetiteSourceRef:
      additionalProperties: false
      properties:
        actor_email:
          type: string
        actor_id:
          type: string
        actor_name:
          type: string
        as_of:
          type: string
        batch_set_id:
          type: string
        connection_id:
          type: string
        entity_key:
          type: string
        extraction_run_id:
          type: string
        kind:
          type: string
        ref:
          type: string
        source_intake_id:
          type: string
        version:
          type: string
      required:
        - kind
      type: object
    MarketAppetiteCondition:
      additionalProperties: false
      properties:
        applies_when:
          items:
            $ref: '#/components/schemas/MarketAppetiteConditionPredicate'
          type:
            - array
            - 'null'
        fact_key:
          type: string
        key:
          type: string
        label:
          type: string
        operator:
          type: string
        source:
          $ref: '#/components/schemas/MarketAppetiteConditionSource'
        value: {}
        verbatim:
          type: string
      required:
        - key
        - label
        - verbatim
        - fact_key
        - operator
        - source
      type: object
    MarketAppetiteConditionPredicate:
      additionalProperties: false
      properties:
        fact_key:
          type: string
        operator:
          type: string
        value: {}
      required:
        - fact_key
        - operator
      type: object
    MarketAppetiteConditionSource:
      additionalProperties: false
      properties:
        actor_email:
          type: string
        as_of:
          type: string
        id:
          type: string
        kind:
          type: string
        label:
          type: string
        row:
          format: int64
          type: integer
        sha256:
          type: string
        sheet:
          type: string
      required:
        - kind
        - label
      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.