Skip to main content

Email Verification Strategies to Combat Bot Traffic and Spam

Run a 6-digit OTP email check, read the breach, disposable and deliverability flags in the response, and block high-risk sign-ups before an account exists. Didit charges $0.02 per email verification check.

Email Verification Strategies to Combat Bot Traffic and Spam

Contents

In this guide

Jump to the part you need.

Email verification stops bot sign-ups by proving someone can read the inbox, then scoring the address before you create an account. This page is for product and fraud teams running self-serve sign-up. Didit charges $0.02 per email verification check at list price. The caveat: a one-time code proves control of an inbox, not who the person is or what they intend. Pair it with breach and disposable signals, and with protection at sign-in.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

Email verification strategy at a glance
LayerWhat runsPriceWhat it stops
OTP email checkPOST /v3/email/send/ then POST /v3/email/check/$0.02 per verificationHelps filter unreachable, mistyped and disposable addresses and adds mailbox-control evidence
Risk-only screenPOST /v3/email/risk/$0.04 per check on the separate Email risk API lineBreached and disposable addresses before you send anything
Disposable policySign-in policy disposableAuthentication: first 50,000 active users a month free, then $0.02 per active user a monthThrowaway domains at sign-up and email code sign-in
Bot scoreSign-in policy bots, matches at 0.8 or moreSame Authentication pricingHeadless browsers, HTTP libraries, missing browser headers
Device and IPRuns inside a verification session$0.03 per checkDuplicate devices, VPN, Tor, data-center IPs
Escalated ID checkFull ID check via POST /v3/session/$0.33 per checkAccounts the email step flags as high risk

Start free in the sandbox at https://business.didit.me/, no sales call, and sandbox testing is free and unlimited. Developers connecting Didit to an AI assistant can use the Didit MCP server. The product detail is in the email verification docs, and every number is on https://didit.me/pricing/.

What the strategy delivers

A sign-up funnel that survives bot traffic has four properties. Each account has a proven inbox. Disposable and breached addresses are labelled before account creation, not after a spam wave. Code attempts are bounded, so nobody can guess codes or drain your sending reputation. And the decision is recorded with the warnings that produced it, so support and compliance can read the same evidence you did.

  • Every account is bound to an inbox whose code was entered within five minutes.
  • Breach exposure, disposable provider and deliverability come back in the same response as the code result.
  • Three code-entry attempts per session, one free retry per email inside the window. Restart with POST /v3/email/send/.
  • Sign-in is protected separately against stuffing, brute force and automation, so a verified account cannot be taken over.
  • The result is available three ways: the API response, the Business Console and the status.updated webhook.

Use two layers, not one. Layer one is the OTP pair from the Email Verification API: send a code, then check the code, and read the risk metadata that comes back with it. Layer two is sign-in protection from Authentication, which scores the attempt itself against six policies: bots, stuffing, brute, disposable, vpn and travel.

The reason for two layers is that an OTP alone is a weak human test. Automated services may still complete an OTP flow, so pair the OTP with disposable, breach and bot-risk signals. What an OTP does well is prove the mailbox is real and reachable. Combine it with disposable-domain and breach signals to make a risk decision before account creation.

If the same session also runs identity verification, use the session route instead of the standalone pair. Add the EMAIL feature to the workflow, create the session with POST /v3/session/, and read email_verifications[] from the decision. That keeps one decision object for the whole user, with device and IP signals alongside the email result.

Prerequisites

  • A Didit API key, sent as the x-api-key header.
  • A sandbox application for testing. Sandbox testing is free and unlimited on every plan, so you can run the whole flow before you spend any credit.
  • For the session route: a workflow with the EMAIL feature added, and three risk actions set, duplicated_email_action, breached_email_action and disposable_email_action.
  • For the standalone route: nothing beyond the API key. The two endpoints are paired by email address.
  • A written policy per warning code. Decide now which codes decline, which go to review and which pass, so the build does not become the argument.
  • A place to read results: the console, your API response handler, or a webhook endpoint that verifies the HMAC signature.

