CredflareDevelopersOpen dashboard
Not yet on production

Checks and questions

Check nodes read the evidence a case collected and give the workflow values to decide on. This page lists what each check needs, what it returns, and the questions and contact codes the applicant answers.

These checks, email and phone codes, and the new question types are not yet available on the production API. Build against a development environment until they are announced.
CheckNeeds before it in the graphProvider
face.matchAn identity document requirement and the facial_verification requirementA face matching service
aml.screenA field extraction node for the identity documentOpenSanctions yente
poa.validateField extraction nodes for the proof of address and the identity documentNone. It compares extracted fields.
emailThe email_verification requirementEmail for the codes
phoneThe phone_verification requirementSMS for the codes

When no provider serves a check in the case's environment, GET /workflow-node-types reports it with available: false and unavailable_reason: "provider_not_configured". Field extraction reports not_enabled until an administrator turns it on.

Face match

Compares the face on the front of the identity document with the selfie from the liveness step. It has no settings. Place it after both requirements:

{
  "graph": {
    "nodes": [
      {
        "id": "identity",
        "type": "requirement",
        "config": {
          "ref": "group:identity"
        }
      },
      {
        "id": "selfie",
        "type": "requirement",
        "config": {
          "ref": "check:facial_verification"
        }
      },
      {
        "id": "face",
        "type": "check",
        "config": {
          "capability": "face.match",
          "settings": {},
          "rules": [
            {
              "path": "nodes.face.output.match",
              "op": "equals",
              "value": false,
              "outcome": "in_review",
              "reason": "Face does not match the document"
            }
          ]
        }
      },
      {
        "id": "approve",
        "type": "outcome",
        "config": {
          "status": "approved"
        }
      }
    ],
    "edges": [
      {
        "from": "identity",
        "to": "face"
      },
      {
        "from": "selfie",
        "to": "face"
      },
      {
        "from": "face",
        "to": "approve"
      }
    ]
  },
  "auto_decline": false
}
OutputMeaning
scoreSimilarity of the two faces. null when a face was not found.
thresholdThe score the provider treats as a match.
matchWhether score reached threshold.
faces_foundreference (the document) and probe (the selfie), each true or false.
facesFor reference and probe: box as [x, y, width, height], five landmarks and confidence, in pixels of the stored image, or null. Reviewers can crop the compared faces with them.
reference_file_id, probe_file_idThe files compared.

Output from a sample case:

{
  "score": 0.7147,
  "threshold": 0.363,
  "match": true,
  "faces_found": {
    "reference": true,
    "probe": true
  },
  "faces": {
    "reference": {
      "box": [
        351.4,
        82.1,
        232.2,
        327.7
      ],
      "landmarks": [
        [
          415,
          203.8
        ],
        [
          532.4,
          200.9
        ],
        [
          473.8,
          263.7
        ],
        [
          420.4,
          314.1
        ],
        [
          527.7,
          312.4
        ]
      ],
      "confidence": 0.9466
    },
    "probe": {
      "box": [
        104.5,
        24.4,
        55.5,
        74.5
      ],
      "landmarks": [
        [
          111.4,
          53.4
        ],
        [
          137.9,
          53.7
        ],
        [
          118.8,
          69.3
        ],
        [
          113.7,
          82.1
        ],
        [
          135.5,
          80.6
        ]
      ],
      "confidence": 0.9307
    }
  },
  "reference_file_id": 86,
  "probe_file_id": 89
}

A face match is evidence for a reviewer. It does not prove that the selfie was taken live; see what the liveness checks show. Test score with is_empty to catch a missing face, because lt is false on a missing value.

Sanctions and PEP screening

Screens the applicant's name, date of birth and country against sanctions, politically exposed person (PEP) and crime lists through OpenSanctions yente. It sends applicant.name, applicant.date_of_birth and applicant.country, read as described in conditions, so extract full_name (or first_name and last_name), date_of_birth and nationality from the identity document. Without a name the check fails with missing_name.

