> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anycrm.anyreach.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Run Status

> Lightweight poll target for the run detail page: status + counters + gate
+ exports, but NOT the results array. `get_run` (above) reads every result
row via a select-* over the fat JSONB — far too heavy to run every 5s — so
the page's progress poller hits this instead and refreshes full results via
GET /runs/{id} once, on completion.



## OpenAPI

````yaml /openapi-generated.json get /customer-intelligence/runs/{run_id}/status
openapi: 3.1.0
info:
  title: anycrm-api
  version: 0.0.1
servers: []
security: []
tags:
  - name: Customer Intelligence
    description: >-
      Company research and ICP-fit scoring — create a research run, track its
      progress, and read back scored companies as leads.
  - name: Outreach
    description: >-
      The cold-email management console — domains, mailboxes, and campaigns — as
      a thin control plane over the SalesForge stack.
  - name: AnyCard
    description: >-
      Authenticated CRUD for AnyCard, the org's digital business-card /
      lead-capture product.
  - name: AnyCard Events
    description: >-
      Event-attribution analytics for AnyCard — which captured leads converted,
      broken down by source, owner, and deal.
  - name: AnyCard Share Links
    description: >-
      Unauthenticated endpoints reached by anyone who scans a QR code or opens a
      shared AnyCard link.
  - name: AI
    description: >-
      A streaming (SSE) AI chat endpoint with account-commit actions it can take
      on the caller's behalf.
  - name: Analytics Assistant
    description: >-
      The natural-language analytics assistant — a guarded text-to-SQL loop
      (SSE) that answers ad-hoc questions over the org's CRM data as a
      least-privilege, read-only database role.
  - name: Account Readiness
    description: >-
      Account Readiness Profiles — AI-scored signals on whether an account is
      ready for outreach or expansion, computed via a Temporal workflow.
  - name: Integrations
    description: >-
      Pipedream Connect — issuing connect tokens and managing the org's
      connected third-party accounts.
  - name: Feedback
    description: >-
      User-submitted platform feedback (bug reports, feature requests) — global,
      not scoped to one organization.
  - name: Public Media
    description: >-
      Unauthenticated image reads for publicly-embeddable assets (card photos,
      inline email images) — allowlisted by key shape; everything else in the
      storage bucket stays private.
  - name: Service Health
    description: Service liveness.
