Email Validation for AI Coding Assistants

Add email validation and block fake signups in your app. Copy one prompt, paste it into your AI coding tool, and you're done.


How to Validate Emails with Vibe Coding

1

Get your free API key

Sign up at app.check-mail.org for free. No credit card required. 1,000 requests per month included.

2

Copy the prompt below

The prompt contains every detail your AI coding assistant needs: API endpoint, authentication, response format, and implementation rules.

3

Paste into your AI tool

Paste it into Claude Code, Cursor, GitHub Copilot, Windsurf, ChatGPT, or any AI coding assistant. It handles the rest.


Copy This Prompt to Validate Emails

Paste this prompt into your AI coding assistant. It will integrate the Check-Mail.org email validation API into your project, blocking disposable emails and preventing fraudulent signups.

AI Prompt — Email Validation Integration
Integrate email validation using the check-mail.org API into this project.

## API Details
- Endpoint: POST https://api.check-mail.org/v2/
- Authentication: Bearer token in the Authorization header
- Request body parameter: email (the email address to validate)
- Content-Type: application/x-www-form-urlencoded

## Setup
Store the API key in the project's environment variables file (e.g. .env) as CHECK_MAIL_API_KEY. If you don't know my API key, ask me for it.

## Making a Request
Send a POST request with the email parameter:

    POST https://api.check-mail.org/v2/
    Authorization: Bearer YOUR_API_KEY
    Accept: application/json
    Body: email=user@example.com

## Response Structure
The API returns JSON with these fields:

{
    "valid": true,              // Whether the email domain exists and can receive mail
    "block": true,              // PRIMARY FIELD: Whether this email should be blocked
    "domain": "example.com",
    "base_domain": "example.com",
    "text": "Should be blocked", // Human-readable explanation
    "reason": "Heuristics: BM1", // Technical reason for the decision
    "risk": 99,                 // Risk score 0 (safe) to 100 (dangerous)
    "is_disposable": false,     // Temporary/throwaway email service
    "is_email_forwarder": false, // Email forwarding service
    "is_public_free": false,    // Free provider (Gmail, Yahoo, etc.)
    "is_public_premium": false, // Premium tier of public provider
    "is_business_provider": false, // Business email hosting
    "is_isp_email": false,      // ISP-provided email
    "is_email_api": false,      // Transactional email service
    "is_web_hosting_email": false, // Web hosting provider email
    "is_self_hosted": false,    // Self-hosted mail server
    "is_parked": false,         // Parked/unused domain
    "is_role_based_email": false, // Role address (info@, support@)
    "mx_host": "example.com",   // Mail server hostname
    "mx_ip": "104.18.27.120",  // Mail server IP
    "mx_info": "...",           // MX record details
    "mx_fallback": true,        // Whether MX is a fallback
    "mx_hosts": ["example.com"],
    "mx_ips": ["104.18.27.120"],
    "mx_priorities": [],
    "email_provider": null,     // Identified provider name
    "disposable_provider": null, // Disposable service name
    "possible_typo": [],        // Suggested corrections for typos
    "domain_age_days": 11183,
    "domain_created_at": "1995-08-14T00:00:00+00:00",
    "block_status_changed_at": "2024-10-27T21:38:24+00:00"
}

## How to Use the Response
The "block" field is the primary decision field:
- block = true: Reject the email (disposable, risky, invalid, etc.)
- block = false: The email is acceptable

Use "text" and "reason" to show the user why an email was rejected.
Use "risk" (0-100) for a more granular risk assessment.
Use "possible_typo" to suggest corrections (e.g. "Did you mean gmail.com?").
Use "is_disposable", "is_public_free", "is_role_based_email" etc. for custom filtering beyond the block field.

## Error Handling
- 401: Invalid or missing API key
- Invalid or missing email returns HTTP 200 with "valid": false in the response body (not a 422)
- If the API is unreachable, allow the form submission to proceed (fail open)
- Handle network errors gracefully with a try/catch

## Implementation Guidelines
- Validate the email on form submission (server-side), not on every keystroke
- Show a user-friendly message when an email is blocked
- Cache results when appropriate to avoid redundant API calls
- Never expose the API key in client-side/frontend code

Documentation: https://docs.check-mail.org/
Sign up for a free API key (1,000 requests/month): https://app.check-mail.org/register

Works with Claude Code, Cursor, GitHub Copilot, Windsurf, ChatGPT, Replit Agent, and any AI coding tool that accepts natural language instructions.


What Is Vibe Coding?

Vibe coding is a new approach to software development where you describe what you want in plain language and an AI coding assistant writes the code. Instead of manually writing every function and debugging every error, you guide the AI with prompts and it generates working implementations for you.

Popular AI coding assistants include Claude Code by Anthropic, Cursor, GitHub Copilot, Windsurf, ChatGPT, and Replit Agent. These tools understand API documentation, handle authentication patterns, and can integrate third-party services into your project from a single prompt.

The prompt on this page is designed for exactly this workflow. It gives your AI assistant everything it needs to integrate email validation: the API endpoint, authentication method, full response structure, error handling rules, and best practices. No reading through documentation pages, no trial and error.


Why Block Disposable and Temporary Emails?

Disposable email addresses are temporary inboxes that self-destruct after minutes or hours. They are commonly used to abuse free trials, create fake accounts, and bypass email verification. Blocking them protects your platform and your real users.

  • Prevent fake signups and free-trial abuse from throwaway accounts
  • Improve email deliverability by keeping invalid addresses out of your mailing list
  • Reduce spam and bot registrations that pollute your user data
  • Protect your analytics from skewed metrics caused by fraudulent accounts

Learn more about what disposable email is and why you should block it, or check our database of known disposable email providers.

Ready to Validate Emails?

Get your free API key and start blocking disposable emails in minutes.

Get Your Free API Key

Frequently Asked Questions

What is vibe coding?

Vibe coding is a style of software development where you describe what you want to build in natural language, and an AI coding assistant writes the code for you. Tools like Claude Code, Cursor, GitHub Copilot, Windsurf, and ChatGPT let you build full applications by guiding the AI with prompts instead of writing every line yourself.

How do I add email validation using an AI coding assistant?

Copy the prompt from this page and paste it into your AI coding tool. The prompt contains all the API details, response fields, and implementation guidelines your AI assistant needs to integrate the Check-Mail.org email validation API into your project. You just need a free API key from app.check-mail.org/register.

Do I need to know how to code to use this prompt?

Not deeply. The prompt is designed to give your AI coding assistant all the technical details it needs. You should be comfortable with basic project setup like installing dependencies and setting environment variables, but the AI handles the actual implementation.

Is the Check-Mail email validation API free?

Yes. The free tier includes 1,000 email validation requests per month with no credit card required. That is enough for most small projects and prototypes. Paid plans start at $50/month for 200,000 requests.

Which AI coding tools work with this prompt?

The prompt works with any AI coding assistant that accepts natural language instructions, including Claude Code by Anthropic, Cursor, GitHub Copilot, ChatGPT, Windsurf, Replit Agent, and others. It is framework-agnostic and language-agnostic.

What happens if the email validation API is unreachable?

The prompt instructs the AI to implement fail-open behavior: if the API is unreachable due to a network error, the form submission proceeds normally. Your users are never blocked by an API outage.

Recently checked domains:

tuunic.com         ramynd.com         myemailgsuite.33mail.com         eunoiaa.cf         supergsm.com