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

# Get Workflow Run Evaluation Result

> Endpoint to retrieve the evaluation result for a workflow run.

This endpoint fetches the evaluation workflow run linked to the source workflow run
and extracts the last WorkflowShowStateEvent's runtime_variables as the evaluation result.

Returns:
    - evaluation_workflow_run_id: ID of the evaluation run
    - status: Current status of the evaluation run
    - evaluation_result: The runtime_variables from the last WorkflowShowStateEvent,
      or None if no such event exists (e.g., evaluation still in progress)



## OpenAPI

````yaml https://api-prod.interactly.ai/api-docs/workflows/api.json get /workflows/v1/workflow-runs/{workflow_run_id}/evaluation-result
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-prod.interactly.ai
    description: API Server
security: []
paths:
  /workflows/v1/workflow-runs/{workflow_run_id}/evaluation-result:
    get:
      tags:
        - Workflow Runs
      summary: Get Workflow Run Evaluation Result
      description: >-
        Endpoint to retrieve the evaluation result for a workflow run.


        This endpoint fetches the evaluation workflow run linked to the source
        workflow run

        and extracts the last WorkflowShowStateEvent's runtime_variables as the
        evaluation result.


        Returns:
            - evaluation_workflow_run_id: ID of the evaluation run
            - status: Current status of the evaluation run
            - evaluation_result: The runtime_variables from the last WorkflowShowStateEvent,
              or None if no such event exists (e.g., evaluation still in progress)
      operationId: >-
        workflow_service_get_workflow_run_evaluation_result_v1_workflow_runs__workflow_run_id__evaluation_result_get
      parameters:
        - name: workflow_run_id
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/PydanticObjectId'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowRunEvaluationResultResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearer: []
components:
  schemas:
    PydanticObjectId:
      type: string
      maxLength: 24
      minLength: 24
      pattern: ^[0-9a-f]{24}$
      example: 5eb7cf5a86d9755df3a6c593
    WorkflowRunEvaluationResultResponse:
      properties:
        evaluation_workflow_run_id:
          type: string
          title: Evaluation Workflow Run Id
          description: ID of the evaluation workflow run
        status:
          type: string
          title: Status
          description: >-
            Status of the evaluation workflow run (e.g., 'completed', 'running',
            'failed')
        evaluation_result:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Evaluation Result
          description: >-
            The runtime variables from the last WorkflowShowStateEvent in the
            evaluation run. Contains the evaluation output/scores. None if no
            WorkflowShowStateEvent was found.
      type: object
      required:
        - evaluation_workflow_run_id
        - status
      title: WorkflowRunEvaluationResultResponse
      description: >-
        Response model for evaluation results of a workflow run.

        Contains the evaluation workflow run ID, status, and the runtime
        variables from the last WorkflowShowStateEvent.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      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.interactly.ai/api-keys).

````