Skip to main content

Overview

Integrating PhilSys face liveness requires a 2-step process.
  1. Capture face liveness with the PhilSys Liveness SDK V3
    Start the Philippine government eVerify liveness interface from your website. You provide only clientId and version.
  2. Call the IDmeta PhilSys Check API using the liveness result
    Pass the returned session_id as faceLivenessSessionId in your PhilSys Check request.

Step 1: Capture PhilSys face liveness

Add the SDK to your website

Load the SDK before you call IDmetaPhilsysLivenessV3():

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 check
Input validation error
Capture session closed before completion
Unreachable government site

Step 2: Call PhilSys Check API

After the liveness flow is completed, pass the session_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:
  1. PCN
  2. Personal information
  3. PhilSys card QR value
Refer to the individual API pages for request and response details:

Troubleshooting

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.
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.
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.
Treat GOV_SERVER_ERROR as a temporary government-service outage. Show a retry message and try again later.
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.