Skip to main content

Prerequisites

  • A pawaPass partner account with access to the sandbox Backoffice. Ask support if you do not have one.
  • A sandbox API key, created in the sandbox Backoffice under Settings > Integration.
  • The user’s country enabled as a market under Settings > Verification markets. The examples use Zambia (ZM).
The examples call the sandbox. Production works the same way with its own base URL and key (see Environments).
1

Create a verification

Call POST /verifications/ from your server. You do not list the checks: the workflow set up for the country decides them. This example uses a workflow with a face scan and a document scan.
Required fields are externalId, country, successUrl, errorUrl and supportUrl. The others are optional:The response is the verification. Send the user to its url:
A new verification returns 201 Created. If the same externalId already has an active verification, that one is returned unchanged with 200 OK. See Re-verifying the same user.
2

Send the user to the flow

Redirect the user to url. They complete the face scan and the document scan on a pawaPass page.At the end, the last screen shows a button back to your site. The button links to:pawaPass does not redirect on its own and adds nothing to your URL. To know which user came back, put your own reference in the URL, for example https://your-website.com/success?ref=user-zm-98765. Take the result from the webhook or the API, never from which URL the user lands on.
To keep the user on your site instead, embed the flow with the Web SDK.
3

Check the result

In production, the webhook tells you when the status changes. To check a verification yourself, fetch it:
When the status is APPROVED, identityDocument holds the data read from the document (other fields left out here):

Going live

Sandbox and production are separate environments, each with its own Backoffice and settings. Before you switch:
  1. Create a production API key in the production Backoffice and use the base URL https://api.pawapass.com.
  2. Set the production webhook URL and generate the production webhook secret. Do this before you create the first production verification.
  3. Set up your markets and workflows in production. They do not carry over from the sandbox, and workflowId values differ between environments.
  4. If you use the Web SDK, create a production public key (pk_prod_...) with your production domains, and update your Content Security Policy to https://app.pawapass.com.

Next steps