Skip to main content

Preview HumanID

Endpoint

POST https://api.verifik.co/v2/zelf-proof/preview

Examines any HumanID to view its metadata and configuration without performing actual biometric verification. This is useful for inspecting public information and settings attached to the HumanID without decrypting its content.

Headers

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Params

NameTypeRequiredDescription
zelfProofstringYesThe encrypted face proof token to examine
verifierKeystringNoVerifier key for additional validation

Request

const fetch = require("node-fetch");

async function run() {
const res = await fetch("https://api.verifik.co/v2/zelf-proof/preview", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
body: JSON.stringify({
os: "DESKTOP",
zelfProof: "AudwN6Jmxms3tEOYQg5fyZCEYLwiDuFFheQfYTmKQCUAJ99y4MWI/7A6ouXW1VIR8fAVCL4rgbNKYR/cjZpS085JPq4vedbB08ZIansX2cW+XPyJjFKRnY5qxRgwUfyzLMrCpu83qdORwfdX3YOXo4Poff0eYNtqho3h+bJB1uaMvK9QHN8uYWR9rxafMqFtNWJWSuC/V3yKeG3eRYSaoNcW6mHycjQMxvVcpDn1fMWK+93/8h12/iyBBbwH3JSlki4LlgaOeP/S8o1CRSrFpmysSpJDoh+pesDIpuTxlK7WMeNvv33n+nj+1oUZ51ijyV/m9CMvY+VjvuMzAZJogHh+dNEi57YWAVZTBBiwu/M02mPXCQcSYNyNCD1EPyFcEEGqVXRZb5fghdi0qpxN57YZ3dspMlmXnlv0Bq6nbnO4/KmuWtZqx/1riFK3ejb+EJu23p281IeXxAMet1+rHgPgQZYs4j7CSIHeGnY9YL1A53Ozb2/bYddQoAdwRx6M6BdtLbUG4XbUB3uZT3azQvf86Um0SnWrsJ1GejiIrlAXliOKqLc/sHY8XNWaDen0WzPB1R5dFi7Sn+egQSf2TA1oN0AhCxlBcJ85yHSnIYMOfLk+NnLgt3ImOcku9dZIWkhpvAcvAPqNx5437kBmo9bWchzZ5idfNhtCpgCkRyz8/yImGYnQH5YFBrsap0/ZeW5ISVOCooxEXFonWrUTjO5hqm/lfWiw16Lq8uvOi8CszvwuSQUN4O7gCdzUzgLoeDBv8XHXRkrTuKkfSPB2slZ3J1xHysMLW/o2Hv6v6e99rDwaL7UaMa/zZ5o1zr87/sz9SBWpQ/t8vGHjk68KmvMnnk3vQOOcrogrDN5fwKPqSwEQp7WnvKhm8ShBYt+T"
}),
});
console.log(await res.json());
}

run();

Response

{
"data": {
"passwordLayer": "WithPassword",
"publicData": {
"a": "1",
"vida": "true",
"b": "2"
},
"requireLiveness": true
}
}

Notes

  • The passwordLayer field indicates whether the HumanID is password-protected (WithPassword or WithoutPassword)
  • publicData contains the public data that was stored with the HumanID (this is visible to anyone with the proof)
  • requireLiveness indicates whether liveness detection was required when the HumanID was created
  • This endpoint does not perform biometric verification - it only examines the HumanID public metadata
  • No credits are charged for preview operations
  • The os parameter is required but doesn't affect the preview functionality
  • This is useful for debugging, inspection, and understanding HumanID configuration before attempting verification
  • Private metadata is securely stored within the HumanID since it is encrypted by the owner.