Flows
Flow Actions

Add an action to a flow

Changed on

Append a single action to a flow at the given position, optionally nesting it under a parentFlowActionId or supplying its own children. Supports a nameOverride, param overrides, and continueOnError. Returns 404 if the flow does not exist.

Supports an optional Idempotency-Key header (1-255 printable ASCII characters). Replays with the same key and an identical body return the original 201; a changed body under the same key returns 422 idempotency_key_reused.

post/flows/{flowId}/actions

Request

  • Base URL
    https://api.mobilerun.ai
  • URL
    https://api.mobilerun.ai/flows/{flowId}/actions
  • Auth
    HTTP bearer

Path parameters

flowIdstring uuid required

Headers

idempotency-keystring

Idempotency-Key: 1-255 printable ASCII characters. Same key with a different request body is a 422 idempotency_key_reused. A retryable in-flight duplicate is a 409 with Retry-After and x-should-retry: true; a terminal duplicate is a 409 with x-should-retry: false. A replay returns the current resource state with Idempotent-Replayed: true.

Example:b3f6a9f0-6f1a-4e9a-9e7a-9c9b6b6a5a3f

Request body

actionIdstring uuid required
positioninteger required
continueOnErrorboolean
nameOverridestring
keystring

Stable identifier used by template resolution v2+ to address this step as {{key.field}}. Omitted keys are derived from the step name whenever a flow is created. For template resolution v3, replacing an existing flow's full action tree requires every step to carry an explicit key — a missing key is rejected there, not derived, so a name change can never silently move a step's key.

recordingEnabledboolean
parentFlowActionIdstring uuid nullable

Response

Flow action added

Changes

    • breaking

      the / response's property format changed from no format to date-time for status

    • breaking

      removed the required property from the response with the status

    • info

      added the new optional header request parameter idempotency-key

    • info

      added the new optional request property //

    • info

      added the new optional request property //

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the non-success response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property to the response with the status

    • breaking

      the request property // became not nullable

    • breaking

      the request property //// became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property became not nullable