Real-time human verification API
Ship live human verification in an afternoon.
Replace brittle SMS codes and manual callbacks with live, face-to-face verification—from sub-second liveness checks to AI-led conversations. Verify identity, liveness, and intent in one API call.
npm i @facesignai/apiQuickstart
Five steps to your first session
Connect FaceSign’s MCP server to Claude Code, Cursor, or Zed to scaffold, preview, and test a working verification flow in minutes.
- Step 01
Get a key
Request an sk_prod_ key from your account, or sk_test_ for the sandbox.
- Step 02
Add the MCP
Drop the FaceSign server into your client config. HTTP, one header, no install.
- Step 03
Describe it
Describe your use case in plain English. The MCP generates the verification flow and UI.
- Step 04
Test locally
Use launch_session_ui for a browser preview, or export_app for a full Next.js project.
- Step 05
Deploy
Set FACESIGN_API_KEY and deploy to any Node host or existing app.
Example
One API call. Complete verification flow.
Define greeting, face recognition, liveness, and closing steps in a single createSession call.
import Client, { FSNodeType } from '@facesignai/api'const client = new Client({ auth: process.env.FACESIGN_API_KEY })const { session, clientSecret } = await client.session.create({ clientReferenceId: 'user-123', avatarId: '65f9e3c9-d48b-4118-b73a-4ae2e3cbb8f0', langs: ['en', 'it', 'de', 'fr', 'es'], defaultLang: 'en', videoAIAnalysisEnabled: true, flow: [ { id: 'start', type: FSNodeType.START, outcome: 'greeting' }, { id: 'greeting', type: FSNodeType.CONVERSATION, prompt: "Warmly greet the user. Ask them to confirm they're ready to verify.", outcomes: [{ id: 'ready', condition: 'user is ready', targetNodeId: 'recognition' }] }, { id: 'recognition', type: FSNodeType.RECOGNITION, outcomes: { recognized: 'liveness_known', newUser: 'liveness_new', noFace: 'liveness_new', } }, { id: 'liveness_known', type: FSNodeType.LIVENESS_DETECTION, outcomes: { livenessDetected: 'closing', deepfakeDetected: 'closing', noFace: 'closing', inconclusive: 'closing', } }, { id: 'liveness_new', type: FSNodeType.LIVENESS_DETECTION, outcomes: { livenessDetected: 'closing', deepfakeDetected: 'closing', noFace: 'closing', inconclusive: 'closing', } }, { id: 'closing', type: FSNodeType.CONVERSATION, prompt: "Say: You're all set. Thanks for verifying.", doesNotRequireReply: true, outcomes: [{ id: 'done', condition: '', targetNodeId: 'end' }] }, { id: 'end', type: FSNodeType.END }, ],})// Embed clientSecret.url in an iframe or redirect the user to it.console.log(clientSecret.url)Every outcome routes forward. Forensic video analysis runs asynchronously after the session ends.
AI-Guided Flow Building
Describe your use case in plain English. The MCP configures the flow, handles edge cases, and outputs production-ready code.
10 Verification Nodes
Liveness, facial recognition, document scanning, coercion detection, KBA, and OTP — all composable in any verification flow.
Deploy Anywhere
Export to Next.js or static HTML. One environment variable. Zero vendor lock-in.
Demos
Seven live demos
Every reference demo is a working FaceSign integration you can try now and adapt. Each is built from the same MCP primitives.
Step-up auth
Before a sensitive action, promote the user through a short verification. Recognition + liveness + conversational check.
- recognition
- liveness
- OTP
Coercion detection
Detects signs of duress, secondary voices, scripted responses, and environmental anomalies for high risk transactions.
- intent
- video AI
- fraud
Account recovery
Self-serve recovery flow with knowledge-based questions, liveness, and recognition. Replaces call center KBA.
- KBA
- recognition
- self-serve
Workforce verification
Verify employees before accessing sensitive files, systems, or admin panels. Per-session identity confirmation.
- internal
- audit
- SSO-adjacent
Interview verification
Confirms the person in interview two is the same from interview one. Mitigates identity fraud in remote hiring.
- recognition
- continuity
- hiring
Gaming and gambling
Responsible gaming check-ins. Verify the player is the account holder and not under duress or impaired.
- responsible gaming
- compliance
- intent
KYC onboarding
Full KYC with document scan, face-to-document comparison, liveness, and recognition enrollment.
- document scan
- face compare
- enrollment
Languages
30 languages, zero extra work
Browser language detection drives both avatar speech and the wrapper UI automatically. You write prompts once. FaceSign handles the rest.
- Englishen
- Italianit
- Germande
- Frenchfr
- Spanishes
- Portuguesept
- Russianru
- Japaneseja
- Indonesianid
- Norwegianno
- Chinese Simplifiedzh
- Chinese Traditionalzh-TW
- Chinese Cantonesezh-HK
- +17 moreSee the guide →
How it works
The session matches the end user's navigator.language against your langs whitelist. If it matches, that language is used for both avatar speech and the wrapper UI. Otherwise it falls back to defaultLang (default: en). BCP-47 normalization covers aliases like zh-Hans and base-language fallbacks like fr-CA. No extra localization code required.
Test any language
Append ?lang=XX to any demo URL to override browser detection. Pick one:
Guides
The full playbook
Flow rules, edge cases, deployment gotchas, and complete example flows. Written for engineers shipping to production.
SDK and REST
Build directly with the SDK or REST API.
Use the MCP for rapid scaffolding, or integrate directly with our TypeScript SDK and REST API for full control.
TypeScript / Node SDK
Official package with full types. Works in Next.js, Express, serverless functions, and anywhere Node runs.
npm i @facesignai/apiREST API
Use the REST API from Python, Go, Ruby, or any backend. Manage sessions and results with create, get, and webhooks.
API referenceFAQ
Frequently asked questions
How do I get an API key?
Request an sk_prod_ production key or sk_test_ sandbox key from your account dashboard. If you don't have an account yet, request access at facesign.ai/developer-access. Keys carry no setup fee.
Is there a sandbox or free tier?
Yes. Every account gets a sandbox environment with an sk_test_ key that includes free sessions for development. Sandbox sessions are functionally identical to production.
How does pricing work?
Usage-based, priced per verification session. No minimums, no implementation fees, and volume discounts kick in as you scale.
Which browsers and devices are supported?
Any modern Chromium, Safari 15+, or Firefox on desktop and mobile. Standard WebRTC, camera and mic permissions. No native install.
Can I embed FaceSign in my own app?
Yes. Drop the session URL into an iframe or WebView, or use the JavaScript SDK for a programmatic embed. About 5 MB, one outbound port.
How do I receive session results?
Webhooks notify your backend when a session's state changes; your server then fetches the full payload via GET /sessions/:id with your API key. Polling the same endpoint works as a fallback.
Can I customize the avatar, voice, or language?
Yes. Choose from our avatar library or work with us on a branded custom avatar. 30 languages supported.
What data does FaceSign store?
FaceSign is a data processor; you are the data controller. Biometric data, including session video, is kept only for defined purposes and deleted from active systems no later than 24 months after the individual's last interaction. Deleted Cloud Storage objects have a protected seven-day recovery window before permanent removal; backup copies expire under their applicable retention schedule.
Is FaceSign SOC 2 or GDPR compliant?
Architected for GDPR and CCPA from day one. SOC 2 Type II is in progress. Ask [email protected] for details.
Where is data processed?
US processing is available today. EU regional processing is planned. Contact [email protected] to confirm availability for your deployment.
How do webhooks work?
Register an HTTPS endpoint with a signing secret in your dashboard. FaceSign POSTs a compact event (id, type, sessionId, createdAt) on status, media, and analysis updates — verify the HMAC-SHA256 X-FaceSign-Signature header, then fetch the full state via GET /sessions/:id. Transient delivery failures are retried automatically.
What compliance frameworks does FaceSign cover?
GDPR and CCPA from day one. SOC 2 Type II is in progress. For questions about compliance posture, specific certifications, or security documentation, email [email protected].
Get started
Ready to build?
Get an API key, connect the SDK or MCP, and ship your first verification flow today.