免费
适用于构建、测试和您的首批用户。
- 每月500次完整KYC验证
- 身份、活体、人脸匹配、设备和IP验证
- 200+欺诈信号、黑名单、重复项检测
- Didit网络内可复用KYC
- 工作流构建器、案件管理、SDK
- AI 支持 控制台内 AI 助手、文档和社区支持。
全球2,000多家组织信赖。
可用性和费率来自生产方法目录,而非本页面。当一个国家/地区可以在您的工作流程中启用时,它就会在这里亮起;费率是每次成功尝试的美元价格。
今日上线
从阿根廷到南非,目录中的每个国家/地区都已上线,并附有其国家/地区费率。阿根廷、尼日利亚、巴拿马和南非会返回注册照片,因此这四个国家/地区在同一次查询中还会进行自拍、被动活体检测和人脸匹配。
为支持的国家/地区启用查询。选择部分匹配、无匹配以及注册机构无响应时的处理方式。设置用户尝试次数。无需代码。
直接来自方法目录
已上线注册表
返回照片
所需证件照片
列出的每个国家/地区均已上线。如果此处出现虚线条目,则表示该条目已在目录中,但尚未启用。
Department of Home Affairs
格式检查在任何数据离开设备之前运行。输入错误的号码永远不会到达注册表,也不会产生费用。
注册表返回照片时
每个结果一个开关
在会话中
这些保障标签仅供您的审核人员查看。最终用户不会看到它们,也不会看到来源名称或价格。
南非,每次应答尝试的美元费用
所有费率均为公开零售价(美元),并包含自拍、活体检测和人脸匹配(如果注册机构返回照片)。文档捕获仅在用户回退时计费。
$ curl -X POST https://verification.didit.me/v3/session/ \
-H "x-api-key: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"workflow_id": "wf_id_lookup",
"vendor_data": "user_42"
}'{ "url": "https://verify.didit.me/..." }const crypto = require("crypto");
// X-Signature-V2 signs canonical JSON: keys sorted as strings, compact,
// Unicode preserved. Emit the sorted entries directly - rebuilding an object
// would reorder integer-like keys ("10", "2"). Never hash req.rawBody.
const canonical = (v) =>
Array.isArray(v) ? "[" + v.map(canonical).join(",") + "]"
: v && typeof v === "object"
? "{" + Object.keys(v).sort()
.map((k) => JSON.stringify(k) + ":" + canonical(v[k])).join(",") + "}"
: JSON.stringify(v);
app.post("/webhooks/didit", express.json(), (req, res) => {
// Freshness: the signed body timestamp (refreshed on retry) must be recent
// and X-Timestamp must agree - the header alone is unsigned and replayable.
const ts = Number(req.body?.timestamp);
if (!ts || String(ts) !== req.headers["x-timestamp"] ||
Math.abs(Date.now() / 1000 - ts) > 300) return res.sendStatus(401);
const expected = crypto.createHmac("sha256", SECRET)
.update(canonical(req.body), "utf8").digest("hex");
const sig = String(req.headers["x-signature-v2"] ?? "");
const valid = sig.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
if (!valid) return res.sendStatus(401);
const { status, decision } = req.body;
// One entry per ID Verification node; pick yours by node_id when you run several.
const [idv] = decision?.id_verifications ?? [];
// idv.verification_method: "document" | "id_lookup" | "wallet"
res.sendStatus(200);
});{ "verification_method": "id_lookup", "assurance": "data_match" }# Didit non-document verification — integrate in 5 minutes
You are adding non-document identity verification to my_stack. The user types a
national ID number plus a few personal details, and Didit checks them against
the government database that issued the number. Every URL, header, and enum
value below is canonical — do not paraphrase or "improve" them.
## 1. Provision an account
- Sign up: https://business.didit.me (no credit card required).
- Grab the API key for your application from the console.
## 2. Read the methods catalog first
Availability is server-driven per country. Never hard-code a country list.
The catalog is not a public REST endpoint. Read it one of two ways:
- Business Console (signed in): your application -> ID Verification ->
Countries tab. https://docs.didit.me/console/id-verification-methods
- Didit MCP server tool didit_workflow_get_id_verification_methods_catalog,
authenticated with the same x-api-key; pass country (ISO 3166-1 alpha-3)
to narrow it to one country. https://docs.didit.me/integration/mcp/tools
- Public mirror of the coverage table (no auth, read-only):
https://docs.didit.me/core-technology/id-verification/verification-methods#coverage
The catalog tells you, per ISO 3166-1 alpha-3 country code:
- whether id_lookup is available
- the source label and the public USD rate per answered attempt (36 countries
are live at the time of this prompt, from Argentina to South Africa)
- the exact request fields to ask the user for, with their format rules
- the response fields that come back, and which of them are optional
## 3. Create a workflow with the ID Verification (OCR) feature
POST https://verification.didit.me/v3/workflows/
-H "x-api-key: <your-api-key>"
-H "Content-Type: application/json"
The ID Verification feature's enum value is OCR (UPPERCASE — strict enum;
there is no ID_VERIFICATION alias and the API rejects it). Non-document
lookup is its id_lookup method, configured per country under config.methods
on that same feature entry, in the same request. Keys are ISO 3166-1 alpha-3.
An omitted country, or an omitted methods key, means document only.
{
"workflow_label": "Non-document onboarding",
"features": [
{
"feature": "OCR",
"config": {
"methods": {
"ZAF": {
"document": { "enabled": true },
"id_lookup": {
"enabled": true,
"max_attempts": 1,
"skip_liveness_and_face_match": false,
"on_partial_match": "fallback_to_document",
"on_no_match": "fallback_to_document",
"on_provider_error": "fallback_to_document",
"response_fields": ["gender", "citizenship", "registry_portrait"]
}
}
}
}
}
]
}
Response: the workflow uuid — use it as workflow_id in step 4.
Rules that the API enforces:
- every fallback value is either fallback_to_document or decline
- max_attempts is an integer from 1 to 5, default 1
- skip_liveness_and_face_match is only accepted where the source returns a
portrait; elsewhere it is rejected
- response_fields lists the OPTIONAL fields you want stored. Required fields
are always stored and cannot be removed
- a country whose id_lookup the catalog does not mark available is rejected
- a country with no method enabled is rejected at publish time
## 4. Create a session
POST https://verification.didit.me/v3/session/
-H "x-api-key: <your-api-key>"
-H "Content-Type: application/json"
-d '{ "workflow_id": "<id from step 3>", "vendor_data": "<your user id>" }'
Response: 201 with url (the hosted verification link), session_token and
session_id. Redirect the user to url, or open it in the SDK. The field is
named url — there is no session_url and no verification_url.
Didit asks the user for the request fields in plain language, runs the
client-side format check, then queries the registry.
Where the registry returns a portrait (Argentina, Nigeria, Panama, South
Africa), Didit also takes a selfie, runs passive liveness on it, and
face-matches it to that portrait. All of it is inside the lookup price.
## 5. Webhooks
Register a destination (console -> API & Webhooks, or
POST https://verification.didit.me/v3/webhook/destinations/ with
webhook_version "v3" and subscribed_events ["status.updated"]) and store the
secret_shared_key it returns. Verify every delivery:
Header: X-Signature-V2 (NOT X-Signature, NOT X-Signature-Simple)
Algorithm: HMAC-SHA256, hex digest, over the CANONICAL JSON of the payload:
parse the body, sort keys recursively, serialise compact with
Unicode preserved and whole-valued floats as integers. Do NOT
hash the raw request bytes — that is the v1 X-Signature
algorithm and fails for V2 whenever whitespace or key order
differs from the canonical form.
Freshness: the signed body field timestamp is the dispatch time (Unix
seconds, refreshed on every retry). Reject when
abs(now - timestamp) > 300 seconds, and reject when the
X-Timestamp header does not equal it. The header is not
covered by the signature, so it must never be the only replay
check: a captured delivery replays with just that header
refreshed.
Compare: constant-time (crypto.timingSafeEqual)
Reference handler (Express) — use it as written:
const crypto = require("crypto");
// X-Signature-V2 signs canonical JSON: keys sorted as strings, compact,
// Unicode preserved. Emit the sorted entries directly - rebuilding an object
// would reorder integer-like keys ("10", "2"). Never hash req.rawBody.
const canonical = (v) =>
Array.isArray(v) ? "[" + v.map(canonical).join(",") + "]"
: v && typeof v === "object"
? "{" + Object.keys(v).sort()
.map((k) => JSON.stringify(k) + ":" + canonical(v[k])).join(",") + "}"
: JSON.stringify(v);
app.post("/webhooks/didit", express.json(), (req, res) => {
// Freshness: the signed body timestamp (refreshed on retry) must be recent
// and X-Timestamp must agree - the header alone is unsigned and replayable.
const ts = Number(req.body?.timestamp);
if (!ts || String(ts) !== req.headers["x-timestamp"] ||
Math.abs(Date.now() / 1000 - ts) > 300) return res.sendStatus(401);
const expected = crypto.createHmac("sha256", SECRET)
.update(canonical(req.body), "utf8").digest("hex");
const sig = String(req.headers["x-signature-v2"] ?? "");
const valid = sig.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
if (!valid) return res.sendStatus(401);
const { status, decision } = req.body;
// One entry per ID Verification node; pick yours by node_id when you run several.
const [idv] = decision?.id_verifications ?? [];
// idv.verification_method: "document" | "id_lookup" | "wallet"
res.sendStatus(200);
});
Body fields you will use: session_id, status, webhook_type, workflow_id,
vendor_data, decision.
Status values: Approved, Declined, In Review, In Progress, Not Started,
Abandoned.
## 6. Reading the result
The decision is the V3 shape: every feature result is a plural array with one
entry per workflow node. ID Verification results live in
decision.id_verifications[] — there is no singular decision.kyc (that is the
V2 shape) and no decision.id_verification. Select your entry by node_id (the
id of your ID Verification node in the workflow graph); with a single ID step,
take index 0. Each entry carries, next to the document fields:
verification_method "document" | "id_lookup" | "wallet"
assurance "documentary" | "data_match" | "cryptographic"
id_lookup source label, checked_at, attempts, outcome, one
comparison row per field with match / partial /
no_match, and the registry portrait reference when
there is one; null on document entries
fallback_from { method, reason, action } when the session fell
back to document capture or was declined; else null
A non-document entry that succeeds is assurance data_match, never
documentary. The fallbacks only govern unsuccessful lookups (partial match,
no match, provider error): a lookup that matches is accepted as the ID result
and never reaches them, so switching them to decline does not add documentary
evidence. If your risk policy needs documentary assurance for a segment, do
not enable id_lookup for that segment's country: configure
"document": { "enabled": true } alone (omit the id_lookup key, or set its
enabled to false) and route that segment to a workflow of its own when other
users may keep the lookup. As a final guard, treat any id_verifications[]
entry whose assurance is not documentary as failing that policy.
Field-by-field reference: https://docs.didit.me/reference/data-models#id-verification
## 7. Billing — what actually bills
- a registry that answered bills the lookup. Match, partial match and no
match all count as answered
- document capture bills on top when the user falls back
- a source that never answered is not billed
- a number that fails the client-side format check never reaches the registry
and is neither counted nor billed
## 8. Hard rules — do not change
- base URL for v3 endpoints: verification.didit.me
- auth header: x-api-key (lowercase, hyphenated)
- webhook headers: X-Signature-V2 plus X-Timestamp; canonical JSON, never
raw bytes; freshness from the signed body timestamp
- feature enum: OCR (uppercase) — the ID Verification feature; per-country
methods go under its config.methods
- method keys: document, id_lookup, wallet (lowercase, snake_case)
- country keys: ISO 3166-1 alpha-3, uppercase
- result path: decision.id_verifications[] (array), never decision.kyc
## 9. Verify your integration
- run one session per configured country in sandbox
- assert the id_verifications[] entry for your node has verification_method
id_lookup on the happy path
- force a no-match and assert the fallback you configured actually fires
- for a segment that needs documentary assurance, run a lookup that matches
against that segment's workflow and assert its entry has
verification_method document and assurance documentary
- assert your webhook accepts a correctly signed payload with reordered
keys, whitespace and integer-like metadata keys ("10" before "2"), and
rejects a wrong X-Signature-V2, a payload whose signed timestamp is older
than 300 seconds, and that same stale payload with only the X-Timestamp
header refreshed
Docs: https://docs.didit.me/integration/integration-prompt
适用于构建、测试和您的首批用户。
25+ 模块,价格公开透明。自动享受批量折扣。
适用于大批量和受监管项目。
使用量增长时自动享受批量折扣——无需谈判,无需销售电话。
Didit 是身份和欺诈基础设施,是我们自己构建产品时希望拥有的平台:开放、灵活且对开发者友好,因此它可以作为您技术栈的真正一部分,而不是一个需要您围绕其集成的黑盒。
一个 API 涵盖了人员验证(KYC,了解您的客户)、企业验证(KYB,了解您的业务)、加密钱包筛选(KYT,了解您的交易)以及实时监控交易,其技术栈旨在实现:
其底层支持:48 种以上语言的 14,000 多种证件类型、1,000 多个数据源以及每次会话的 200 多个欺诈信号。Didit 基础设施从每次会话中动态学习并日益完善。
用户输入其国民身份证号码以及一些个人详细信息,Didit 会将其与签发该号码的政府数据库进行核对——整个流程中无需任何证件照片。
如果注册机构返回了此人的照片,Didit 还会拍摄自拍,对其进行被动活体检测,并将其与该照片进行匹配。这已包含在查询价格中,不额外收费。
它不是一个独立的产品。它是 ID_VERIFICATION 中的一种方法,可按国家/地区与证件捕获和数字身份钱包一起启用。
目前有三十六个国家/地区通过签发号码的政府机构提供响应——其中包括阿根廷 (RENAPER)、巴西 (Receita Federal)、哥伦比亚 (Registraduría)、印度 (UIDAI)、肯尼亚 (IPRS)、墨西哥 (RENAPO)、尼日利亚 (NIMC / NIBSS)、秘鲁 (RENIEC)、南非 (Department of Home Affairs) 以及通过信用局和金融服务记录的英国和美国。
阿根廷、尼日利亚、巴拿马和南非会返回注册照片,因此这四个国家/地区也包含自拍、被动活体检测和人脸匹配。
可用性由方法目录提供,因此您的工作流会在国家/地区准备就绪时看到它。包含费率的完整列表可在 /pricing 上找到。证件捕获仍覆盖 220 多个国家/地区——请参阅 /supported-documents。
整个流程通常在 30 秒内完成——这是市场上最快的。传统提供商完成相同流程通常需要超过 90 秒。
输入身份证号码比拍摄证件照片更快,因此非证件查询通常是用户可以采取的最快路径。在后端,Didit 在 p99 下不到两秒内返回结果。
仅凭一个号码是远远不够的。
如果注册机构返回此人的照片,Didit 会拍摄自拍,对其进行被动活体检测以证明是真实的人在场,并将其与注册照片进行人脸匹配。被盗号码与错误人脸不符将无法通过。
如果注册机构不返回照片,查询会确认数据与记录匹配,但不能确认此人是否在场。对于这些国家/地区,请保留证件捕获作为备用,或在同一工作流中将查询与活体检测配对。
您可以根据国家/地区决定,通过三个独立的开关进行设置:部分匹配、不匹配和提供商无响应。每个开关都可以回退到证件捕获或拒绝会话。
您还可以设置用户在触发回退之前可以尝试的次数——1 到 5 次,默认为 1 次。
结果会记录发生的情况:运行的方法、回退自的方法以及原因。不会悄无声息地吞噬任何信息。
查询费用按国家/地区定价,因为每个注册机构的收费不同——从多米尼加共和国的 $0.05 到新加坡的 $4.30,大多数拉丁美洲注册机构为 $0.20。所有费率均在 /pricing 上公开。已响应的注册机构会收取查询费用——匹配、部分匹配和不匹配都算作已响应。
如果注册机构返回照片,自拍、被动活体检测和人脸匹配包含在该费率内,不额外收费。证件捕获仅在用户回退时额外收取 $0.15,并且每月前 500 次证件核验永久免费。
未响应的注册机构不收费。未通过格式检查的号码不会到达注册机构,不计费也不收费。
在您选择的区域内,根据 SOC 2 Type 1 和 Type 2、ISO 27001 和 GDPR 进行传输和静态加密。
每次查询都在当地隐私框架下运行——南非的 POPIA、尼日利亚的 NDPR、巴西的 LGPD、英国的 UK GDPR、美国的 GLBA 允许目的——Didit 在查询需要同意的注册机构之前会征求用户同意。
可选的响应字段可以取消勾选,这样它们就根本不会被存储。必填字段始终存储。完整详情请参阅 /security-compliance。
Didit 已在受监管行业(金融科技、银行、iGaming、加密货币、市场、医疗保健和政府)的 2,000 多家公司投入生产。
非证件查询提供数据匹配保证而非证件保证。如果您的监管机构要求提供证件,请将证件捕获作为备用,或将国家/地区设置为拒绝。每个会话都有保证级别,因此审计员可以准确查看支持每个决定的证据。
备忘录请参阅 /security-compliance。
几分钟,三种方式。
从 business.didit.me 开始,或阅读 docs.didit.me/integration/integration-prompt。