Workflows
A workflow is the list of checks a verification runs, in order: for example document, then liveness, then face match. You build it in the dashboard, publish it, and every new session runs the published version. No code change is needed to change what your users go through.
Open Workflows in the dashboard sidebar. Start from a template or New workflow, edit the draft, then publish. Published versions never change; to edit one you make a new draft from it. Archived workflows cannot start new sessions, and sessions already running are not affected.
Templates
| Template | What it runs |
|---|---|
| Standard KYC | Document, passive liveness and a 1:1 face match. The flow every project starts with. |
| KYC + Address | Standard KYC plus an optional proof of address the user may skip. |
| Identity only | Document check without biometrics. No selfie. |
| Biometric re-auth | Returning users prove it is still them with a liveness challenge against their saved identity. |
| Face re-verification | For people already approved in your project: a live selfie, no document scan. See below. |
Available checks
Document, liveness, face match, face re-verification, proof of address (guide), saved-identity reuse, and AML screening (guide). Phone, email, age, NFC and device/IP checks are shown as coming soon and cannot be turned on yet.
Accepted document types
By default a workflow accepts every document Flonk can read. To limit it, open the Document check and untick the types you don't want under Accepted documents: passport, ID card, driving licence. At least one type stays on.
- A person who shows a clearly readable document of another type is asked straight away to photograph an accepted one. That photo is not kept and does not use up a retake.
- The verification screen names the accepted documents before the camera opens.
- There is no separate switch for residence permits. They are normally read as ID cards, so they follow the ID card switch.
- A saved identity is not offered for reuse when it was verified with a type the workflow does not accept. The person goes through the normal flow instead.
- A photo too poor to read is handled like any other poor photo: the person
retakes it, and when the retakes run out it goes to manual review. If it was
read as a type the workflow refuses, the review carries
DOCUMENT_TYPE_NOT_ACCEPTED, so the reviewer knows. - A refused type is never approved automatically.
The change applies to verifications started after you publish. It applies to sessions that run a workflow, including your project's default one; a project with workflows turned off is not restricted. Test mode processes no documents, so the restriction is not exercised there.
Integrating with the Direct API?
The upload answers with DOCUMENT_TYPE_NOT_ALLOWED.
What you can't publish
The dashboard checks the flow when you publish and points at the node to fix. You can't publish a workflow that:
- has a face match without a document and a liveness check before it on every path;
- has a face re-verification without liveness before it, or mixes it with any other check;
- has AML screening without a document check before it, or starts with it (it runs on a verification that would otherwise pass);
- uses the same check twice;
- has no ending that approves the verification, a step that leads nowhere, a loop, or a step that can never be reached;
- turns on a coming-soon check;
- is larger than the limits (60 steps, 8 branches).
Face re-verification
Use it when a person you already approved comes back (a login, a withdrawal, a password reset). Your customer takes a live selfie. Flonk compares it with the document photo and the selfie from their earlier approved verification in the same project, found by the email you passed when creating the session. No document is scanned again.
- Which earlier verification counts: the latest completed one for that email whose face match passed. Only sessions created with your secret key count; test-mode sessions and earlier re-verifications never do.
- Threshold: from 0.5 to 0.99, default 0.75. Higher is stricter: fewer look-alikes pass, more people are asked to retake.
- Must match: Both photos (default) needs the selfie to reach the threshold against the document photo and the earlier selfie. Either photo is enough when it matches one of the two.
- In the dashboard the verification reads as a re-verification, shows the scores and the threshold, and links to the verification it was compared with. A declined one says why.
Use a workflow from code
Pass workflowId (copy it with Copy workflow id in the list) when you create a session:
curl -X POST https://api.flonk.id/v1/sessions \-H "Authorization: Bearer $FLONK_SECRET_KEY" \-H "Content-Type: application/json" \-d '{"workflowId": "wf_clx1234567890","clientMetadata": { "email": "user@example.com" }}'
- Omit it and the session runs your project's default workflow. If there is no default, or it has no published version yet, the session runs the standard flow as before.
- The session is pinned to the latest published version when it is created. Publishing later does not change sessions already running.
- A workflow that does not exist (or belongs to another project or environment)
answers
404(KYC_030). An archived one, or one with no published version, answers409(KYC_037,KYC_038). See Errors. - Let the dashboard decide. In the Which workflow runs card on the
Workflows page, Dashboard decides makes every session run the default,
even when your code names another workflow, so you can switch flows without a
deploy. Code decides (the default) honours
workflowId.
The verification.completed webhook reports the workflow the session ran and
a checks list with one result per check, including faceReverify. See
Webhooks for the fields.
Who can edit workflows
Two permissions control it: View workflows (see workflows, versions and prices) and Manage workflows (create, edit, publish and archive). Owners and admins have both by default; moderators and viewers can only view. The project owner can change this per role in Team → Role settings.
Pricing
Checks are priced one by one, so a workflow changes what a verification costs. The Workflows list shows the price per session for each workflow, with optional steps such as a skippable proof of address counted towards the maximum. Prices are set for your account; there is no fixed figure here. Free verifications from your trial can cover the checks of a workflow: see Free trial & billing.
New accounts get 300 free verifications with no end date. Each completed verification uses one; test sessions made with your test keys are not charged by default. When they run out, top up in Dashboard → Billing.