Skip to main content

Overview

This guide walks you through implementing identity verification in your application using TXCloud’s Identity API.

Prerequisites

TXCloud API key with identity:write permission
Document 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

See full list β†’

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

Ensure high-quality images:
  • Resolution: Minimum 1280x720
  • Format: JPEG or PNG
  • Size: Under 10MB
  • Lighting: Even, no shadows
  • Focus: Sharp, no blur
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
Handle all possible outcomes:
  • Verification passed
  • Verification failed (with reasons)
  • Document not supported
  • Image quality too low
  • Network errors
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