Skip to main content
A workflow is the list of checks a user completes, such as a face scan and a document scan. You set up workflows in the Backoffice under Settings > Verification workflows (Production, Sandbox). Every verification runs one. You do not send the checks with each request. pawaPass picks the workflow when you create the verification, and the workflow decides the checks.

Checks a workflow can include

Face scan

The user takes a selfie with liveness detection. When the workflow also has a document scan, the face is compared with the photo on the document.

Document scan

The user scans an identity document: a passport, national ID, driver license, voter card, refugee card or residence permit. Which ones depends on the country (see Supported countries). Once the verification is approved, the data read from the document is in identityDocument.

Registry lookup

Available in Kenya and Nigeria only, and only together with a face scan. Instead of scanning a document, the user enters an ID number. pawaPass finds the record in the national registry and compares the registry photo with the user’s face.
  • If the face does not match the registry photo, the verification is declined as FACE_MISMATCH.
  • If the lookup cannot be completed, the user scans a document instead.
  • In any other country, the registry lookup is replaced by a document scan.
  • requirements reports a registry lookup as DOCUMENT_SCAN.
See Registry lookup for the ID types and the data you receive.

Selecting a workflow

By country (most integrations). Leave out workflowId, or send null. pawaPass runs the workflow set as the default for the verification’s country. You set the default per country in the Backoffice under Settings > Verification markets.
By ID. Send the 8-character workflowId shown in the Backoffice to run a specific workflow, for example one with a face scan only.
If the workflow cannot be used, the verification is not created: These checks run only when a new verification is created. If the externalId already has an active verification, the API returns it with 200 OK without checking the workflow.

When the workflow is set

The workflow is chosen when you create the verification, and workflowId is on the create response and on every webhook. Changing a country’s default in the Backoffice affects only verifications created afterwards. If someone edits the workflow before the user starts, the user gets the version in force when they start. requirements then reflects that version, from the STARTED webhook onward.
On verifications created before workflows existed, workflowId is null and requirements is the only record of the checks.
Older integrations sent a requirements array on create to choose the checks. It is still accepted, but the workflow decides the checks. See Verification requirements.