Step by step: email verification with Didit

  1. Pick the route. Standalone OTP pair for a sign-up form with no other checks. Session route when the same user also runs ID verification, phone verification or device and IP analysis.
  2. Session route only: add the EMAIL feature to the workflow in the Business Console or with POST /v3/workflows/. Set duplicated_email_action, breached_email_action and disposable_email_action. Then create the session with POST /v3/session/ and open session.url for the user.
  3. Send the code. Call POST /v3/email/send/ with the address and, optionally, the code size, locale and white-label flag. The default is 6 numeric digits with Didit-branded delivery.
  4. The user receives the code. It is valid for 5 minutes. Codes sent by Didit during a verification are not billed as messages.
  5. Check the code. Call POST /v3/email/check/ with the address, the code the user typed, and the action you want on a disposable address.
  6. Read the verdict. Take the status plus the full email metadata: the breach list, the disposable flag, the deliverable flag and the warnings[] array.
  7. Route on the warning codes. Decline disposable and undeliverable, review breached and duplicated, approve the clean remainder. Write the outcome to the user record before you create the account.
  8. Turn on sign-in protection. Set each of the six policies to Off, Log, Challenge or Block with PATCH on protection/ in the Authentication management API, or from the console. Then subscribe to status.updated webhooks if you want results pushed rather than polled.

The runnable send call, exactly as documented:

curl -X POST 'https://verification.didit.me/v3/email/send/' \
-H "x-api-key: $DIDIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "alice@example.com",
"options": { "code_size": 6, "locale": "en", "use_white_label_customization": false },
"vendor_data": "user-1234"
}'
The email verification screen with a six-digit code entry field
The OTP step: one six-digit code, valid for 5 minutes, entered in your own UI or the hosted flow.

Then the check call, with the disposable action applied at check time:

curl -X POST 'https://verification.didit.me/v3/email/check/' \
-H "x-api-key: $DIDIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "alice@example.com",
"code": "123456",
"disposable_email_action": "DECLINE"
}'
Six-digit email code typed into the verification screen
Code entered. A session accepts up to 3 code-entry attempts before the status moves to Declined.

Expected output

A matched code returns status Approved, plus the full email metadata whether or not the code matched: the breach list, the disposable flag and the deliverable flag. The same response carries warnings[] with the risk codes that fired.

The status values you will handle, exactly as documented:

  • Not Started and In Progress: normal flow, keep the user on the screen.
  • Approved: code matched, proceed with account creation.
  • Failed: wrong code, attempts remain.
  • Declined: the attempt budget is spent, or a risk action declined the address.
  • Undeliverable: the domain bounced or is invalid.
  • Expired or Not Found: the code is outside the 5-minute window.
  • Abandoned and Kyc Expired: the user walked away, or a linked session aged out.

The warning codes you will route on: DUPLICATED_EMAIL, BREACHED_EMAIL, DISPOSABLE_EMAIL, UNDELIVERABLE_EMAIL, INVALID_EMAIL, OTP_MAX_ATTEMPTS_REACHED and OTP_EXPIRED. The full catalogue is in the warnings reference.

Didit Business Console session detail showing the email verification result and its warnings
The same result in the Didit Business Console: status, breach list, disposable flag, deliverability and warnings.

Failure cases and recovery

