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

# Step output

> Retrieves the output data of a specific step within a workflow run. This endpoint requires an ExecuteStepRequestContext with `workflowRunId` and `stepAddr`.



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/samplehc/openapi.documented.yml get /api/v2/workflow-runs/step/{stepId}/output
openapi: 3.0.3
info:
  title: Sample Healthcare API
  description: API for Sample Healthcare
  version: 1.0.0
servers: []
security: []
paths:
  /api/v2/workflow-runs/step/{stepId}/output:
    get:
      tags:
        - Workflow-run
      summary: Step output
      description: >-
        Retrieves the output data of a specific step within a workflow run. This
        endpoint requires an ExecuteStepRequestContext with `workflowRunId` and
        `stepAddr`.
      parameters:
        - schema:
            type: string
          in: path
          name: stepId
          required: true
          description: The unique identifier of the workflow step.
      responses:
        '200':
          description: Successfully retrieved step output data.
          content:
            application/json:
              schema:
                type: object
                properties:
                  output:
                    description: The output data generated by the specified workflow step.
                additionalProperties: false
        '400':
          description: >-
            Bad request, e.g., missing required context parameters like
            workflowRunId or stepAddr, or the stepId was not in a valid format.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '404':
          description: >-
            Not Found, the step output for the given stepId and context
            parameters does not exist.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '500':
          description: Internal server error encountered while retrieving the step output.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false

````