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

# Get workflow run

> <Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Returns the specified run with its step-by-step log.

The `steps` field walks the tasks the run executed in order, each with its status, timing, and error if it failed. The `definition_version_id` field names the version the run executed, which can be older than the workflow's current one.

Each step also carries the data that went into it and came out of it. Those fields are not documented here because their shape is whatever your workflow passes around, but they are in the response.

<Warning>The response includes fields beyond the ones documented here. Don't rely on undocumented response fields, as they can change at any time.</Warning>



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json get /api/apps/{app_id}/workflows/{workflow_id}/runs/{run_id}
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - PersonalAccessTokenAuth: []
paths:
  /api/apps/{app_id}/workflows/{workflow_id}/runs/{run_id}:
    get:
      summary: Get workflow run
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Returns the specified run with its step-by-step log.


        The `steps` field walks the tasks the run executed in order, each with
        its status, timing, and error if it failed. The `definition_version_id`
        field names the version the run executed, which can be older than the
        workflow's current one.


        Each step also carries the data that went into it and came out of it.
        Those fields are not documented here because their shape is whatever
        your workflow passes around, but they are in the response.


        <Warning>The response includes fields beyond the ones documented here.
        Don't rely on undocumented response fields, as they can change at any
        time.</Warning>
      operationId: get_run_api_apps__app_id__workflows__workflow_id__runs__run_id__get
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the app whose workflows you want to work with.
            title: App Id
          description: ID of the app whose workflows you want to work with.
          example: 6820f3a4e7b91d003c45a1f2
        - name: workflow_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              ID of the workflow, as returned in `id` by [List
              workflows](/api-reference/list-workflows).
            title: Workflow Id
          description: >-
            ID of the workflow, as returned in `id` by [List
            workflows](/api-reference/list-workflows).
          example: 68b1c0d4e7b91d003c45a1f2
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              ID of the run, as returned in `run_id` by [List runs for a
              workflow](/api-reference/list-runs-for-a-workflow).
            title: Run Id
          description: >-
            ID of the run, as returned in `run_id` by [List runs for a
            workflow](/api-reference/list-runs-for-a-workflow).
          example: 0195f2a1-4c3e-7b21-9f0d-2a5c8e1b4d77
      responses:
        '200':
          description: The run and its steps.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunDetailResponse'
        '401':
          description: Missing or invalid credentials.
        '403':
          description: >-
            You don't have access to this app, the app does not exist, or the
            app still runs the older automations engine instead of workflows.
        '404':
          description: >-
            There is no workflow with this ID on this app, or no run with this
            ID on that workflow.
        '429':
          description: >-
            Rate limit exceeded. The base limit is 120 requests per minute. See
            [Rate
            limits](/developers/references/apps-api/get-started/rate-limits) for
            the multiplier your plan gets.
        '503':
          description: >-
            Database temporarily unavailable (`database_unavailable`): the data
            cluster did not answer in time. Retry after the `Retry-After`
            seconds.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
              examples:
                database_unavailable:
                  summary: database_unavailable
                  value:
                    error:
                      code: database_unavailable
                      message: Database temporarily unavailable, please retry
                      details: {}
      security:
        - PersonalAccessTokenAuth:
            - read_only
        - WorkspaceApiKeyAuth:
            - read_only
        - WorkspaceApiKeyBearerAuth:
            - read_only