What breaks, what you see, what to do next
SituationWhat you seeRecovery
Address bounces or the domain is invalidSend response with status Undeliverable. The docs state no charge for this caseShow the error to the user and ask for another address. Do not silently retry the same one
User mistypes the codeCheck response Failed with attempts remainingRe-prompt on the same screen. Say how many attempts are left
Third wrong attemptCheck response DeclinedRestart the flow with POST /v3/email/send/
User waits too longExpired or Not Found and the OTP_EXPIRED warningRestart. One retry per email inside the window is free
Throwaway domainDISPOSABLE_EMAIL warning and the disposable flag setApply the action you configured, decline or review, and log it
Address appears in a breachBREACHED_EMAIL warning with the breach detailsRoute to review or force a password reset. Do not treat it as proof of fraud
Same address seen beforeDUPLICATED_EMAIL warningMatch to the existing account instead of creating a second one
Attempt cap hitOTP_MAX_ATTEMPTS_REACHEDClose the session and rate-limit the address
Automation at sign-in403 with error attempt_blockedSwitch that policy from Block to Challenge if real users are caught
Brute-force blockPassword attempts answer like a wrong passwordThe user resets the password, which clears the lock. Your team can also clear the lock from the console

Inputs and outputs

Fields you send and fields you read
FieldDirectionWhat it does
emailSend and checkThe address being verified. It pairs the two calls
options.code_sizeSendCode length from 4 to 8 characters. The default is 6 numeric digits; alphanumeric codes are optional
options.localeSendLanguage of the email
options.alphanumeric_codeSendLetters and digits instead of digits only. The check is case-insensitive
options.use_white_label_customizationSendDefault false. True sends this OTP with your application's white-label sender and branding
vendor_dataSendYour stable user identifier, echoed back on the record
codeCheckThe code the user typed
disposable_email_action, breached_email_action, duplicated_email_actionCheck or workflowThe action applied when that risk is detected
statusOutputThe verification state, one of the values listed above
breach list, disposable flag, deliverable flag, warnings[]OutputThe risk metadata returned with every check

Anti-spam verification at sign-in, not only at sign-up

Anti-spam verification is the check you run on the attempt itself, not just on the address. Didit Authentication runs bot protection on every sign-up, sign-in and password reset, and checks the attempt against six policies with four modes each: Off, Log, Challenge and Block.

  • bots matches when Didit's server scores the request 0.8 or more. Signals include automation-ua, script-ua, browser-headers, webdriver, automation-artifact, headless, no-signals and client-score.
  • stuffing matches when one device or IP tries 10 or more different accounts within 15 minutes, or the password is a known breached password.
  • brute matches after 5 or more failed attempts on an account. Wrong passwords and wrong email, phone and authenticator codes all count.
  • disposable matches when a sign-up, or an email code or magic link sign-in, uses a disposable domain.
  • vpn matches when the IP is a VPN, Tor or data-center network.
  • travel matches when a sign-in is more than 500 km from the previous one at more than 1,000 km/h within 24 hours.

Stuffing defaults to Challenge, because offices, campuses and mobile carriers put many real people behind one address. A blocked attempt never reveals whether the account exists: the bots, stuffing, disposable and vpn policies answer 403 with error attempt_blocked for an existing account, an unknown one, a right secret and a wrong one alike. Protection is off until you switch it on, so plan a week in Log mode and read the events before you move anything to Block.

Email verification is $0.02 per verification at list price, $0.0192 on Growth and $0.018 on Scale. That $0.02 standalone price buys the send-and-check email verification, not a risk lookup on its own. Billing is per completed check from prepaid credit, and the docs list a send that comes back Undeliverable as not charged. The separate Email risk API, which returns breach, disposable and deliverability signals without sending a code, is its own line at $0.04 per check, and email intelligence is $0.05.

Costs that sit around the email step: device and IP analysis at $0.03 per check when it runs inside the session, and phone verification at the carrier price for the country and channel plus a $0.02 Didit fee. Read the current list on the pricing page before you commit a budget line.

Where the human boundary sits is your call, not ours. The three risk actions exist so your policy decides, and the split below is one implementation choice, not a Didit default. Auto-decline undeliverable addresses and disposable domains. Auto-decline a bot score of 0.8 or more once the policy has run in Log mode. Send breached and duplicated addresses to review, because a breached inbox is a risk signal rather than proof of fraud. Keep the review queue small and the auto-decline list narrow for the first month, then widen it with evidence from your own events.

