RequestPOST /v1/sessions
# Create a verification session for one of your users
curl https://verify.kycpass.info/v1/sessions \
-H "Authorization: Bearer $KYCPASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"externalUserId": "user_8841",
"lang": "en",
"returnUrl": "https://yourapp.com/verify/done"
}'
Response201 Created
{
"applicantId": "kp_Q2hx7Lw9xK3mVb1a",
"accessToken": "Zk3…",
"url": "https://verify.kycpass.info/s/Zk3…",
"expiresAt": "2026-12-01T10:41:07.000Z"
}
Your serverHosted flow (a link)
// On your server: send the user to the hosted flow (any browser, phone or desktop)
res.redirect(session.url);
// The link lasts an hour. For a new link to an unfinished check, pass the
// same applicantId again: the steps already done are kept.
await kycpass.post('/v1/sessions', {
externalUserId: 'user_8841',
applicantId: session.applicantId,
});
The flow asks for the document details and photos of the ID, then a short face scan with on-screen prompts. It runs in the browser, so your users don't install anything. When they finish they return to your returnUrl.
POST to your endpointWebhook to your server
POST https://yourapp.com/kyc/webhook
Content-Type: application/json
x-payload-digest: 3f9a… (HMAC-SHA256 hex of the raw body, your webhook secret)
{
"type": "applicantReviewed",
"correlationId": "5f0c2d8e-…",
"applicantId": "kp_Q2hx7Lw9xK3mVb1a",
"externalUserId": "user_8841",
"document": { "type": "ID_CARD", "country": "BR", "number": "X1234567" },
"liveness": "PASSED",
"checks": {
"liveness": { "passed": true, "issues": [], "attempts": 1 },
"faceMatch": { "similarity": 0.987, "threshold": 0.35, "passed": true, "flags": [] },
"antispoof": { "realProbability": 0.93, "threshold": 0.5, "passed": true, "flags": [] }
},
"reviewResult": { "reviewAnswer": "GREEN", "rejectLabels": [], "score": 99 }
}
applicantPending comes first, then applicantReviewed. The verdict is advice: use reviewAnswer as it is, or apply your own threshold to the scores. Fetch the photos when a reviewer opens the case, as short-lived signed links: GET /v1/applicants/{applicantId}/documents.