components:
  schemas:
    RunDetailResponse:
      properties:
        run_id:
          type: string
          title: Run Id
          description: ID of the run.
          example: 0195f2a1-4c3e-7b21-9f0d-2a5c8e1b4d77
        workflow_id:
          type: string
          title: Workflow Id
          description: ID of the workflow that ran.
          example: 68b1c0d4e7b91d003c45a1f2
        workflow_name:
          type: string
          title: Workflow Name
          description: Name of that workflow at the time of the run.
          default: ''
          example: Email me new signups
        trigger_type:
          type: string
          title: Trigger Type
          description: >-
            What started the run: `scheduled`, `entity`, `connector`,
            `in_app_agent`, `app_user_auth`, `app_publish`, `app_payment`,
            `webhook`, or `goal_file`. See
            [Triggers](/developers/references/apps-api/sections/workflows#triggers)
            for what each one fires on. A run started through [Run a workflow
            now](/api-reference/run-a-workflow-now) with no payload to replay
            reports `manual` instead.
          default: ''
          example: scheduled
        status:
          type: string
          title: Status
          description: >-
            How the run is going: `running`, `completed`, `failed`, or
            `cancelled`. See [Workflow
            status](/developers/references/apps-api/sections/workflows#workflow-status)
            for how this compares to the workflow's own status.
          example: completed
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Started At
          description: When the run started, as an ISO 8601 UTC timestamp.
          example: '2026-08-25T09:12:44Z'
        completed_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Completed At
          description: >-
            When the run finished, as an ISO 8601 UTC timestamp. This is `null`
            while it is still running.
          example: '2026-08-25T09:12:46Z'
        duration_ms:
          type: integer
          title: Duration Ms
          description: How long the run took, in milliseconds.
          default: 0
          example: 1840
        steps_count:
          type: integer
          title: Steps Count
          description: Steps the run executed.
          default: 0
          example: 3
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
          description: Why the run failed. This is `null` when it did not fail.
          example: The email step failed because the recipient address was missing.
        is_test_run:
          type: boolean
          title: Is Test Run
          description: >-
            This is `true` when the run was started by hand rather than by its
            trigger.
          default: false
          example: false
        ai_analysis:
          anyOf:
            - type: string
            - type: 'null'
          title: Ai Analysis
          description: >-
            Stored failure explanation, once [Analyze a failed workflow
            run](/api-reference/analyze-a-failed-workflow-run) has generated
            one. This is `null` until then.
          example: >-
            The email step failed because the recipient address was missing from
            the trigger payload.
        steps:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Steps
          description: >-
            The tasks the run executed, in order. Each carries `task_name`,
            `task_type`, `status`, `started_at`, `completed_at`, `duration_ms`
            and `error_message`, plus the data that went into and came out of
            the step, whose shape is whatever your workflow passes around.
          example:
            - completed_at: '2026-08-25T09:12:46Z'
              duration_ms: 1840
              error_message: ''
              started_at: '2026-08-25T09:12:44Z'
              status: completed
              task_name: send_email
              task_type: call
        credits_consumed:
          type: number
          title: Credits Consumed
          description: Credits the run used.
          default: 0
          example: 0.5
        status_reason:
          type: string
          title: Status Reason
          description: >-
            Why the run failed or was cancelled. Empty on runs that finished
            successfully.
          default: ''
          example: ''
        definition_version_id:
          type: string
          title: Definition Version Id
          description: >-
            Version the run executed, which can be older than the workflow's
            current one. Read it with [Get workflow
            version](/api-reference/get-workflow-version).
          default: ''
          example: 9f2c1a7b3e5d84f60c1b2a9e7d4f8c3b6a5e2d1f0c9b8a7e6d5c4b3a2f1e0d9c
        approved_by_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Approved By Name
          description: >-
            On a workflow project's run whose version uses admin-only workspace
            triggers or actions, the name of the workspace admin whose save
            approved them. Empty once that person's account is erased or
            deleted, and `null` on every other run.
          example: Dana Levi
      type: object
      required:
        - run_id
        - workflow_id
        - status
      title: RunDetailResponse
    StandardErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/StandardError'
          description: What went wrong.
      type: object
      required:
        - error
      title: StandardErrorEnvelope
      description: The error body returned in the standard envelope.
    StandardError:
      properties:
        code:
          type: string
          title: Code
          description: >-
            Stable machine-readable cause of the failure. Match on this, not on
            `message`.
          example: not_found
        message:
          type: string
          title: Message
          description: Human-readable explanation. It isn't a stable contract.
          example: App not found
        details:
          additionalProperties: true
          type: object
          title: Details
          description: >-
            Structured context for the failure, or an empty object when there's
            none.
          example: {}
      type: object
      required:
        - code
        - message
      title: StandardError
  securitySchemes:
    PersonalAccessTokenAuth:
      type: http
      scheme: bearer
      description: >-
        Personal access token, sent as `Authorization: Bearer <token>`. Each
        operation lists the permission it needs: `read_only` or `full_access`. A
        full-access token can call every operation. A read-only token can call
        only the operations that list `read_only`; anything else returns 403
        `read_only_credential_route_not_allowed`.
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: >-
        Workspace API key, sent as `api_key: <key>`. Each operation that accepts
        one lists what the key needs: a permission, `read_only` or
        `full_access`, like a personal access token, or a scope. A key without
        the scope gets 403 `workspace_api_key_scope_required`.
    WorkspaceApiKeyBearerAuth:
      type: http
      scheme: bearer
      description: >-
        Workspace API key, sent as `Authorization: Bearer <key>`. Accepted
        wherever `api_key` is, with the same permission.

````

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