Create a Flow
Create a new Flow.
Create a new Flow.
api_keyAuthorizationBasic <token>application/json- body
steps*array<|>A list of steps. Can either be a string or an object with additional properties. Example: A redirect step looks like {"name": "redirect", "redirect_url": "https://example.com"}
user_id?stringThe user's id. If the user's ID is provided, the flow will be created in the authenticated state with a 15 minute expiration time unless the require_auth option is set to true.
uuidhide_go_to_dashboard_on_complete?booleanHide the "Go to dashboard" button on the flow UI. Defaults to false.
falserequire_auth?booleanRequire the user to be authenticated to complete the flow. Defaults to false.
falseexpired_redirect_link?stringURL to redirect to when the flow has expired.
urimetadata?|Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Created
application/json- response
id?stringID of the flow.
uuidcreated?stringDate that the flow was created.
date-timeuser_id?|ID of the user that has claimed the flow.
uuidsteps?array<>Array of steps in the flow.
completed_steps?array<>Array of steps that have been completed in the flow.
payout_link_id?|ID of the payout link associated with this flow, if one exists.
uuidlink?stringURL to access the flow. Can be embedded in an iframe.
uriexpired?booleanWhether the flow has expired. Only returned when retrieving a single flow.
metadata?||Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
curl -X POST 'https://api.dots.dev/api/v2/flows' \ -H 'Content-Type: application/json' \ -d '{ "steps": [ "compliance" ]}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "created": "2019-08-24T14:15:22Z", "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5", "steps": [ "compliance" ], "completed_steps": [ "compliance" ], "payout_link_id": "50673cb3-bf8b-4fdc-9f5f-114b168da4ab", "link": "http://example.com", "expired": true, "metadata": "string"}