A simple REST API, a drop-in Web SDK, and webhooks that just work. Everything you need to add identity verification to your app.
One API call from your server to start verifying. The session guides your user through document capture, selfie, and liveness check.
// Create a verification session. Run this on your server:
// it uses your secret API key.
const response = await fetch("https://api.sebeverify.com/projects/YOUR_PROJECT_ID/verification/session/start", {
method: "POST",
headers: {
"X-API-Key": process.env.SEBEVERIFY_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
document_type: "national-id", // or "passport"
}),
});
const session = await response.json();
// → session.session_id (save it: the webhook uses the same ID)
// → session.client_token (short-lived, safe to give to the browser)
// → session.expires_atRegister a webhook URL and we'll POST verification events as they happen. No polling, no delays. Every delivery is logged and automatically retried on failure.
verification.completedverification.failedverification.expiredsession.created// Receive verification results via webhook
app.post("/webhooks/sebeverify", (req, res) => {
const event = req.body;
if (event.type === "verification.completed") {
const { session_id, status, document } = event.data;
if (status === "verified") {
// ✅ Update your user record
await db.users.update({
where: { verificationSessionId: session_id },
data: {
kycStatus: "verified",
fullName: document.full_name,
documentType: document.type,
},
});
}
}
res.status(200).json({ received: true });
});<!-- Add the SDK to your page -->
<script src="https://unpkg.com/sebeverify-sdk@0.2.0/dist/index.global.js"></script>
<script>
// No API key here: it stays on your server.
const verifier = SebeVerify.default({
projectId: "YOUR_PROJECT_ID",
redirectUrl: "https://yourdomain.com/verify/complete",
});
verifier.on("error", (err) => console.error(err.message));
document.getElementById("verify-btn").addEventListener("click", async () => {
// Your server route calls createVerificationSession() with your API key
const res = await fetch("/api/verification-session", { method: "POST" });
const session = await res.json();
// Launch the verification flow for that session
await verifier.start(session);
});
</script>Start a session on your server, then call verifier.start(session). The SDK handles document capture, selfie, and liveness in a responsive modal. Your API key never reaches the browser.
Your server starts the session. The SDK handles the rest of the capture flow — document scan, selfie, and liveness.
Works on mobile and desktop browsers out of the box with full keyboard and screen reader support.
Match your app's colors, logo, and copy. Users never leave your experience.
Get notified on start, error, and cancellation so you can update your UI immediately. The final result comes to your webhook.
RESTful endpoints with predictable URLs, JSON request and response bodies, and standard HTTP status codes.
/projects/:id/verification/session/startCreate a new verification session for a document.
/projects/:id/verification/imageSubmit document and selfie images for processing.
/projects/:id/verifications/:req_id/statusPoll the processing status of a verification request.
/projects/:id/verifications/:req_id/resultRetrieve final identity data, match confidence, and liveness result.
Sign up and create a project in the admin dashboard. You'll get API keys instantly.
Add our Web SDK for a hosted flow, or call the REST API directly for full control.
Register a webhook URL in your project settings to receive verification results automatically.
Switch from sandbox to live mode. No code changes — just swap your API key.
Create a free developer account and get your API keys in under a minute. Full sandbox access with test credentials included.