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

# Retrieve Workflow Run

> Get a run with its outputs once it has finished, and what each step received and returned.

```bash cURL theme={null}
curl --request GET \
  --url "https://api.roe-ai.com/v1/workflows/runs/YOUR_RUN_ID/" \
  --header "Authorization: Bearer YOUR_API_KEY"
```


## OpenAPI

````yaml GET /v1/workflows/runs/{run_id}/
openapi: 3.1.0
info:
  title: Roe API
  version: 1.0.0
  description: Complete API documentation for Roe platform
servers:
  - url: https://api.roe-ai.com
    description: Production API
security: []
paths:
  /v1/workflows/runs/{run_id}/:
    get:
      tags:
        - v1
      summary: Get a workflow run
      description: >-
        Get a run with its outputs once it has finished, and what each step
        received and returned.
      operationId: v1_workflows_runs_retrieve
      parameters:
        - in: path
          name: run_id
          schema:
            type: string
            format: uuid
          required: true
        - name: organization_id
          in: query
          required: false
          schema:
            type: string
            format: uuid
          description: >-
            Organization ID. This is required for access control. It can be
            provided via query or request body depending on the endpoint.
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowRunDetail'
          description: ''
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetailResponse'
          description: ''
      security:
        - apiKeyAuth: []
components:
  schemas:
    WorkflowRunDetail:
      type: object
      properties:
        id:
          type: string
          format: uuid
        workflow_id:
          type: string
          format: uuid
        version_id:
          type:
            - string
            - 'null'
          format: uuid
        status:
          $ref: '#/components/schemas/WorkflowRunStatusEnum'
        error_message:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
        inputs: {}
        outputs:
          type:
            - array
            - 'null'
          items: {}
          description: The result step's output, once the run has finished.
        steps:
          type: array
          items:
            $ref: '#/components/schemas/StepRun'
      required:
        - created_at
        - error_message
        - id
        - inputs
        - outputs
        - status
        - steps
        - version_id
        - workflow_id
    ErrorDetailResponse:
      type: object
      description: 'DRF default error body: NotFound, PermissionDenied, Http404, etc.'
      properties:
        detail:
          type: string
          description: Human-readable error detail
      required:
        - detail
    WorkflowRunStatusEnum:
      enum:
        - pending
        - running
        - succeeded
        - failed
        - cancelled
      type: string
      description: |-
        * `pending` - pending
        * `running` - running
        * `succeeded` - succeeded
        * `failed` - failed
        * `cancelled` - cancelled
    StepRun:
      type: object
      properties:
        step_id:
          type: string
          maxLength: 200
        execution_path: {}
        status:
          $ref: '#/components/schemas/StepRunStatusEnum'
        cached:
          type: boolean
        input:
          oneOf:
            - {}
            - type: 'null'
        output:
          oneOf:
            - {}
            - type: 'null'
        error:
          type:
            - string
            - 'null'
        child_job_id:
          type:
            - string
            - 'null'
          format: uuid
          readOnly: true
        delivery:
          description: >-
            For a step that sends: sending, sent, or unknown when Roe couldn't
            tell whether the send went through.


            * `sending` - Sending

            * `sent` - Sent

            * `unknown` - Unknown
          oneOf:
            - $ref: '#/components/schemas/StepRunDeliveryEnum'
            - type: 'null'
        started_at:
          type:
            - string
            - 'null'
          format: date-time
        finished_at:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - child_job_id
        - execution_path
        - status
        - step_id
    StepRunStatusEnum:
      enum:
        - succeeded
        - failed
        - skipped
        - cancelled
      type: string
      description: |-
        * `succeeded` - succeeded
        * `failed` - failed
        * `skipped` - skipped
        * `cancelled` - cancelled
    StepRunDeliveryEnum:
      enum:
        - sending
        - sent
        - unknown
      type: string
      description: |-
        * `sending` - Sending
        * `sent` - Sent
        * `unknown` - Unknown
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key passed as a Bearer token. This is the scheme used
        by the public SDK surface.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.