Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Use eVerify

eVerify authenticates partner clients and verifies personal information or National ID QR payloads with face-liveness session data.
Identity profiles, QR payloads, and liveness identifiers are sensitive personal data. Process them only on trusted infrastructure with appropriate consent.

Authenticate

Call eVerify.authenticate with the client ID and client secret, then pass the returned bearer token through auth.

Initialize the client

Create a dedicated client for the documented eVerify hackathon host:
import { createClient } from "egov.js"; const client = createClient({ baseUrl: "https://hackathon-everify-api.e.gov.ph", });

Methods

The examples below use this eVerify client. See the quickstart for the general client pattern.
The API Reference tab remains the source of truth for complete identity parameters, schemas, responses, and cURL examples.

eVerify.authenticate

POST /api/auth exchanges the client ID and client secret for an eVerify bearer token.
import { eVerify } from "egov.js"; const authentication = await eVerify.authenticate({ client, body: { client_id: process.env.EVERIFY_CLIENT_ID!, client_secret: process.env.EVERIFY_CLIENT_SECRET!, }, throwOnError: true, });

eVerify.verifyPersonalInformation

POST /api/query compares supplied identity fields and a face-liveness session against the provider's identity record.
import { eVerify } from "egov.js"; const identity = await eVerify.verifyPersonalInformation({ client, auth: authentication.data.access_token, body: { birth_date: "1990-01-15", face_liveness_session_id: livenessSessionId, first_name: "Juan", last_name: "Dela Cruz", }, throwOnError: true, });

eVerify.checkQr

POST /api/query/qr/check decodes a National ID QR value and returns its profile data and QR type.
import { eVerify } from "egov.js"; const qrProfile = await eVerify.checkQr({ client, auth: authentication.data.access_token, body: { value: nationalIdQrValue }, throwOnError: true, });

eVerify.verifyQr

POST /api/query/qr verifies a National ID QR value together with a face-liveness session identifier.
import { eVerify } from "egov.js"; const qrVerification = await eVerify.verifyQr({ client, auth: authentication.data.access_token, body: { face_liveness_session_id: livenessSessionId, value: nationalIdQrValue, }, throwOnError: true, });