Overview
This guide walks you through implementing identity verification in your application using TXCloudβs Identity API.Prerequisites
TXCloud API key with
identity:write permissionDocument images (ID card, passport, or driverβs license)
Selfie image (for face matching)
Quick Implementation
1
Capture Documents
Collect document images from the user (front and back if applicable).
2
Capture Selfie
Take a selfie photo for face matching and liveness detection.
3
Submit for Verification
Send images to TXCloud API.
4
Handle Results
Process the verification response.
Implementation
Basic Verification
Handling the Response
Supported Documents
Morocco π²π¦
Other Countries
View All Supported Countries
View All Supported Countries
Verification Checks
OCR Extraction
Extracts text from the document:Face Match
Compares selfie to document photo:Liveness Detection
Verifies the selfie is from a live person:Fraud Detection
Checks for document tampering:Mobile Integration
Session-Based Flow
For mobile apps, use the session-based flow:React Native Example
Best Practices
Image Quality
Image Quality
Ensure high-quality images:
- Resolution: Minimum 1280x720
- Format: JPEG or PNG
- Size: Under 10MB
- Lighting: Even, no shadows
- Focus: Sharp, no blur
User Experience
User Experience
Guide users through the process:
- Show preview before submission
- Provide real-time feedback on image quality
- Offer retry for failed captures
- Display clear error messages
Error Handling
Error Handling
Handle all possible outcomes:
- Verification passed
- Verification failed (with reasons)
- Document not supported
- Image quality too low
- Network errors
Data Storage
Data Storage
Store verification results:
- Save verification ID for reference
- Store extracted data securely
- Implement data retention policies
- Enable GDPR deletion requests
Next Steps
Add Fraud Detection
Enhance verification with fraud signals
API Reference
Explore all Identity endpoints