> ## 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 execution details

> Fetch a single flow execution by its ID, including its status, kind, result or error, and start/finish timestamps. Returns 404 if no execution matches.



## OpenAPI

````yaml /api-reference/workflows.yaml get /executions/{executionId}
openapi: 3.1.0
info:
  title: Workflows
  version: v1
servers:
  - url: https://api.mobilerun.ai
    description: Droidrun Cloud API
security:
  - bearerAuth: []
paths:
  /executions/{executionId}:
    get:
      tags:
        - Executions
      summary: Get execution details
      description: >-
        Fetch a single flow execution by its ID, including its status, kind,
        result or error, and start/finish timestamps. Returns 404 if no
        execution matches.
      operationId: getExecution
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: executionId
          in: path
      responses:
        '200':
          description: Execution details
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/FlowExecutionDetail'
                required:
                  - data
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      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 execution = await client.workflows.executions.retrieve(
              '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
            );

            console.log(execution.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
            )
            execution = client.workflows.executions.retrieve(
                "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            )
            print(execution.data)
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/stainless-sdks/droidrun-cloud-go\"\n\t\"github.com/stainless-sdks/droidrun-cloud-go/option\"\n)\n\nfunc main() {\n\tclient := mobileruncloud.NewClient(\n\t\toption.WithAPIKey(\"My API Key\"),\n\t)\n\texecution, err := client.Workflows.Executions.Get(context.TODO(), \"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e\")\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", execution.Data)\n}\n"
        - lang: CLI
          source: |-
            mobilerun-cloud workflows:executions retrieve \
              --api-key 'My API Key' \
              --execution-id 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
components:
  schemas:
    FlowExecutionDetail:
      allOf:
        - $ref: '#/components/schemas/FlowExecution'
        - type: object
          properties:
            files:
              type: array
              items:
                $ref: '#/components/schemas/ExecutionFile'
              description: >-
                Files produced by files.upload steps; derived server-side at
                read time.
          required:
            - files
    FlowExecution:
      type: object
      properties:
        id:
          type: string
          format: uuid
        flowId:
          type: string
          format: uuid
        triggerId:
          type: string
          format: uuid
        eventId:
          type:
            - string
            - 'null'
          format: uuid
        flowName:
          type:
            - string
            - 'null'
        triggerName:
          type:
            - string
            - 'null'
        status:
          type:
            - string
            - 'null'
          enum:
            - pending
            - running
            - success
            - failed
            - cancelled
            - skipped
            - invalid
        kind:
          type: string
          enum:
            - live
            - dry_run
        result: {}
        error:
          type:
            - string
            - 'null'
        startedAt:
          type:
            - string
            - 'null'
        finishedAt:
          type:
            - string
            - 'null'
      required:
        - id
        - flowId
        - triggerId
        - eventId
        - flowName
        - triggerName
        - status
        - kind
        - error
        - startedAt
        - finishedAt
    ExecutionFile:
      type: object
      properties:
        fileId:
          type: string
          format: uuid
        filename:
          type: string
        mimeType:
          type: string
        sizeBytes:
          type: integer
          minimum: 0
      required:
        - fileId
        - filename
        - mimeType
        - sizeBytes
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Opaque
      description: Bearer token via Authorization header

````