Overview
Integrating PhilSys face liveness requires a 2-step process.- Capture face liveness with the PhilSys Liveness SDK V3
Start the Philippine government eVerify liveness interface from your website. You provide onlyclientIdandversion. - Call the IDmeta PhilSys Check API using the liveness result
Pass the returnedsession_idasfaceLivenessSessionIdin your PhilSys Check request.
Step 1: Capture PhilSys face liveness
Add the SDK to your website
Load the SDK before you callIDmetaPhilsysLivenessV3():
Start face liveness
Your Client ID can be found under Profile > API Tokens in your account..
Liveness Options
Liveness Result Statuses
LIVENESS_CANCELLED means the user closed the capture. LIVENESS_FAILED means the government flow ran but could not complete normally. GOV_SERVER_ERROR represents a government SDK or infrastructure outage. NETWORK_ERROR means the IDmeta preflight could not be reached.
Sample Results from Face Liveness Capturing SDK
Completed liveness checkStep 2: Call PhilSys Check API
After the liveness flow is completed, pass thesession_id from the Face Liveness Capturing SDK result as faceLivenessSessionId in your PhilSys Check API request. You can validate using any of these accepted PhilSys input types:
- PCN
- Personal information
- PhilSys card QR value
Troubleshooting
Invalid Client ID
Invalid Client ID
Confirm that
clientId is the company UUID supplied by IDmeta. Remove leading or trailing spaces. A value that is not a UUID is rejected locally with BAD_REQUEST. An unknown UUID is rejected with INVALID_COMPANY.Missing PhilSys plan access
Missing PhilSys plan access
Ask IDmeta to provision both
scan_qr and philsys_check_tier_1 for your company. The SDK returns PLAN_ACCESS_DENIED if either plan is missing.Camera permission denied
Camera permission denied
Ask the user to allow camera access for your site in the browser settings, then restart the capture. Confirm that the page uses HTTPS in production.
User cancellation
User cancellation
LIVENESS_CANCELLED is not a service outage. Let the user restart the capture when they are ready.Next steps
PhilSys Check Tier 1
Review the Tier 1 request and response contract.
PhilSys Check Tier 2
Review the PhilSys Check Tier 2 request and response contract.

