> ## 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.

# Unblock a flow

> Clear a flow's blocked status after fixing the underlying issue. Idempotent — safe to call on already-healthy flows.



## OpenAPI

````yaml /api-reference/workflows.yaml post /flows/{flowId}/unblock
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}/unblock:
    post:
      tags:
        - Flows
      summary: Unblock a flow
      description: >-
        Clear a flow's blocked status after fixing the underlying issue.
        Idempotent — safe to call on already-healthy flows.
      operationId: unblockFlow
      parameters:
        - in: path
          name: flowId
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/Flow'
                required:
                  - data
                type: object
          description: Flow unblocked (or already healthy)
        '400':
          content:
            application/json:
              schema:
                properties:
                  code:
                    allOf:
                      - $ref: '#/components/schemas/FlowFailureCode'
                      - type: string
                  error:
                    enum:
                      - still_broken
                    type: string
                  reason:
                    type: string
                required:
                  - error
                  - code
                  - reason
                type: object
          description: Flow is still broken — preflight failed
        '404':
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                required:
                  - error
                type: object
          description: 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.unblock('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.unblock(
                "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            )
            print(response.data)
components:
  schemas:
    Flow:
      properties:
        archivedAt:
          type:
            - string
            - 'null'
        blockedAt:
          type:
            - string
            - 'null'
        consecutiveFailures:
          minimum: 0
          type: integer
        cooldownScope:
          enum:
            - flow
            - device
          type: string
        cooldownSeconds:
          type:
            - integer
            - 'null'
        createdAt:
          type:
            - string
            - 'null'
        createdBy:
          format: uuid
          type:
            - string
            - 'null'
        description:
          type:
            - string
            - 'null'
        deviceIds:
          items:
            format: uuid
            type: string
          type: array
        enabled:
          description: >-
            Compatibility projection of lifecycleStatus; true only when
            lifecycleStatus is enabled.
          type: boolean
        healthMonitoringEnabled:
          type: boolean
        id:
          format: uuid
          type: string
        lastFailureAt:
          type:
            - string
            - 'null'
        lastFailureCode:
          $ref: '#/components/schemas/FlowFailureCode'
        lastTriggeredAt:
          type:
            - string
            - 'null'
        lifecycleStatus:
          $ref: '#/components/schemas/AgentLifecycleStatus'
        name:
          type: string
        notifyOnFailure:
          type: boolean
        notifyOnSuccess:
          type: boolean
        notifyWebhookId:
          format: uuid
          type:
            - string
            - 'null'
        ownerId:
          format: uuid
          type: string
        recordingEnabled:
          deprecated: true
          description: >-
            Deprecated: use recordingPolicy.mode ("flow" =
            recordingEnabled=true, "off" = recordingEnabled=false).
          type: boolean
        recordingPolicy:
          $ref: '#/components/schemas/RecordingPolicy'
        selfHealingEnabled:
          type: boolean
        selfHealingMaxAttempts:
          maximum: 5
          minimum: 1
          type: integer
        status:
          $ref: '#/components/schemas/FlowStatus'
        templateResolutionVersion:
          description: >-
            Template-resolver semantics this flow runs under (MVA-23). 1 =
            legacy (missing/forbidden/null all resolve to ''). 2 = typed
            (missing/forbidden throw, a whole-token null stays JSON null).
            Existing flows stay 1; new flows default to 2.
          maximum: 2
          minimum: 1
          type: integer
        triggerId:
          format: uuid
          type: string
        updatedAt:
          type:
            - string
            - 'null'
        userId:
          deprecated: true
          description: 'Deprecated: use ownerId (tenancy) / createdBy (actor).'
          format: uuid
          type: string
      required:
        - id
        - userId
        - ownerId
        - createdBy
        - name
        - description
        - triggerId
        - enabled
        - lifecycleStatus
        - archivedAt
        - deviceIds
        - cooldownSeconds
        - cooldownScope
        - notifyWebhookId
        - notifyOnSuccess
        - notifyOnFailure
        - lastTriggeredAt
        - status
        - templateResolutionVersion
        - consecutiveFailures
        - lastFailureCode
        - lastFailureAt
        - blockedAt
        - healthMonitoringEnabled
        - selfHealingEnabled
        - selfHealingMaxAttempts
        - recordingEnabled
        - recordingPolicy
        - createdAt
        - updatedAt
      type: object
    FlowFailureCode:
      enum:
        - device_not_found
        - permission_denied
        - client_error
        - transient
        - logic
        - invalid_config
      type:
        - string
        - 'null'
    AgentLifecycleStatus:
      enum:
        - enabled
        - disabled
        - archived
      type: string
    RecordingPolicy:
      properties:
        mode:
          $ref: '#/components/schemas/RecordingPolicyMode'
      required:
        - mode
      type: object
    FlowStatus:
      enum:
        - healthy
        - failing
        - blocked
      type: string
    RecordingPolicyMode:
      enum:
        - 'off'
        - flow
        - selected_steps
      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.