SettingAllowedDefault
threshold0.5 to 1. The score a result needs to count as a match. Results below it are left out.0.7
OutputMeaning
match_scoreThe highest match score. 0 when nothing matched.
topicsOpenSanctions topic codes of the matches, such as sanction, role.pep or crime.
matchesEach match as {id, name, score, topics, datasets}.

A rule such as {"path": "nodes.screen.output.topics", "op": "contains", "value": "sanction", "outcome": "in_review"} sends possible matches to a reviewer. A self-hosted deployment needs a commercial OpenSanctions data licence to screen live cases.

Proof of address

Compares the name on a proof of address with the name on the identity document and reads its issue date. It needs two field extraction nodes before it. This graph reads both documents, screens the identity and checks the proof of address:

{
  "graph": {
    "nodes": [
      {
        "id": "identity",
        "type": "requirement",
        "config": {
          "ref": "group:identity"
        }
      },
      {
        "id": "id_read",
        "type": "check",
        "config": {
          "capability": "document.parse",
          "settings": {
            "strategy": "fast"
          },
          "rules": []
        }
      },
      {
        "id": "id_fields",
        "type": "check",
        "config": {
          "capability": "document.extract",
          "settings": {
            "schema_fields": {
              "full_name": {
                "type": "string"
              },
              "date_of_birth": {
                "type": "date"
              },
              "nationality": {
                "type": "string"
              }
            }
          },
          "rules": []
        }
      },
      {
        "id": "screen",
        "type": "check",
        "config": {
          "capability": "aml.screen",
          "settings": {},
          "rules": [
            {
              "path": "nodes.screen.output.topics",
              "op": "contains",
              "value": "sanction",
              "outcome": "in_review",
              "reason": "Possible sanctions match"
            }
          ]
        }
      },
      {
        "id": "address",
        "type": "requirement",
        "config": {
          "ref": "group:address"
        }
      },
      {
        "id": "poa_read",
        "type": "check",
        "config": {
          "capability": "document.parse",
          "settings": {
            "strategy": "fast"
          },
          "rules": []
        }
      },
      {
        "id": "poa_fields",
        "type": "check",
        "config": {
          "capability": "document.extract",
          "settings": {
            "schema_fields": {
              "full_name": {
                "type": "string"
              },
              "issue_date": {
                "type": "date"
              },
              "address": {
                "type": "string"
              }
            }
          },
          "rules": []
        }
      },
      {
        "id": "poa",
        "type": "check",
        "config": {
          "capability": "poa.validate",
          "settings": {
            "identity_node": "id_fields"
          },
          "rules": [
            {
              "path": "nodes.poa.output.name_score",
              "op": "lt",
              "value": 80,
              "outcome": "in_review",
              "reason": "Name differs from the ID"
            }
          ]
        }
      },
      {
        "id": "approve",
        "type": "outcome",
        "config": {
          "status": "approved"
        }
      }
    ],
    "edges": [
      {
        "from": "identity",
        "to": "id_read"
      },
      {
        "from": "id_read",
        "to": "id_fields"
      },
      {
        "from": "id_fields",
        "to": "screen"
      },
      {
        "from": "screen",
        "to": "approve"
      },
      {
        "from": "address",
        "to": "poa_read"
      },
      {
        "from": "poa_read",
        "to": "poa_fields"
      },
      {
        "from": "poa_fields",
        "to": "poa"
      },
      {
        "from": "id_fields",
        "to": "poa"
      },
      {
        "from": "poa",
        "to": "approve"
      }
    ]
  },
  "auto_decline": false
}
SettingAllowedDefault
max_age_months1 to 243
identity_nodeThe ID of the identity extraction nodeThe nearest other extraction node that reads the name field
fieldsField names to read: name, issue_date and address on the proof, identity_name on the identity documentfull_name, issue_date, address and full_name

The proof of address extraction is the nearest extraction node before the check, other than identity_node, that reads the issue date or address field.

OutputMeaning
name_score0 to 100. Similarity of the two names, ignoring case, accents, punctuation and word order.
issued_months_agoWhole months since the issue date.
issued_within_max_ageWhether the proof is recent enough.
max_age_monthsThe limit used.
addressThe extracted address.