Worked cost example

Take 50,000 sign-ups a month with email verification on every one, an email risk pre-screen on 10,000 addresses imported from a waitlist, and a full ID check for the 3,000 sign-ups the email step flags as high risk.

  • Email verification: 50,000 at $0.02 = $1,000.00
  • Email risk API pre-screen: 10,000 at $0.04 = $400.00
  • Full ID check for escalated accounts: 3,000 at $0.33 = $990.00
  • Total: $1,000.00 + $400.00 + $990.00 = $2,390.00 a month
  • Per sign-up: $2,390.00 divided by 50,000 = $0.0478

The same volume on Scale, where every Didit price is 10% lower: 50,000 at $0.018 = $900.00, 10,000 at $0.036 = $360.00, and 3,000 at $0.297 = $891.00. Total $2,151.00, or $0.04302 per sign-up. On Growth, 4% off: 50,000 at $0.0192 = $960.00, 10,000 at $0.0384 = $384.00, and 3,000 at $0.3168 = $950.40, for $2,294.40, or $0.045888 per sign-up. On the Free plan, the $10.00 of monthly credit for eligible organizations buys 500 email verifications at list price ($10.00 divided by $0.02 = 500), and sandbox testing is free and unlimited while you build the flow.

Sources

Next step: open the sandbox at https://business.didit.me/, create an application, and run the send and check pair against a test address. No sales call, and sandbox testing is free and unlimited.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

How much does email verification cost with Didit?

Email verification is $0.02 per verification at list price, $0.0192 on the Growth plan and $0.018 on the Scale plan. Billing is per completed check from prepaid credit, and sandbox testing is free and unlimited on every plan.

Does an OTP prove a sign-up is human?

No. An OTP proves the person can read that inbox within five minutes. Automated services can complete codes, so pair the OTP with a disposable-domain verdict, a breach lookup and a bot score on the attempt itself.

What is anti-spam verification?

Anti-spam verification means checking both the address and the attempt at sign-up or sign-in. Didit runs six sign-in policies (bots, stuffing, brute, disposable, vpn, travel) on every sign-up, sign-in and password reset, alongside the OTP email check and its risk flags.

How long is the Didit email code valid, and how many attempts do I get?

The code is valid for 5 minutes, and each session accepts up to 3 code-entry attempts. One retry per email inside the window is free.

What happens when someone signs up with a disposable address?

The check returns the disposable flag set and a DISPOSABLE_EMAIL warning. What happens next depends on the action you configured in disposable_email_action: decline, review or approve.

Can I score an email without sending a code?

Yes. POST /v3/email/risk/ scores deliverability, breach exposure and disposable-provider risk without sending anything, and it is priced as its own line at $0.04 per check. It is the right call for a pre-check on a bulk import or a form field blur.

What does the API return when the user types the wrong code?

Status Failed with the attempts remaining, so you can re-prompt. The third failed attempt returns Declined, and you restart with POST /v3/email/send/.

Am I charged when the email bounces?

The docs state that a send returning status Undeliverable for a bounce or invalid domain is not charged. Billing is per completed check from prepaid credit, and the check that returns a result is the one that bills.

Is Didit bot protection on by default?

No. Protection is off until you turn it on, and the modes you save are kept. Rate limits and bounded code attempts always apply, and your allowlist and blocklist apply on Growth and above.

What does a blocked sign-in attempt return?

A blocked attempt never reveals whether the account exists. The bots, stuffing, disposable and vpn policies answer 403 with error attempt_blocked; brute and travel are enforced but answer like a wrong secret, invalid_credentials for a password and invalid_grant for a code.

How many failed attempts trigger brute-force protection?

Five. Wrong passwords and wrong email, phone and authenticator codes all count. After that the block mode requires a password reset, which also clears the lock.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.