Skip to main content

Overview

The identity event is triggered when an identity verification (KYC) process is completed. This event includes verified identity information extracted from government-issued identity documents, along with a fraud and risk decision.

Example Payload

{
  "eventType": "identity",
  "requestId": "68c5a1b2c3d4e5f678901234",
  "issuerDid": "did:via:org-abc123",
  "user": {
    "contact": "+1234567890",
    "did": "did:via:user-xyz789",
    "internalId": "user_kyc_001"
  },
  "decisionDate": "2024-01-15T20:15:00.000Z",
  "identity": {
    "fullName": "John Michael Doe",
    "gender": "M",
    "birth": "1990-05-15T00:00:00.000Z",
    "docId": "A123456789",
    "fullDocId": "A12345678901234",
    "expiresAt": "2030-05-15T00:00:00.000Z",
    "issueDate": "2020-05-15T00:00:00.000Z",
    "placeOfBirth": "New York",
    "documentType": "PASSPORT",
    "countryAlpha3": "USA"
  },
  "decision": {
    "success": true,
    "isFraud": false,
    "riskScore": 0.05,
    "message": "Identity verified successfully"
  }
}

Base Fields

All identity events include these common fields:
FieldTypeRequiredDescription
eventTypestringYesAlways "identity"
requestIdstringYesRequest identifier
internalIdstringNoYour internal identifier for the request
issuerDidstringYesDID of the organization/issuer
userobjectYesObject containing user identity fields
decisionDateDateYesTimestamp when the identity was verified

User Object

FieldTypeRequiredDescription
contactstringYesUser’s contact information (phone or email)
didstringYesDID of the user/subject
internalIdstringNoYour internal identifier for the user

Identity Object

The identity field contains verified identity information:
FieldTypeRequiredDescription
fullNamestringYesFull name as it appears on the document
genderstringYesGender identifier (M/F/O)
birthDateYesDate of birth
docIdstringYesDocument identification number
fullDocIdstringYesFull document ID (extended version)
expiresAtDateYesDocument expiration date
issueDateDateYesDocument issue date
placeOfBirthstringYesPlace of birth
documentTypestringYesType of document (PASSPORT, DRIVER_LICENSE, etc.)
countryAlpha3stringYesISO 3166-1 alpha-3 country code

Decision Object

The decision field contains the outcome of the identity verification:
FieldTypeRequiredDescription
successbooleanYesWhether the identity verification passed
isFraudbooleanYesWhether the submission was flagged as fraudulent
riskScorenumberYesRisk score (0–1, lower is better)
messagestringNoHuman-readable description of the decision

Document Types

Common values for documentType:
ValueDescription
PASSPORTNational passport
DRIVER_LICENSEDriver’s license
ID_CARDNational identity card
RESIDENCE_PERMITResidence permit

Risk Score

The decision.riskScore is a value between 0 and 1:
RangeRisk LevelDescription
0.00 - 0.10Very LowHigh confidence in document and identity
0.10 - 0.30LowMinor concerns, generally acceptable
0.30 - 0.50MediumSome concerns, manual review recommended
0.50 - 0.70HighSignificant concerns, careful review needed
0.70 - 1.00Very HighMajor concerns, likely fraudulent