Skip to main content
Event Name: kyc_session_verified
This event indicates that the user has passed all required verification checks and their identity has been confirmed. The session state is VERIFIED.

Event Payload

The webhook payload contains the following structure:
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "event": "kyc_session_verified",
  "timestamp": "2025-06-19T17:14:13.123Z",
  "data": {
    "sessionId": "550e8400-e29b-41d4-a716-446655440002",
    "userId": "550e8400-e29b-41d4-a716-446655440001",
    "checks": [
      {
        "type": "document-verification",
        "state": "Validated",
        "data": {},
        "reasons": []
      },
      {
        "type": "face-matching",
        "state": "Validated",
        "data": {},
        "reasons": []
      }
    ]
  }
}

Field Description

id
string
required
Unique event identifier (UUID)
event
string
required
Event type - always kyc_session_verified for this webhook
timestamp
string
required
Event timestamp in ISO 8601 format
data
object
required
Contains the event data
data.sessionId
string
required
Unique KYC session ID (UUID)
data.userId
string
required
Unique user ID (UUID)
data.checks
array
required
List of verification checks performed in this session
data.checks[].type
string
required
Type of check (e.g., “document-verification”, “face-matching”)
data.checks[].state
string
required
Check state: “Validated” or “Refused”
data.checks[].data
object
required
Additional check data (format varies by check type)
data.checks[].reasons
array
required
Reasons if check was refused (empty for validated checks)

Expected Responses

Success Response

HTTP 200 OKThe webhook was processed successfully.

Client Error

HTTP 4xx StatusClient-side error. Will not be retried.

Server Error

HTTP 5xx StatusServer-side error. Will be retried with exponential backoff.

Implementation Example

app.post('/webhooks/ralio', (req, res) => {
  const { event, data } = req.body;
  
  if (event === 'kyc_session_verified') {
    const { sessionId, userId, checks } = data;
    
    // Process verified session
    console.log(`KYC session ${sessionId} verified for user ${userId}`);
    console.log(`Checks passed: ${checks.length}`);
    
    // Update your internal systems
    await updateKycSessionStatus(sessionId, 'VERIFIED');
    await notifyUserVerificationSuccess(userId);
    
    // Respond with success
    res.status(200).json({ received: true });
  }
});