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

# Get Past Analysis

> Return past analysis records and resolved final status for a given run_id + patient_uuid.

This is used by downstream services (e.g., assistant evaluation) to reconcile
current confirmation status with past final outcomes for the same run.



## OpenAPI

````yaml https://api-qa.interactly.ai/api-docs/integrations/api.json get /integrations/v1/admin/use-case-runs/past-analysis
openapi: 3.1.0
info:
  title: Interactly API
  description: API for building interactly.ai services
  version: 1.1.0
  contact:
    name: Interactly
    url: https://interactly.ai
    email: developers@interactly.ai
servers:
  - url: https://api-qa.interactly.ai
    description: API Server
security: []
paths:
  /integrations/v1/admin/use-case-runs/past-analysis:
    get:
      tags:
        - Admin
      summary: Get Past Analysis
      description: >-
        Return past analysis records and resolved final status for a given
        run_id + patient_uuid.


        This is used by downstream services (e.g., assistant evaluation) to
        reconcile

        current confirmation status with past final outcomes for the same run.
      operationId: >-
        integrations_service_get_past_analysis_v1_admin_use_case_runs_past_analysis_get
      parameters:
        - name: run_id
          in: query
          required: true
          schema:
            type: string
            description: Run ID for the use-case
            title: Run Id
          description: Run ID for the use-case
        - name: patient_uuid
          in: query
          required: true
          schema:
            type: string
            description: Patient UUID
            title: Patient Uuid
          description: Patient UUID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PastAnalysisResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearer: []
components:
  schemas:
    PastAnalysisResponse:
      properties:
        past_runs:
          items:
            $ref: '#/components/schemas/PastRunRecord'
          type: array
          title: Past Runs
        past_final_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Past Final Status
      type: object
      required:
        - past_runs
        - past_final_status
      title: PastAnalysisResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PastRunRecord:
      properties:
        action_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Action Type
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
        payload:
          additionalProperties: true
          type: object
          title: Payload
          default: {}
        createdAt:
          anyOf:
            - {}
            - type: 'null'
          title: Createdat
      type: object
      required:
        - action_type
        - status
        - notes
        - createdAt
      title: PastRunRecord
    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
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: Bearer
      type: http
      description: >-
        Retrieve your API Key from [Dashboard API Keys
        Section](https://dashboard-qa.interactly.ai/api-keys).

````