Docs

Flows

Start a browser flow, read its current step and submit the step, for sign-in, registration and recovery.

A flow is one browser journey, such as sign-in, registration or recovery. It resolves a flow definition and walks the user through its steps. Call these operations from a browser client.

Start the flow, then repeat: read the current step and submit what the user entered. The server keeps the flow's state in a cookie of its own, _zflow_{flow_id}, so two sign-ins in one browser do not end each other. A browser sends it on its own; a client that is not a browser must capture the Set-Cookie header and send it back. The flow's id can change between responses, and the cookie moves with it, so always use the one from the latest response. A browser keeps the cookies of at most three flows: starting a fourth ends the oldest.

Until 1.0.0 the server also answers these operations at /flow, the collection's path before it became /flows: POST /flow, GET /flow/{flow_id} and POST /flow/{flow_id}/submit. Such a response carries a Deprecation header (RFC 9745) with the date /flows shipped, and a Link with rel="deprecation" to this page. Move a client that still calls /flow to /flows: from 1.0.0 the old paths answer 404 with req.not_found. The login component and the SDKs call /flows from the release that moved the operations.

MethodPathSummary
POST/flowsStart a flow
GET/flows/{flow_id}Get the current step of a flow
POST/flows/{flow_id}/submitSubmit a flow step

Was this helpful?