core2-jvm (latest)
core2-jvm (latest)core-jvm
  • Home
  • Features
  • Spec
  • Guides
  • Sandbox
  • Step Studio
  • Step
    • Action
    • External
    • Help
    • Link Handler
    • Navigation
    • Persist Async
    • Polling
    • Refresh On Change
    • Schema On Change
    • Step Error
    • Suggestions
    • Summary
    • Toolbar
    • Upload
    • Validate Async
    • Schema
    • All Of Schema
    • Array Schema
    • Blob Schema
    • Boolean Schema
    • Const Schema
    • Integer Schema
    • Number Schema
    • Object Schema
    • One Of Schema
    • String Schema
    • Layout
    • Alert Layout
    • Box Layout
    • Button Layout
    • Columns Layout
    • Decision Layout
    • Divider Layout
    • Form Layout
    • Heading Layout
    • Image Layout
    • Instructions Layout
    • List Layout
    • Loading Indicator Layout
    • Markdown Layout
    • Media Layout
    • Modal Layout
    • Paragraph Layout
    • Progress Layout
    • Review Layout
    • Search Layout
    • Section Layout
    • Status List Layout
    • Tabs Layout
    • Upsell Layout
    • Behavior
    • Action Behavior
    • Copy Behavior
    • Dismiss Behavior
    • Link Behavior
    • Modal Behavior
    • Refresh Behavior
    • Subflow Behavior
    • Subflow
    • Dynamic Launch Config
    • Launch Config
    • Modal Presentation
    • Native Launch Config
    • Presentation
    • Push Presentation
    • Action Response Body
    • Error Response Body
    • Flow Response
    • Modal Response Body
    • No Op Response Body
    • Search Initial Layout Config
    • Search Initial Results Config
    • Search Initial State
    • Search Layout Response Body
    • Search Response
    • Search Response Body
    • Search Result
    • Search Results Response Body
    • Subflow Response Body
    • Additional Info
    • Align
    • Autocapitalization Type
    • Autocomplete Token
    • Context
    • Icon
    • Image
    • Inline Alert
    • Media
    • Native Capabilities
    • Request
    • Size
    • Supporting Values
    • Control
    • Tag

Flow Response

Android - 8.25.0 iOS - 11539 Web - 2.5.0

There are a number of different responses which can progress a flow. All require a 2xx response code, and they are differentiated by the X-DF-Response-Type header, as described by the following table:

Response Type Header ValueResponse Type
stepStep
actionAction Response Body
modalModal Response Body
no-opNo Op Response Body  Unsupported
subflowSubflow Response Body
exitExit Response, see below.

If no header is provided, the response is assumed to be a Step.

Exit Response

A response is determined to be an Exit when the status code is in the 200-299 range, and either the exit property in the triggering action was set to true, or the response includes the X-DF-Response-Type: exit header.

On receiving an exit response, the client will merge the action.result into the response body, and exit the flow with the merged value as the result.

Note that when the triggering action has exit: true, the X-DF-Response-Type header is ignored.

Cross-origin web clients

If a DF endpoint may be consumed by browser-based web clients from a different origin, the X-DF-Response-Type header must be exposed via CORS. Ensure that the Access-Control-Expose-Headers header includes X-DF-Response-Type, for example:

Access-Control-Expose-Headers: X-DF-Response-Type, Other-Header

This is not required for same-origin web clients or native mobile clients.

Related Types

Type

Values

ValueDescription
Action
Exit
Modal
NoOp
Step
Subflow