didit-email-verification
بواسطة rosasalberto
Coding Agents & IDEsموجز
Integrate Didit Email Verification standalone API to verify email addresses via OTP.
الوصف
ما الذي تفعله هذه المهارة
Verifies email addresses using a two-step OTP flow: send a code to an address, then check the code the user provides. Detects breached, disposable, and undeliverable emails, and accepts fraud signals like IP address and user agent for risk scoring. Codes expire after 5 minutes with a maximum of 3 check attempts per code.
Combines OTP delivery with breach detection, disposable email filtering, and fraud signals in one API, so teams don't need to connect separate verification and risk-scoring services.
متى تستخدمها
- Confirming email ownership during account registration
- Blocking signups from disposable or temporary email providers
- Rejecting emails found in known data breach databases
- Adding OTP confirmation to checkout or payment flows
- Flagging undeliverable addresses before sending transactional email
مثال على سير العمل
User asks: verify user@example.com and decline if the email is breached or disposable
- 1
POST /v3/email/send/ with the email address and optional fraud signals such as IP and user agent
- 2
Wait for the user to submit the OTP code they received
- 3
POST /v3/email/check/ with the email, code, breached_email_action set to DECLINE, and disposable_email_action set to DECLINE
- 4
Read the response status and email.warnings fields to determine the approval or decline reason
Status 'Approved' if the code is correct and no policy violations, or 'Declined' with a warning such as BREACHED_EMAIL_DETECTED indicating the specific reason
المتطلبات
- DIDIT_API_KEY environment variable
- Didit account at business.didit.me
- Didit credits (pay-per-use billing)
التثبيت
clawhub install rosasalberto/didit-email-verificationشغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.