Skip to main content
The Identity API enables comprehensive identity verification through document analysis, biometric matching, and fraud detection.

Key Features

Document OCR

Extract data from 50+ document types across MENA and Africa

Face Matching

Compare selfies to document photos with 99.5% accuracy

Liveness Detection

Detect spoofing attempts including photos, screens, and masks

Fraud Detection

Identify document tampering and manipulation

Base URL

https://api.txcloud.io/v1/identity
For testing, use the sandbox environment:
https://sandbox.api.txcloud.io/v1/identity

Authentication

All requests require a Bearer token:
curl https://api.txcloud.io/v1/identity/verify \
  -H "Authorization: Bearer txc_live_your_api_key"

Quick Start

import TXCloud from '@txcloud/sdk';

const txcloud = new TXCloud('your_api_key');

const verification = await txcloud.identity.verify({
  document_front: 'base64_image...',
  selfie: 'base64_selfie...',
  country: 'MA',
  document_type: 'national_id',
  checks: ['ocr', 'face_match', 'liveness', 'fraud']
});

console.log(verification.status); // 'verified'

Endpoints

MethodEndpointDescription
POST/identity/verifyCreate full verification
POST/identity/extractExtract document data only
POST/identity/face-matchCompare two faces
POST/identity/livenessCheck liveness
GET/identity/verificationsList verifications
GET/identity/verifications/{id}Get verification details