Loading...
Loading...
Compare original and translation side by side
| Range | Interpretation |
|---|---|
| 90%+ | Strong likelihood of same person |
| 70-89% | Possible match, may need manual review |
| Below 70% | Likely different individuals |
| 范围 | 解读 |
|---|---|
| 90%+ | 极大概率为同一人 |
| 70-89% | 可能匹配,需人工审核 |
| 低于70% | 大概率为不同个体 |
x-api-keyx-api-keyPOST https://apx.didit.me/auth/v2/programmatic/register/{"email": "you@gmail.com", "password": "MyStr0ng!Pass"}POST https://apx.didit.me/auth/v2/programmatic/verify-email/{"email": "you@gmail.com", "code": "A3K9F2"}api_keyGET /v3/billing/balance/POST /v3/billing/top-up/{"amount_in_dollars": 50}POST https://apx.didit.me/auth/v2/programmatic/register/{"email": "you@gmail.com", "password": "MyStr0ng!Pass"}POST https://apx.didit.me/auth/v2/programmatic/verify-email/{"email": "you@gmail.com", "code": "A3K9F2"}api_keyGET /v3/billing/balance/POST /v3/billing/top-up/{"amount_in_dollars": 50}POST https://verification.didit.me/v3/face-search/POST https://verification.didit.me/v3/face-search/| Header | Value | Required |
|---|---|---|
| Your API key | Yes |
| | Yes |
| 请求头 | 值 | 是否必填 |
|---|---|---|
| 您的API密钥 | 是 |
| | 是 |
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| file | Yes | — | Face image to search (JPEG/PNG/WebP/TIFF, max 5MB) |
| boolean | No | | Try 0/90/180/270 rotations for non-upright faces |
| boolean | No | | Save in Business Console |
| string | No | — | Your identifier for session tracking |
| 参数 | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
| 文件 | 是 | — | 待搜索的人脸图片(JPEG/PNG/WebP/TIFF格式,最大5MB) |
| 布尔值 | 否 | | 尝试对非正脸图片进行0/90/180/270度旋转 |
| 布尔值 | 否 | | 在企业控制台中保存请求记录 |
| 字符串 | 否 | — | 用于会话追踪的自定义标识 |
import requests
response = requests.post(
"https://verification.didit.me/v3/face-search/",
headers={"x-api-key": "YOUR_API_KEY"},
files={"user_image": ("photo.jpg", open("photo.jpg", "rb"), "image/jpeg")},
)
print(response.json())const formData = new FormData();
formData.append("user_image", photoFile);
const response = await fetch("https://verification.didit.me/v3/face-search/", {
method: "POST",
headers: { "x-api-key": "YOUR_API_KEY" },
body: formData,
});import requests
response = requests.post(
"https://verification.didit.me/v3/face-search/",
headers={"x-api-key": "YOUR_API_KEY"},
files={"user_image": ("photo.jpg", open("photo.jpg", "rb"), "image/jpeg")},
)
print(response.json())const formData = new FormData();
formData.append("user_image", photoFile);
const response = await fetch("https://verification.didit.me/v3/face-search/", {
method: "POST",
headers: { "x-api-key": "YOUR_API_KEY" },
body: formData,
});{
"request_id": "a1b2c3d4-...",
"face_search": {
"status": "Approved",
"total_matches": 1,
"matches": [
{
"session_id": "uuid-...",
"session_number": 1234,
"similarity_percentage": 95.2,
"vendor_data": "user-456",
"verification_date": "2025-06-10T10:30:00Z",
"user_details": {
"name": "Elena Martinez",
"document_type": "Identity Card",
"document_number": "***456"
},
"match_image_url": "https://example.com/match.jpg",
"status": "Approved",
"is_blocklisted": false
}
],
"user_image": {
"entities": [
{"age": "27.6", "bbox": [40, 40, 120, 120], "confidence": 0.95, "gender": "female"}
],
"best_angle": 0
},
"warnings": []
}
}{
"request_id": "a1b2c3d4-...",
"face_search": {
"status": "Approved",
"total_matches": 1,
"matches": [
{
"session_id": "uuid-...",
"session_number": 1234,
"similarity_percentage": 95.2,
"vendor_data": "user-456",
"verification_date": "2025-06-10T10:30:00Z",
"user_details": {
"name": "Elena Martinez",
"document_type": "Identity Card",
"document_number": "***456"
},
"match_image_url": "https://example.com/match.jpg",
"status": "Approved",
"is_blocklisted": false
}
],
"user_image": {
"entities": [
{"age": "27.6", "bbox": [40, 40, 120, 120], "confidence": 0.95, "gender": "female"}
],
"best_angle": 0
},
"warnings": []
}
}| Status | Meaning | Action |
|---|---|---|
| No concerning matches found | Proceed — new unique user |
| Matches above similarity threshold | Review |
| Blocklist match or policy violation | Check |
| 状态 | 含义 | 操作 |
|---|---|---|
| 未发现可疑匹配 | 继续流程 — 新用户为唯一账户 |
| 存在超过相似度阈值的匹配 | 查看 |
| 命中黑名单或违反规则 | 检查 |
| Code | Meaning | Action |
|---|---|---|
| Invalid request | Check file format, size, parameters |
| Invalid API key | Verify |
| Insufficient credits | Top up at business.didit.me |
| 状态码 | 含义 | 操作 |
|---|---|---|
| 请求无效 | 检查文件格式、大小和参数 |
| API密钥无效 | 验证 |
| 余额不足 | 在business.didit.me进行充值 |
| Field | Type | Description |
|---|---|---|
| string | UUID of the matching session |
| integer | Session number |
| float | 0-100 similarity score |
| string | Your reference from the matching session |
| string | ISO 8601 timestamp |
| string | Name from the matching session |
| string | Document type used |
| string | Partially masked document number |
| string | Temporary URL (expires 60 min) |
| string | Status of the matching session |
| boolean | Whether the match is from the blocklist |
| 字段 | 类型 | 说明 |
|---|---|---|
| 字符串 | 匹配会话的UUID |
| 整数 | 会话编号 |
| 浮点数 | 0-100的相似度分数 |
| 字符串 | 匹配会话中的自定义标识 |
| 字符串 | ISO 8601时间戳 |
| 字符串 | 匹配会话中的用户姓名 |
| 字符串 | 所用证件类型 |
| 字符串 | 部分掩码的证件号码 |
| 字符串 | 临时URL(60分钟后过期) |
| 字符串 | 匹配会话的状态 |
| 布尔值 | 该匹配是否来自黑名单 |
| Field | Type | Description |
|---|---|---|
| string | Estimated age |
| array | Face bounding box |
| float | Detection confidence (0-1) |
| string | |
| integer | Rotation applied (0, 90, 180, 270) |
| 字段 | 类型 | 说明 |
|---|---|---|
| 字符串 | 预估年龄 |
| 数组 | 人脸边界框 |
| 浮点数 | 检测置信度(0-1) |
| 字符串 | |
| 整数 | 应用的旋转角度(0、90、180、270) |
| Tag | Description |
|---|---|
| No face found in image |
| Face matches a blocklisted entry |
| 标签 | 说明 |
|---|---|
| 图片中未检测到人脸 |
| 人脸命中黑名单条目 |
| Tag | Description |
|---|---|
| Multiple faces detected — unclear which to use |
Similarity threshold and allow multiple faces settings are configurable in Console.
errorwarninginformation| 标签 | 说明 |
|---|---|
| 检测到多张人脸 — 无法确定使用哪一张 |
相似度阈值和允许多张人脸设置可在控制台中配置。
errorwarninginformation1. During new user registration
2. POST /v3/face-search/ → {"user_image": selfie}
3. If total_matches == 0 → new unique user
If matches found → check similarity_percentage:
90%+ → likely duplicate, investigate matches[].vendor_data
70-89% → possible match, flag for manual review1. 在新用户注册时
2. 调用POST /v3/face-search/ → {"user_image": 自拍照}
3. 若total_matches == 0 → 新用户为唯一账户
若存在匹配结果 → 检查similarity_percentage:
90%+ → 大概率为重复账户,排查matches[].vendor_data
70-89% → 可能匹配,标记为人工审核1. POST /v3/passive-liveness/ → verify user is real
2. POST /v3/face-search/ → check for existing accounts
3. POST /v3/id-verification/ → verify identity document
4. POST /v3/face-match/ → compare selfie to document photo
5. All Approved → verified, unique, real userSecurity: Match image URLs expire after 60 minutes. Store onlyandsession_id— minimize biometric data on your servers.similarity_percentage
1. 调用POST /v3/passive-liveness/ → 验证用户为真人
2. 调用POST /v3/face-search/ → 检查是否存在已有账户
3. 调用POST /v3/id-verification/ → 验证身份证件
4. 调用POST /v3/face-match/ → 比对自拍照与证件照片
5. 全部通过 → 已验证、唯一且真实的用户安全提示: 匹配图片URL会在60分钟后过期。仅存储和session_id— 尽量减少在您服务器上存储的生物特征数据。similarity_percentage
undefinedundefinedundefinedundefined