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

# Fold opportunity signals per named account

> The active run's rows folded per named account (at most 100 keys, one register page) under the caller's book scope. An account the caller may not read, or that carries no row, is absent.



## OpenAPI

````yaml /openapi.generated.json get /records/opportunity-signals/summary
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/opportunity-signals/summary:
    get:
      tags:
        - opportunity-signals
      summary: Fold opportunity signals per named account
      description: >-
        The active run's rows folded per named account (at most 100 keys, one
        register page) under the caller's book scope. An account the caller may
        not read, or that carries no row, is absent.
      operationId: summarizeOpportunitySignals
      parameters:
        - description: >-
            The member the read is made for (a WorkOS user id). Unset keeps the
            org-wide posture the key alone grants.
          in: header
          name: Nexio-Act-As
          schema:
            description: >-
              The member the read is made for (a WorkOS user id). Unset keeps
              the org-wide posture the key alone grants.
            type: string
        - description: >-
            The acting member's verified email, lowercased. Ignored without
            Nexio-Act-As.
          in: header
          name: Nexio-Act-As-Email
          schema:
            description: >-
              The acting member's verified email, lowercased. Ignored without
              Nexio-Act-As.
            type: string
        - description: The calling application (workbench).
          in: header
          name: Nexio-Consumer
          schema:
            description: The calling application (workbench).
            type: string
        - description: The calling application's build.
          in: header
          name: Nexio-Consumer-Build
          schema:
            description: The calling application's build.
            type: string
        - description: The access vocabulary hash the calling build was generated against.
          in: header
          name: Nexio-Consumer-Vocabulary
          schema:
            description: >-
              The access vocabulary hash the calling build was generated
              against.
            type: string
        - description: >-
            A caller-chosen request id, echoed in the Nexio-Request-Id response
            header.
          in: header
          name: Nexio-Request-Id
          schema:
            description: >-
              A caller-chosen request id, echoed in the Nexio-Request-Id
              response header.
            type: string
        - description: >-
            The caller's remaining budget for this request, in whole
            milliseconds (1 to 10 digits, greater than zero), relative to
            receipt. The engine stops work at the shorter of this and the
            route's own budget, and answers 504 request_timeout when it expires.
            A value above the route budget is capped to it; a malformed value is
            ignored.
          in: header
          name: Nexio-Timeout
          schema:
            description: >-
              The caller's remaining budget for this request, in whole
              milliseconds (1 to 10 digits, greater than zero), relative to
              receipt. The engine stops work at the shorter of this and the
              route's own budget, and answers 504 request_timeout when it
              expires. A value above the route budget is capped to it; a
              malformed value is ignored.
            type: string
        - description: Comma-separated served account keys, at most 100.
          explode: false
          in: query
          name: accounts
          schema:
            description: Comma-separated served account keys, at most 100.
            type: string
        - description: >-
            How many of each account's rows ride beside its fold, 0 to 10;
            default 0.
          explode: false
          in: query
          name: rows
          schema:
            description: >-
              How many of each account's rows ride beside its fold, 0 to 10;
              default 0.
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EngineOpportunityAccountSummaryEnvelope'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Conflict
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Service Unavailable
      security:
        - bearer: []
