يمكن لوكيل الذكاء الاصطناعي الخاص بك تشغيل KYC. بأمر واحد.
قم بتثبيت اثنتي عشرة مهارة وكيل مفتوحة المصدر من Didit في Cursor أو Claude Code أو Codex أو OpenCode بأمر `npx` واحد. اسأل الوكيل باللغة الإنجليزية العادية. يكتب الكود ويستدعي واجهة برمجة التطبيقات الحية.
مرر المؤشر على علامة تبويب التوثيق وسيقوم بإنشاء نقاط نهاية وتحويل حالات التعداد إلى أحرف صغيرة.
مرر له مهارة Didit وكل سطر يشير إلى واجهة برمجة التطبيقات الحقيقية — نقطة نهاية مقفلة،
رؤوس مقفلة، معالج webhook موقّع مُجهز. أمر `npx` واحد.
كيف يعمل
من تثبيت npx إلى مستخدم موثق في أربع خطوات.
الخطوة 01
تثبيت المهارات
قم بتشغيل `npx skills add didit-protocol/skills` في مشروعك. يكتشف CLI Cursor أو Claude Code أو Codex أو OpenCode ويضع كل مهارة في المجلد الصحيح. قم بتثبيت واحدة فقط باستخدام `--skill didit-face-match`.
الخطوة 02
الحصول على مفتاح API
إما أن تحصل على واحد في 60 ثانية على [business.didit.me](https://business.didit.me) و `export DIDIT_API_KEY=…`، أو دع الوكيل يسجل نفسه برمجيًا — `POST /programmatic/register/` متبوعًا بـ `verify-email/`، ويعود مفتاح في الاستجابة. لا حاجة للمتصفح.
الخطوة 03
اسأل باللغة الإنجليزية البسيطة
*"أضف Didit KYC إلى تدفق التسجيل الخاص بي."* *"افحص هذا المستخدم مقابل قوائم AML."* يقرأ الوكيل المهارة ذات الصلة، ويكتب الكود، ويوصل معالج الـ webhook الموقّع. صحيح من المحاولة الأولى — لا تبديل لعلامات تبويب التوثيق.
الخطوة 04
المستخدم يتحقق
تستضيف Didit الكاميرا، والتقاط المستندات، وصورة السيلفي، وتسليم الهاتف المحمول. أقل من 30 ثانية للمستخدم. حكم في أقل من ثانيتين على الـ webhook الخاص بك، موقّع بـ `X-Signature-V2` حتى تتمكن من الوثوق به.
ما تمنحك إياه المهارات
اثنتا عشرة مهارة. صفر هلوسات. كل Didit API.
كل مهارة هي ملف Markdown واحد يقفل نقطة النهاية، والرؤوس، وشكل الجسم، وتعداد الحالة. مفتوح المصدر. مُصمم مع واجهة برمجة التطبيقات.
مهارة مركزية للحساب، الجلسات، سير العمل، والفواتير (أكثر من 45 نقطة نهاية) بالإضافة إلى إحدى عشرة مهارة مستقلة للهوية، والتحقق من الحياة، ومطابقة الوجه، والبحث عن الوجه، والعمر، ومكافحة غسل الأموال (AML)، والبريد الإلكتروني، والهاتف، وإثبات العنوان، والتحقق من قاعدة البيانات.
didit-liveness-detection99.9% accurate selfie liveness
didit-face-matchقارن وجهين، درجة 0-100
didit-aml-screening1,300+ sanctions + PEP lists
didit-proof-of-addressOCR + تحديد الموقع الجغرافي
didit-database-validationقواعد بيانات حكومية · 18 دولة
+ البحث عن الوجه، العمر، البريد الإلكتروني، الهاتف — 12 إجمالاً.
02 · التثبيت
أمر npx واحد. تم.
يقوم `npx skills add didit-protocol/skills` بتثبيت جميع المهارات الاثني عشر. أضف `--skill didit-face-match` لاختيار واحدة. تفضل Git؟ `git clone` وانسخ ما تحتاجه. لا تفضل أي أدوات؟ ضع ملف `SKILL.md` واحدًا في مجلد مهارات وكيلك.
يكتشف Cursor و Claude Code و Codex و OpenCode تلقائيًا.
03 · المضيفون
Cursor, Claude Code, Codex, OpenCode.
نفس مهارة Markdown في كل مكان. يكتشف CLI تلقائيًا وقت التشغيل الخاص بك ويكتب إلى `.cursor/skills/` أو `.claude/skills/`. مبني على المعيار المفتوح [agentskills.io](https://agentskills.io) — لا يوجد SDK للمورد.
معيار مفتوح على agentskills.io. لا يوجد SDK للمورد.
04 · لا تخمين
المهارة هي مصدر الحقيقة.
يقفل نقطة النهاية الحقيقية، والرؤوس الحقيقية، وحالة الحالة الحقيقية، والتسعير المباشر. يتوقف الوكيل عن اختراع المسارات وتحويل التعدادات إلى أحرف صغيرة. تم اختبار 51 نقطة نهاية في كل إصدار.
كل مهارة موجودة على [github.com/didit-protocol/skills](https://github.com/didit-protocol/skills). قم بمراجعة الكود، وتخصيص المطالبات، وأرسل طلب سحب. يتم شحن المهارة في نفس اليوم الذي يتم فيه نشر نقطة النهاية.
مُصمم بالإصدار مع API · نقطة نهاية جديدة، مهارة في نفس اليوم.
دمج
ثبّت المهارات. اسأل الوكيل. انشر.
يسار: التثبيت. يمين: الـ cURL الذي يكتبه الوكيل بمجرد تثبيت المهارة.
npx skills addتثبيت
$ npx skills add didit-protocol/skills✓ تم تثبيت 12 مهارة# or just one$ npx skills add didit-protocol/skills \
--skill didit-face-match# set the api key$ export DIDIT_API_KEY="sk_live_..."
OKجاهزتم الكشف تلقائيًا عن Cursor و Claude Code و Codex و OpenCode.
تم الإنشاء بواسطة مهارة `didit-kyc-onboarding`.الوثائق ←
تكامل جاهز للوكيل
قم بتثبيت جميع مهارات وكيل Didit الـ 12 في أمر واحد.
الصق في Cursor أو Claude Code أو Codex أو OpenCode. يقوم الوكيل بتثبيت المهارات، ويضبط البيئة، وينشئ جلسة الإنشاء + معالج الويب هوك الموقع، ويختبر مقابل واجهة برمجة التطبيقات الحية.
didit-integration-prompt.md
You are installing the Didit Agent Skills into this project and wiring the first verification session against the live https://verification.didit.me/v3/ API. After this prompt, the project should pass identity verification — Know Your Customer (KYC), Anti-Money Laundering (AML) screening, document Optical Character Recognition (OCR) — through Didit.
Didit ships twelve open-source Agent Skills at https://github.com/didit-protocol/skills and follows the open standard at https://agentskills.io. The CLI auto-detects whether you are running inside Cursor, Claude Code, Codex, or OpenCode and drops the skills into the right folder.
PRE-REQUISITES
- A Didit API key (DIDIT_API_KEY). Either issued from https://business.didit.me, or self-registered by the agent via POST /programmatic/register/ + POST /programmatic/verify-email/ (no browser needed).
- A workflow_id from the Workflow Builder that bundles ID Verification + Passive Liveness + Face Match + IP Analysis + AML — or just use the didit-kyc-onboarding skill below to create one programmatically.
- A webhook endpoint that verifies the X-Signature-V2 header with HMAC-SHA256 on the raw body bytes (do NOT re-serialise the parsed JSON; the signature will not match).
STEP 1 — Install the skills
Recommended:
npx skills add didit-protocol/skills
This installs all twelve skills. To install only one:
npx skills add didit-protocol/skills --skill didit-face-match
Or git clone the repo and copy what you need:
git clone https://github.com/didit-protocol/skills.git
cp -r skills/didit-kyc-onboarding .claude/skills/
cp -r skills/didit-id-document-verification .claude/skills/
The twelve skills:
- didit-verification-management : the hub. Account, sessions, workflows, billing, blocklist, webhook config. 45+ endpoints
- didit-kyc-onboarding : full KYC recipe (ID + selfie + face match) in one call
- didit-id-document-verification : passports, ID cards, driver's licences. OCR, MRZ, NFC. 4,000+ documents, 220+ countries
- didit-liveness-detection : 99.9%-accurate liveness from a single selfie
- didit-face-match : compare two faces, get a 0–100 score
- didit-face-search : 1:N face search for deduplication and blocklists
- didit-biometric-age-estimation : estimate age from a selfie
- didit-email-verification : email OTP, detects breached / disposable / undeliverable
- didit-phone-verification : phone OTP via SMS, WhatsApp, or Telegram. Catches VoIP
- didit-aml-screening : 1,300+ sanctions, PEP, adverse-media lists. Dual-score risk
- didit-proof-of-address : utility bills, bank statements. OCR + geocoding
- didit-database-validation : government databases across 18 countries
STEP 2 — Set the environment
Every skill reads DIDIT_API_KEY. Session-based skills also expect DIDIT_WORKFLOW_ID. Signed-webhook handlers expect DIDIT_WEBHOOK_SECRET.
export DIDIT_API_KEY="<your api key>"
export DIDIT_WORKFLOW_ID="<your workflow id>" # optional
export DIDIT_WEBHOOK_SECRET="<your secret>" # optional
Programmatic alternative (no browser):
curl -X POST https://apx.didit.me/auth/v2/programmatic/register/ \
-H "Content-Type: application/json" \
-d '{"email": "dev@example.com", "password": "MyStr0ng!Pass"}'
# check the email, get the 6-char code, then:
curl -X POST https://apx.didit.me/auth/v2/programmatic/verify-email/ \
-H "Content-Type: application/json" \
-d '{"email": "dev@example.com", "code": "<code>"}'
# response includes api_key — export it as DIDIT_API_KEY.
STEP 3 — Create a verification session
POST https://verification.didit.me/v3/session/
Headers:
x-api-key: $DIDIT_API_KEY
Content-Type: application/json
Body:
{
"workflow_id": "$DIDIT_WORKFLOW_ID",
"vendor_data": "<your user id, max 256 chars>",
"callback_url": "https://<your-app>/kyc/callback",
"metadata": { "source": "agent-skill" }
}
Response: 201 Created. The hosted session URL is on the `url` field. Redirect the user, or send them the link by email / SMS / WhatsApp. Sub-2-second p99 verdict on completion.
STEP 4 — Read the signed webhook
Didit POSTs to your callback. KYC session statuses are Title Case With Spaces.
Body (excerpted):
{
"session_id": "<uuid>",
"vendor_data": "<your user id>",
"status": "Approved",
"id_verification": { "status": "Approved" },
"liveness": { "status": "Approved" },
"face": { "status": "Approved", "similarity_score": 0.94 },
"aml": { "status": "Approved", "hits": [] }
}
Full enum:
Approved | Declined | In Review | In Progress | Not Started | Abandoned | Expired | Resubmitted | Awaiting User | Not Finished
Verify X-Signature-V2 BEFORE parsing the body — HMAC-SHA256 of the raw bytes with your webhook secret. Re-serialising the parsed body changes whitespace and key order and the signature will not match.
STEP 5 — Read the decision on demand
GET https://verification.didit.me/v3/session/{sessionId}/decision/
Headers:
x-api-key: $DIDIT_API_KEY
Returns the full decision payload — id_verification, liveness, face, ip_analysis, aml. Use this whenever the agent needs to confirm the user's status before allowing an action. Never trust client-supplied "I'm verified" flags.
STEP 6 — Branch on status
Approved → continue
Declined → block, surface decision_reason_code, allow resubmit of the failed step
In Review → wait for the analyst webhook; don't block forever
Resubmitted → user re-took a failed step; new verdict is coming
Awaiting User → user hasn't completed the flow; nudge with a reminder
Expired → create a new session
Abandoned and Declined sessions are NOT billed.
STEP 7 — Optional: ongoing AML monitoring
If AML monitoring is enabled on the workflow ($0.07 per user per year), Didit fires status.updated whenever the user lands on a new sanctions / PEP / adverse-media list. No extra endpoint to call.
WEBHOOK EVENT NAMES
- status.updated : KYC or KYB session status changed
- data.updated : session data corrected after creation
- user.status.updated : User entity changed status (Active, Flagged, Blocked)
- user.data.updated : User entity counters, metadata, or aggregate fields changed
- activity.created : timeline activity recorded
Verify X-Signature-V2 on every payload. The webhook secret is per-environment — sandbox is separate from production.
CONSTRAINTS
- KYC session statuses use Title Case With Spaces (Approved, In Review). Do NOT transform them to UPPER_SNAKE_CASE — that casing is for Know Your Business (KYB) sessions and Transaction Monitoring, not KYC.
- HMAC verification runs against the RAW request body bytes. Never re-serialise the parsed JSON.
- Bundle price is $0.30 (ID + Liveness + Face Match + IP Analysis). AML adds $0.20. 500 verifications free every month, forever.
- Default record retention is unlimited unless you configure it shorter (30 days to 10 years per application).
Read the docs:
- https://docs.didit.me/getting-started/agent-skills
- https://docs.didit.me/sessions-api/create-session
- https://docs.didit.me/sessions-api/retrieve-session
- https://docs.didit.me/integration/webhooks
Skills repo:
- https://github.com/didit-protocol/skills
Start free at https://business.didit.me — sandbox key in 60 seconds, 500 verifications free every month, no credit card.
هل تحتاج إلى مزيد من السياق؟ راجع وثائق الوحدة النمطية الكاملة.docs.didit.me ←
متوافق حسب التصميم
افتح دولة جديدة بنقرة واحدة. نحن نقوم بالعمل الشاق.
نحن نفتح الشركات التابعة المحلية، ونؤمن التراخيص، ونجري اختبارات الاختراق، ونحصل على الشهادات، ونتوافق مع كل لائحة جديدة. لشحن عمليات التحقق في بلد جديد، قم بتبديل مفتاح. أكثر من 220 دولة تعمل، يتم تدقيقها واختبار اختراقها كل ربع سنة — مزود الهوية الوحيد الذي وصفته حكومة دولة عضو في الاتحاد الأوروبي رسميًا بأنه أكثر أمانًا من التحقق الشخصي.