> ## 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-now options

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

Tells you what [Run a workflow now](/api-reference/run-a-workflow-now) needs for this workflow.

If `manual_run_config.requires_previous_run` is `false`, this workflow doesn't need a payload. Call [Run a workflow now](/api-reference/run-a-workflow-now) with an empty body.

If it's `true`, the trigger's payload is real data pulled from the app, not something you can invent. For example, an entity trigger's payload is the actual record that was created or changed, and its fields feed directly into the workflow's steps. Rather than inventing one, replay a real payload from a past run. Pick one of the `recent_runs` entries and pass its `run_id` as `replay_from_run_id` when you call [Run a workflow now](/api-reference/run-a-workflow-now).

Every run listed in `recent_runs` is confirmed replayable, so using one should always succeed. The list holds at most 20 runs, newest first. It's empty when `requires_previous_run` is `false`, since there's nothing to replay, and it can also be empty when it's `true` but no past run has a payload that's still replayable yet, for example before the workflow has ever run.



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json get /api/apps/{app_id}/workflows/{workflow_id}/run-now-info
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}/run-now-info:
    get:
      summary: Get workflow run-now options
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Tells you what [Run a workflow now](/api-reference/run-a-workflow-now)
        needs for this workflow.


        If `manual_run_config.requires_previous_run` is `false`, this workflow
        doesn't need a payload. Call [Run a workflow
        now](/api-reference/run-a-workflow-now) with an empty body.


        If it's `true`, the trigger's payload is real data pulled from the app,
        not something you can invent. For example, an entity trigger's payload
        is the actual record that was created or changed, and its fields feed
        directly into the workflow's steps. Rather than inventing one, replay a
        real payload from a past run. Pick one of the `recent_runs` entries and
        pass its `run_id` as `replay_from_run_id` when you call [Run a workflow
        now](/api-reference/run-a-workflow-now).


        Every run listed in `recent_runs` is confirmed replayable, so using one
        should always succeed. The list holds at most 20 runs, newest first.
        It's empty when `requires_previous_run` is `false`, since there's
        nothing to replay, and it can also be empty when it's `true` but no past
        run has a payload that's still replayable yet, for example before the
        workflow has ever run.
      operationId: >-
        get_run_now_info_api_apps__app_id__workflows__workflow_id__run_now_info_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
      responses:
        '200':
          description: What a manual run needs, and which runs can be replayed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunNowInfoResponse'
        '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. A
            missing app and an app you cannot reach are deliberately the same
            answer.
        '404':
          description: There is no workflow with this ID on this app.
        '429':
          description: >-
            Rate limit exceeded. The base limit is 30 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:
    RunNowInfoResponse:
      properties:
        manual_run_config:
          $ref: '#/components/schemas/TriggerManualRunConfig'
          description: What a manual run of this workflow needs.
        recent_runs:
          items:
            $ref: '#/components/schemas/RunItem'
          type: array
          title: Recent Runs
          description: >-
            Runs whose payload you can replay, newest first, at most 20. Empty
            when the trigger needs no payload.
          example: []
      type: object
      required:
        - manual_run_config
      title: RunNowInfoResponse
    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.
    TriggerManualRunConfig:
      properties:
        requires_previous_run:
          type: boolean
          title: Requires Previous Run
          description: >-
            Whether a manual run must replay a previous run's payload, because
            the trigger's own payload references real in-app state a synthetic
            one can't stand in for. This is `false` for triggers that run
            without a payload, for example a scheduled trigger.
          default: true
          example: false
      type: object
      title: TriggerManualRunConfig
      description: |-
        Per-trigger behavior of the app editor's manual "Run now" experience.

        ``requires_previous_run``: the trigger payload references real in-app
        state (entity records, agent conversations, connector events) that a
        synthetic payload can't satisfy — a manual run must replay the payload
        of a previous run. Triggers that run without a payload (e.g. scheduled)
        set this to False.
    RunItem:
      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. This is `0` while it is
            still running.
          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 through [Run a
            workflow now](/api-reference/run-a-workflow-now), rather than by its
            trigger.
          default: false
          example: false
        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: ''
      type: object
      required:
        - run_id
        - workflow_id
        - status
      title: RunItem
    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.