components:
  schemas:
    EngineOpportunityAccountSummaryEnvelope:
      additionalProperties: false
      properties:
        data:
          items:
            $ref: '#/components/schemas/EngineOpportunityAccountSummaryJSON'
          type:
            - array
            - 'null'
        serving:
          $ref: '#/components/schemas/EngineOpportunityServing'
      required:
        - data
        - serving
      type: object
    ErrorEnvelope:
      additionalProperties: false
      properties:
        code:
          description: The stable machine-readable error code. One meaning forever.
          type: string
        details:
          description: Structured detail for the code.
        message:
          description: A human-readable sentence about this occurrence.
          type: string
      required:
        - code
        - message
      type: object
    EngineOpportunityAccountSummaryJSON:
      additionalProperties: false
      properties:
        account_key:
          type: string
        bands:
          additionalProperties:
            format: int64
            type: integer
          type: object
        count:
          format: int64
          type: integer
        premium_in_play:
          type: string
        rows:
          items:
            $ref: '#/components/schemas/EngineOpportunityRow'
          type:
            - array
            - 'null'
        top_band:
          enum:
            - critical
            - high
            - medium
            - low
          type:
            - string
            - 'null'
      required:
        - account_key
        - count
        - premium_in_play
        - bands
        - top_band
      type: object
    EngineOpportunityServing:
      additionalProperties: false
      properties:
        as_of:
          format: date-time
          type:
            - string
            - 'null'
        assess_coverage:
          format: double
          type: number
        batch_set_id:
          type: string
        config_hash:
          type: string
        lens:
          $ref: '#/components/schemas/BookLensJSON'
        overlay_rev:
          format: int64
          type: integer
        prior_run_id:
          description: >-
            With new=true: the run the signals were compared against, the run
            the active run replaced. Absent when none is on record, and then no
            signal is new.
          type: string
        read_pin:
          format: date-time
          type: string
        retry_after:
          format: date-time
          type: string
        run_id:
          type:
            - string
            - 'null'
        source:
          $ref: '#/components/schemas/BookReadSourceJSON'
        stale:
          type: boolean
      required:
        - overlay_rev
        - run_id
        - as_of
        - stale
        - assess_coverage
      type: object
    EngineOpportunityRow:
      additionalProperties: false
      properties:
        account_key:
          type: string
        account_name:
          type:
            - string
            - 'null'
        algorithmic_score:
          format: double
          type: number
        annotation_ref:
          type: string
        argument:
          type:
            - string
            - 'null'
        as_of:
          format: date-time
          type: string
        band:
          type: string
        brief:
          anyOf:
            - $ref: '#/components/schemas/Brief'
            - type: 'null'
        carried:
          $ref: '#/components/schemas/OpportunityCarried'
        caveats:
          type:
            - string
            - 'null'
        commission_in_play:
          type:
            - string
            - 'null'
        customer_id:
          type: string
        datasource:
          type: string
        dismissal:
          $ref: '#/components/schemas/OpportunityDismissal'
        evidence: {}
        final_score:
          format: double
          type: number
        flags:
          items:
            type: string
          type:
            - array
            - 'null'
        kind:
          enum:
            - retain
            - grow
          type: string
        lever:
          type: string
        line:
          type:
            - string
            - 'null'
        lob_code:
          type:
            - string
            - 'null'
        moment_date:
          type:
            - string
            - 'null'
        multiplier:
          format: double
          type:
            - number
            - 'null'
        naics_code:
          description: >-
            The account's NAICS code as the warehouse holds it: the resolved
            client's, else the policy's CLIENT_NAICS_CODE when the account key
            is not ready, so it can be set while naics_industry is null. Null
            when the warehouse holds none.
          type:
            - string
            - 'null'
        naics_industry:
          type:
            - string
            - 'null'
        next_action:
          type:
            - string
            - 'null'
        observation_type:
          type: string
        opportunity_id:
          type: string
        premium_basis:
          type: string
        premium_in_play:
          type:
            - string
            - 'null'
        premium_typical_for_line:
          type:
            - string
            - 'null'
        pursuit:
          $ref: '#/components/schemas/OpportunityPursuit'
        reason:
          type: string
        register_rank:
          format: int64
          type: integer
        renewal:
          anyOf:
            - $ref: '#/components/schemas/EngineOpportunityRenewal'
            - type: 'null'
        snooze:
          $ref: '#/components/schemas/OpportunitySnoozeOptions'
        verdict:
          type:
            - string
            - 'null'
      required:
        - snooze
        - pursuit
        - annotation_ref
        - register_rank
        - opportunity_id
        - account_name
        - account_key
        - customer_id
        - datasource
        - naics_industry
        - naics_code
        - lever
        - kind
        - renewal
        - observation_type
        - band
        - final_score
        - algorithmic_score
        - multiplier
        - verdict
        - flags
        - reason
        - argument
        - next_action
        - caveats
        - brief
        - line
        - lob_code
        - premium_in_play
        - premium_basis
        - premium_typical_for_line
        - commission_in_play
        - evidence
        - moment_date
        - as_of
      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
    Brief:
      additionalProperties: false
      properties:
        colleague:
          anyOf:
            - $ref: '#/components/schemas/WhoToCall'
            - type: 'null'
        contact_note:
          type:
            - string
            - 'null'
        say:
          items:
            type: string
          type:
            - array
            - 'null'
        who_to_call:
          anyOf:
            - $ref: '#/components/schemas/WhoToCall'
            - type: 'null'
        why_now:
          type: string
      required:
        - why_now
        - who_to_call
        - colleague
        - contact_note
        - say
      type: object
    OpportunityCarried:
      additionalProperties: false
      properties:
        last_detected_at:
          format: date-time
          type:
            - string
            - 'null'
        not_detected_since:
          format: date-time
          type:
            - string
            - 'null'
        reason:
          type: string
      required:
        - reason
        - last_detected_at
        - not_detected_since
      type: object
    OpportunityDismissal:
      additionalProperties: false
      properties:
        account_decision_reason:
          type: string
        action:
          type: string
        created_at:
          format: date-time
          type: string
        note:
          type: string
        reason:
          type: string
        since:
          format: date-time
          type: string
        snooze_until:
          type:
            - string
            - 'null'
        updated_at:
          format: date-time
          type: string
      required:
        - action
        - reason
        - note
        - snooze_until
        - created_at
        - updated_at
      type: object
    OpportunityPursuit:
      additionalProperties: false
      properties:
        closed_reason:
          type: string
        note:
          type: string
        since:
          format: date-time
          type: string
        state:
          type: string
        won:
          $ref: '#/components/schemas/OpportunityWon'
      required:
        - since
        - note
        - won
      type: object
    EngineOpportunityRenewal:
      additionalProperties: false
      properties:
        'on':
          description: >-
            The renewal's expiration date, as the renewal register serves it:
            the open renewal, inside the Engine's renewal_link window, of the
            row's own current term (its comparison basis).
          format: date
          type: string
      required:
        - 'on'
      type: object
    OpportunitySnoozeOptions:
      additionalProperties: false
      properties:
        default_date:
          type: string
        max:
          type: string
        min:
          type: string
        picks:
          items:
            $ref: '#/components/schemas/OpportunitySnoozePick'
          type:
            - array
            - 'null'
      required:
        - min
        - max
        - default_date
        - picks
      type: object
    WhoToCall:
      additionalProperties: false
      properties:
        email:
          type:
            - string
            - 'null'
        name:
          type: string
        phone:
          type:
            - string
            - 'null'
        role:
          type: string
        source:
          type: string
      required:
        - name
        - role
        - phone
        - email
        - source
      type: object
    OpportunityWon:
      additionalProperties: false
      properties:
        helped:
          type: string
        linked:
          type: boolean
        'on':
          format: date-time
          type: string
        policy:
          $ref: '#/components/schemas/OpportunityWonPolicy'
        premium:
          type: string
        since:
          type: string
      required:
        - 'on'
        - premium
        - policy
        - helped
        - linked
        - since
      type: object
    OpportunitySnoozePick:
      additionalProperties: false
      properties:
        date:
          type: string
        label:
          type: string
      required:
        - label
        - date
      type: object
    OpportunityWonPolicy:
      additionalProperties: false
      properties:
        annual_premium:
          type:
            - string
            - 'null'
        carrier:
          type: string
        effective_date:
          type:
            - string
            - 'null'
        kind:
          type: string
        line:
          type: string
        linked_by:
          type: string
        policy_key:
          type: string
        policy_number:
          type: string
      required:
        - policy_key
        - policy_number
        - carrier
        - kind
        - line
        - effective_date
        - annual_premium
        - linked_by
      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.