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

# Get flow delivery options

> Return the recording/delivery readiness for a flow (recording mode, whether delivery can include the recording, whether a files.upload action exists, the first direct OneDrive/Google Drive upload step if any) plus, per destination, whether the flow owner has an active connection. Returns 404 if the flow does not exist.



## OpenAPI

````yaml /api-reference/workflows.yaml get /flows/{flowId}/delivery-options
openapi: 3.1.0
info:
  title: Workflows
  version: v1
servers:
  - description: Droidrun Cloud API
    url: https://api.mobilerun.ai/v1
security:
  - bearerAuth: []
paths:
  /flows/{flowId}/delivery-options:
    get:
      tags:
        - Flows
      summary: Get flow delivery options
      description: >-
        Return the recording/delivery readiness for a flow (recording mode,
        whether delivery can include the recording, whether a files.upload
        action exists, the first direct OneDrive/Google Drive upload step if
        any) plus, per destination, whether the flow owner has an active
        connection. Returns 404 if the flow does not exist.
      operationId: getFlowDeliveryOptions
      parameters:
        - in: path
          name: flowId
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/FlowDeliveryOptions'
                required:
                  - data
                type: object
          description: Flow delivery options
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowNotFoundError'
          description: Flow not found
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Mobilerun from '@mobilerun/sdk';

            const client = new Mobilerun({
              apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
            });

            const response = await client.workflows.flows.deliveryOptions(
              '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
            );

            console.log(response.data);
        - lang: Python
          source: |-
            import os
            from mobilerun_sdk import Mobilerun

            client = Mobilerun(
                api_key=os.environ.get("MOBILERUN_CLOUD_API_KEY"),  # This is the default and can be omitted
            )
            response = client.workflows.flows.delivery_options(
                "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            )
            print(response.data)
components:
  schemas:
    FlowDeliveryOptions:
      properties:
        canDeliverRecording:
          type: boolean
        destinations:
          description: Delivery destinations in their canonical order.
          items:
            $ref: '#/components/schemas/FlowDeliveryDestinationOption'
          type: array
        directUploadStep:
          properties:
            flowActionId:
              format: uuid
              type: string
            name:
              type: string
          required:
            - flowActionId
            - name
          type:
            - object
            - 'null'
        hasFilesUpload:
          type: boolean
        recordingMode:
          $ref: '#/components/schemas/RecordingPolicyMode'
      required:
        - recordingMode
        - canDeliverRecording
        - hasFilesUpload
        - directUploadStep
        - destinations
      type: object
    FlowNotFoundError:
      properties:
        code:
          enum:
            - flow_not_found
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
    FlowDeliveryDestinationOption:
      properties:
        connectKey:
          type: string
        connection:
          $ref: '#/components/schemas/DeliveryDestinationConnectionStatus'
        iconUrl:
          format: uri
          type:
            - string
            - 'null'
        key:
          enum:
            - mobilerun
            - one_drive
            - google_drive
          type: string
        label:
          type: string
      required:
        - key
        - label
        - connectKey
        - connection
        - iconUrl
      type: object
    RecordingPolicyMode:
      enum:
        - 'off'
        - flow
        - selected_steps
      type: string
    DeliveryDestinationConnectionStatus:
      enum:
        - connected
        - not_connected
        - expired
        - unknown
      type: string
  securitySchemes:
    bearerAuth:
      bearerFormat: Opaque
      description: Bearer token via Authorization header
      scheme: bearer
      type: http

````

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