Skip to main content

Overview

The identity event is triggered when an identity verification (KYC) process is completed or rejected. This event includes verified identity information extracted from identity documents.

Example Payload

{
  "eventType": "identity",
  "issuerId": "680a65a4da4a16c0ea64face",
  "requestId": "68c5a1b2c3d4e5f678901234",
  "subjectId": "68c5a1b2c3d4e5f678901235",
  "subjectInternalId": "user_kyc_001",
  "rejected": false,
  "decisionDate": "2024-01-15T20:15:00.000Z",
  "convergedIntoSubjectId": null,
  "metadata": {
    "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",
    "veriffId": "veriff_abc123",
    "veriffRiskScore": 0.05,
    "countryAlpha3": "USA"
  }
}

Base Fields

All identity events include these common fields:
FieldTypeRequiredDescription
eventTypestringYesAlways "identity"
issuerIdstringYesOrganization/issuer identifier
requestIdstringYesRequest identifier
subjectIdstringYesSubject (user) identifier
subjectInternalIdstringNoInternal subject identifier
rejectedbooleanYesWhether the identity verification was rejected
decisionDateDateYesTimestamp when the identity decision was made

Identity-Specific Fields

FieldTypeRequiredDescription
convergedIntoSubjectIdstringNoSubject ID if identities were merged (see Identity Merging)
metadataobjectNoVerified identity information (IdentityMetadata)

Identity Metadata

When metadata is present, it 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.)
veriffIdstringYesVeriff verification ID
veriffRiskScorenumberYesVeriff risk score (0-1, lower is better)
countryAlpha3stringYesISO 3166-1 alpha-3 country code

Identity Merging

When convergedIntoSubjectId is present, it indicates that this identity was merged with another existing identity. The identity data from this event has been consolidated into the subject identified by convergedIntoSubjectId. Example:
{
  "eventType": "identity",
  "subjectId": "68c5a1b2c3d4e5f678901235",
  "convergedIntoSubjectId": "68c5a1b2c3d4e5f678901999"
  // ... other fields
}
In this case, the identity from subjectId was merged into the identity with convergedIntoSubjectId.