paths:
  /customer-intelligence/runs/{run_id}/status:
    get:
      tags:
        - Customer Intelligence
      summary: Get Run Status
      description: >-
        Lightweight poll target for the run detail page: status + counters +
        gate

        + exports, but NOT the results array. `get_run` (above) reads every
        result

        row via a select-* over the fat JSONB — far too heavy to run every 5s —
        so

        the page's progress poller hits this instead and refreshes full results
        via

        GET /runs/{id} once, on completion.
      operationId: get_run_status_customer_intelligence_runs__run_id__status_get
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            title: Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerIntelRunStatus'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    CustomerIntelRunStatus:
      properties:
        id:
          type: string
          title: Id
        org_id:
          type: string
          title: Org Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        status:
          type: string
          title: Status
        phase:
          anyOf:
            - type: string
            - type: 'null'
          title: Phase
        awaiting_gate:
          anyOf:
            - type: string
            - type: 'null'
          title: Awaiting Gate
        temporal_workflow_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Temporal Workflow Id
        targets_total:
          type: integer
          title: Targets Total
          default: 0
        targets_completed:
          type: integer
          title: Targets Completed
          default: 0
        targets_scored:
          type: integer
          title: Targets Scored
          default: 0
        targets_errored:
          type: integer
          title: Targets Errored
          default: 0
        targets_filtered:
          type: integer
          title: Targets Filtered
          default: 0
        outcome_counts:
          additionalProperties: true
          type: object
          title: Outcome Counts
        deliverables:
          additionalProperties: true
          type: object
          title: Deliverables
        report_files:
          additionalProperties:
            type: string
          type: object
          title: Report Files
        shortlist_selection:
          additionalProperties: true
          type: object
          title: Shortlist Selection
        cost:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Cost
        health:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Health
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
        gate:
          anyOf:
            - $ref: '#/components/schemas/CustomerIntelGateResponse'
            - type: 'null'
        exports:
          items:
            $ref: '#/components/schemas/CustomerIntelExportResponse'
          type: array
          title: Exports
      type: object
      required:
        - id
        - org_id
        - status
      title: CustomerIntelRunStatus
      description: >-
        Lightweight poll target for the run detail page — status, counters,
        gate,

        and exports, but WITHOUT the results array. The page's 5s poller uses
        this so

        it never re-reads every result row's fat JSONB on each tick; results
        refresh

        via GET /runs/{id} once, when the run finishes.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CustomerIntelGateResponse:
      properties:
        gate_type:
          type: string
          title: Gate Type
        status:
          type: string
          title: Status
        resolution_review:
          anyOf:
            - $ref: '#/components/schemas/ResolutionReview'
            - type: 'null'
        shortlist:
          items:
            $ref: '#/components/schemas/ShortlistItem'
          type: array
          title: Shortlist
        notified_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Notified At
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
      type: object
      required:
        - gate_type
        - status
      title: CustomerIntelGateResponse
      description: The currently-open gate for a run (resolution or shortlist), if any.
    CustomerIntelExportResponse:
      properties:
        id:
          type: string
          title: Id
        run_id:
          type: string
          title: Run Id
        format:
          type: string
          title: Format
        status:
          type: string
          title: Status
        files:
          additionalProperties:
            type: string
          type: object
          title: Files
        row_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Row Count
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        completed_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Completed At
      type: object
      required:
        - id
        - run_id
        - format
        - status
      title: CustomerIntelExportResponse
      description: One row of customer_intel_run_exports; `files` presigned at read time.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ResolutionReview:
      properties:
        ambiguous:
          items:
            $ref: '#/components/schemas/ResolutionReviewItem'
          type: array
          title: Ambiguous
        scope:
          items:
            $ref: '#/components/schemas/ScopeReviewItem'
          type: array
          title: Scope
        empty_discovery:
          items:
            $ref: '#/components/schemas/EmptyDiscoveryItem'
          type: array
          title: Empty Discovery
      type: object
      title: ResolutionReview
    ShortlistItem:
      properties:
        result_id:
          type: string
          title: Result Id
        company_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Company Name
        website:
          anyOf:
            - type: string
            - type: 'null'
          title: Website
        target_type:
          type: string
          title: Target Type
          default: company
        pain_score:
          anyOf:
            - type: number
            - type: 'null'
          title: Pain Score
        fit_tier:
          anyOf:
            - type: string
            - type: 'null'
          title: Fit Tier
        pain_summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Pain Summary
      type: object
      required:
        - result_id
      title: ShortlistItem
      description: A scored target offered for deep-set selection at gate E.
    ResolutionReviewItem:
      properties:
        input_id:
          type: string
          title: Input Id
        raw_input:
          type: string
          title: Raw Input
        input_class:
          type: string
          title: Input Class
        candidates:
          items:
            $ref: '#/components/schemas/ResolutionCandidate'
          type: array
          title: Candidates
        recommended_candidate_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Recommended Candidate Id
      type: object
      required:
        - input_id
        - raw_input
        - input_class
      title: ResolutionReviewItem
    ScopeReviewItem:
      properties:
        seed_id:
          type: string
          title: Seed Id
        raw_input:
          type: string
          title: Raw Input
        est_count:
          type: integer
          title: Est Count
          default: 0
        est_cost:
          anyOf:
            - type: number
            - type: 'null'
          title: Est Cost
      type: object
      required:
        - seed_id
        - raw_input
      title: ScopeReviewItem
    EmptyDiscoveryItem:
      properties:
        seed_id:
          type: string
          title: Seed Id
        raw_input:
          type: string
          title: Raw Input
          default: ''
      type: object
      required:
        - seed_id
      title: EmptyDiscoveryItem
      description: |-
        An ICP discovery seed that matched zero companies — shown as a
        non-blocking note in the resolution review, never a disambiguation item.
    ResolutionCandidate:
      properties:
        id:
          type: string
          title: Id
        label:
          type: string
          title: Label
        company_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Company Name
        domain:
          anyOf:
            - type: string
            - type: 'null'
          title: Domain
        linkedin_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Linkedin Url
        confidence:
          anyOf:
            - type: number
            - type: 'null'
          title: Confidence
      type: object
      required:
        - id
        - label
      title: ResolutionCandidate
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````