Output from the sample case:

{
  "name_score": 74,
  "issued_months_ago": 1,
  "issued_within_max_age": true,
  "max_age_months": 3,
  "address": "12 Rue Joss, Douala"
}

When a provider fails

Face match and screening run in the background. The node stays running until the provider answers. A provider that cannot be reached is retried twice, 5 and then 30 seconds later, and each attempt is a provider_called event. A check that cannot run fails and sends the case to review. It never passes silently. The node output has an error_code:

error_codeWhen
provider_not_configuredNo provider serves this check in the case's environment.
provider_unavailableThe provider could not be reached after the retries.
provider_rejectedThe provider refused the request.
invalid_image_reference, invalid_image_probeThe document image or the selfie could not be read.
missing_inputThe document or the selfie was not submitted.
missing_nameNo name was extracted to screen.

Email and phone codes

Add email_verification or phone_verification to a profile's verification_requirements. The applicant confirms an address or a number with a code. These requirements carry "settings": null; the limits are fixed.

StepSession routeHosted route
Send a codePOST /sdk/sessions/{session}/{channel}-codesPOST /client/verifications/{id}/{channel}-codes
Confirm itPOST /sdk/sessions/{session}/{channel}-codes/confirmPOST /client/verifications/{id}/{channel}-codes/confirm

channel is email or phone. Send {"email": "..."}, at most 254 characters, or {"phone": "..."} in international format, such as +237650000001. Spaces, brackets, dots and dashes are removed from a number first. The reply is 202:

{
  "success": true,
  "message": "Code sent",
  "data": {
    "channel": "email",
    "destination": "J*******@example.test",
    "expires_at": "2026-11-22T00:08:07.000000Z",
    "resend_available_at": "2026-11-21T23:59:07.000000Z",
    "sends_remaining": 4
  }
}

Use resend_available_at and sends_remaining to drive a resend button. Confirm with {"code": "123456"}. The reply is 201 with the submission id and the check output, and the workflow runs:

{
  "success": true,
  "message": "Operation successful",
  "data": {
    "id": 1,
    "email": "[email protected]",
    "domain": "example.test",
    "disposable": false,
    "verified": true
  }
}
  • Digits in a code: 6.
  • A code expires 10 minutes after it is sent.
  • 5 wrong codes burn the code. The applicant needs a new one.
  • A new code can be sent 60 seconds after the last one.
  • At most 5 codes are sent for one case within 24 hours.

A workspace can change how long codes last, from 5 to 30 minutes, in its settings. Credflare enforces the attempt and send limits itself whichever service delivers the codes, and never returns a code in a reply. Requests are limited to 10 a minute and confirmations to 20 a minute per caller. A malformed address, number or code is an ordinary 422 with errors.<field> and no code.

Code rejections

Other rejections are 422 with a code. The table lists the email. codes; each has a phone. twin with the same meaning, where the sender is SMS. A resend_too_soon rejection also carries resend_available_at, and the masked destination the waiting code went to with its expires_at and sends_remaining. Show that destination on the code entry, so the applicant knows which code to enter even after a reload. Asking for a code to a different address or number gets this rejection until the countdown ends.

{
  "success": false,
  "message": "Wait a minute before asking for another code.",
  "errors": [],
  "code": "email.resend_too_soon",
  "resend_available_at": "2026-11-23T15:32:57.000000Z",
  "destination": "s***********@example.test",
  "expires_at": "2026-11-23T15:41:57.000000Z",
  "sends_remaining": 4
}
CodeWhenThe applicant sees in the SDKsButton
email.not_configuredNo email sender serves this environment, for example the log driver on a live caseEmail confirmation unavailable
Confirming an email address is not available for this request yet. Contact {verifier}.
Close (leave)
email.resend_too_soonA code was sent to this email address less than 60 seconds agoWait before asking again
A code was sent less than a minute ago. Wait a moment, then ask for a new code.
Send a new code (wait)
email.send_limitFive codes were sent for this case within 24 hoursToo many codes sent
Too many codes were sent for this request. Try again in 24 hours.
Close (leave)
email.code_missingNo unused code was requested for this caseNo code to check
Ask for a code first, then enter it here.
Send a new code (new_code)
email.code_expiredThe code is older than 10 minutesCode expired
This code has expired. Ask for a new one.
Send a new code (new_code)
email.code_invalidThe code does not matchCode not correct
This code is not correct. Check it and enter it again.
Enter the code again (reenter_code)
email.too_many_attemptsFive wrong codes were entered; a new code is neededToo many wrong codes
Too many wrong codes were entered. Ask for a new code.
Send a new code (new_code)

