Flow Responses
POST
Flow Responses record responses to a Flow from a user. A Flow Responses is generated at several points in the Flow lifecycle:
- When a user starts a Flow
- When a user starts a Step in a Flow
- When a user completes a Step in a Flow
- When a user completes a Flow
The object has the following structure:
Field | Type | Description |
---|---|---|
flowSlug | string | The unique identifier of the Flow that the Flow Responses object is associated with. |
stepId | string | The step id in the flow where the action is taken. |
userId | string | The unique identifier of the user that the Flow Responses object is associated with. Generated by Frigade |
foreignUserId | string | The unique identifier of the user that the Flow Responses object is associated with. Supplied by passing the userId by the client. |
data | object | The data associated with the Flow Responses object. This data depends on the data collected in a given Step such as form data or tracking data |
actionType | string | The type of Flow Responses object. Can be one of the following: STARTED_FLOW , STARTED_STEP COMPLETED_STEP , COMPLETED_FLOW , SKIPPED_FLOW |
createdAt | string | The ISO date and time when the Flow Responses object was created. |
Examples
Completing a step in a Flow
To mark the step with id my-first-action
completed for a user with the id my-user-id
in a Flow with the slug flow_52HJEGugV8dmXx6J
, you would make the following request:
Was this page helpful?