> ## Documentation Index
> Fetch the complete documentation index at: https://growthx-changeset-release-main.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Return the result of a specific workflow run



## OpenAPI

````yaml /openapi.json get /workflow/{id}/runs/{rid}/result
openapi: 3.0.0
info:
  title: Output.ai API
  version: 1.0.0
  description: API for managing and executing Output.ai workflows
servers:
  - url: http://localhost:3001
    description: Development server
security: []
tags: []
paths:
  /workflow/{id}/runs/{rid}/result:
    get:
      summary: Return the result of a specific workflow run
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
        - in: path
          name: rid
          required: true
          schema:
            type: string
            format: uuid
          description: The specific run id to target
      responses:
        '200':
          description: The workflow result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowResultResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '424':
          $ref: '#/components/responses/FailedDependency'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    WorkflowResultResponse:
      type: object
      properties:
        workflowId:
          type: string
          description: The workflow execution id
        runId:
          type: string
          description: The specific run id for this execution
        input:
          description: The original input passed to the workflow, null if unavailable
        output:
          description: The result of workflow, null if workflow failed
        trace:
          $ref: '#/components/schemas/TraceInfo'
        status:
          type: string
          enum:
            - completed
            - failed
            - canceled
            - terminated
            - timed_out
            - continued_as_new
          description: The workflow execution status
        error:
          type: string
          nullable: true
          description: Error message if workflow failed, null otherwise
        errorDetails:
          type: object
          nullable: true
          description: Structured failure details if the workflow failed, null otherwise
          properties:
            message:
              type: string
              nullable: true
              description: Friendly failure message (from the underlying application error)
            name:
              type: string
              nullable: true
              description: Error name/type (the original error's class)
            retryable:
              type: boolean
              nullable: true
              description: Whether Temporal flagged the failure retryable; null if unknown
            activityId:
              type: string
              nullable: true
              description: >-
                Failing activity key ("workflow#step"); null if no activity
                failed
            cause:
              type: object
              nullable: true
              additionalProperties: true
              description: Sanitized error cause chain (name/message per level, no stack)
    TraceInfo:
      type: object
      description: An object with information about the trace generated by the execution
      properties:
        destinations:
          type: object
          description: Available destinations for trace data
          properties:
            local:
              type: string
              description: Absolute path to local trace file, omitted if not saved locally
            remote:
              type: string
              description: >-
                Remote trace location (e.g., S3 URI), omitted if not saved
                remotely
    ValidationErrorResponse:
      type: object
      description: Request body validation failure (Zod)
      properties:
        error:
          type: string
          enum:
            - ValidationError
        message:
          type: string
          example: Invalid Payload
        issues:
          type: array
          description: Zod validation issues
          items:
            type: object
    ErrorResponse:
      type: object
      description: >-
        API error body (WorkflowNotFoundError, UnsupportedWorkflowError,
        WorkflowExecutionTimedOutError, WorkflowNotCompletedError,
        CatalogNotAvailableError, or server error)
      properties:
        error:
          type: string
          description: >-
            Error type name (e.g. WorkflowNotFoundError,
            UnsupportedWorkflowError, CatalogNotAvailableError)
        message:
          type: string
          description: Human-readable error message
        workflowId:
          type: string
          description: >-
            Workflow ID when the error is tied to a specific execution (e.g.
            timeout)
          nullable: true
  responses:
    BadRequest:
      description: Invalid request body, query, or pagination token
      content:
        application/json:
          schema:
            oneOf:
              - $ref: '#/components/schemas/ValidationErrorResponse'
              - $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Workflow execution, workflow type, or catalog not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    FailedDependency:
      description: >-
        Workflow dependency failed (e.g. workflow not in a terminal state, or
        workflow type is unsupported by the selected catalog)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalServerError:
      description: Internal server error (e.g. Temporal connection failure)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'

````