A leave rejection cannot be resolved in the app, so the SDKs hand control back to your app with the code. See rejection screens.

Check outputs

CheckOutput
emailemail, domain, disposable and verified. disposable is true when the domain or a parent domain is on the disposable-email-domains list.
phonephone and verified.

Publishing a workflow that asks for an email or phone code is refused while no sender serves its environment, because the applicant could never finish the requirement. No SMS sender serves live cases yet, so publishing a live workflow with a phone code returns 422 with "Sending phone codes is not configured for live cases."

Questions

A profile's form_schema lists questions. Each has key, label, type and required, plus options for choice types, min and max for numbers, and an optional show_if. Choice types need up to 100 distinct options of up to 200 characters.

typeAnswer
textA string of at most 5000 characters.
textareaA string of at most 5000 characters.
emailAn email address of at most 254 characters.
numberA JSON number, or a string of digits with an optional decimal part, within min and max.
dateA real calendar date as YYYY-MM-DD.
selectOne of options.
telA phone number: digits, spaces, brackets, dots and dashes, with an optional leading +.
founders{"includes_applicant": true or false, "names": [strings]}
phoneA phone number: digits, spaces, brackets, dots and dashes, with an optional leading +.
single_selectOne of options.
multi_selectA list of distinct options.
countryAn ISO 3166 alpha 2 code in upper case, such as DE.
consenttrue or false. A required consent must be true.

Submit answers with {"type": "form_submission", "fields": {"<key>": value}} on the session or hosted submit route. An empty answer (null, "" or []) skips the type check, but a required question that is shown must be answered. Answers are checked against their type, and conditions read them as form.<key>.

show_if

show_if is {match, conditions}, with match all (the default) or any and 1 to 10 conditions. Each condition reads form.<key> of a question earlier in the list and uses the workflow operators and their missing value rule.

[
  {
    "key": "employment",
    "label": "Employment",
    "type": "single_select",
    "required": true,
    "options": [
      "Employed",
      "Self employed",
      "Student",
      "Retired"
    ]
  },
  {
    "key": "employer",
    "label": "Employer name",
    "type": "text",
    "required": true,
    "show_if": {
      "match": "all",
      "conditions": [
        {
          "path": "form.employment",
          "op": "equals",
          "value": "Employed"
        }
      ]
    }
  },
  {
    "key": "income",
    "label": "Yearly income",
    "type": "number",
    "required": false,
    "min": 0,
    "max": 10000000,
    "show_if": {
      "match": "any",
      "conditions": [
        {
          "path": "form.employment",
          "op": "in",
          "value": [
            "Employed",
            "Self employed"
          ]
        }
      ]
    }
  }
]
  • A question without show_if is always shown.
  • Evaluate against every answer given so far, including answers sent earlier in the case. The session's profile.form_answers holds the earlier answers a show_if of an outstanding question reads, and the earlier answer of each question asked again. Seed your answers with it, and do not send those keys again unless the question is asked again.
  • A hidden question is not required. Do not send an answer for it: the server rejects it with 422.
{
  "success": false,
  "message": "This question is not shown for the answers given.",
  "errors": {
    "fields.employer": [
      "This question is not shown for the answers given."
    ]
  }
}

The SDKs evaluate show_if with the same rules as the server, checked against a shared set of cases in the SDK spec.