Guides
Flows
A flow is the list of checks a customer goes through. You build flows in the panel with the flow builder, and every session runs one published flow.
Simple and advanced flows
| Mode | How it works |
|---|---|
simple | An ordered list of steps. The customer goes through them one after another. |
advanced | A graph. Each outcome of a step leads to another step or to an end: approved, manual review or rejected. |
Outcomes and ends
Each service has its own outcomes, such as match, no_match and error for registry inquiries. In an advanced flow you decide where each outcome goes. When the customer reaches an end, the session is completed with that outcome. The outcomes of every service are listed under Services.
Publishing
Only published flows can start sessions. The panel checks the flow before it publishes it, for example that every outcome leads somewhere and every prerequisite comes first. GET /v1/flows lists the published flows of your company:
curl https://api.myid.ir/v1/flows \
-H "Authorization: Bearer $MYID_API_KEY"Changes after a session starts
A session keeps a copy of the flow from the moment it was created. Editing or unpublishing the flow later does not change sessions that are already open.