APIsWebhooksID Verification

ID Verification Completed Webhook Payload

This webhook is triggered when ID verification is completed. You can track ID verification details through this webhook payload.

Webhook Event

Event Type: ID_VERIFICATION_COMPLETED

Payload

{
  "verificationStatus": "ONBOARDING_FINISHED",
  "externalCandidateId": "EXT123456",
  "idVerificationReportURL": "https://app.ezyhire.com/reports/idv/61571280-6597-44c2-84a6-cb813d1c30d2",
  "candidateId": "candidate-789012",
  "testId": "test-345678"
}

Payload Fields

FieldTypeDescription
verificationStatusenumVerificationStatus of the ID verification process
externalCandidateIdstringExternal reference ID for the candidate
idVerificationReportURLstringURL to access the ID verification report
candidateIdstringInternal candidate identifier
testIdstringInternal test identifier

Verification Status Values

StatusDescription
ONBOARDING_FINISHEDID verification onboarding completed
ID_VALIDATION_FINISHEDID validation process completed
FACE_VALIDATION_FINISHEDFace validation process completed
GOVERNMENT_VALIDATION_FINISHEDGovernment validation completed
POST_PROCESSING_FINISHEDPost-processing completed
MANUAL_REVIEW_APPROVEDManual review approved
MANUAL_REVIEW_REJECTEDManual review rejected

Example Webhook Handler

app.post('/webhook/id-verification', (req, res) => {
  const { verificationStatus, externalCandidateId, idVerificationReportURL, candidateId, testId } = req.body;
  
  console.log('ID Verification completed:', {
    status: verificationStatus,
    candidate: externalCandidateId,
    reportUrl: idVerificationReportURL
  });
  
  // Process the webhook data
  // Update your database, send notifications, etc.
  
  res.status(200).json({ received: true });
});