Tutorials/Checking Emails
Tutorial

How to verify email addresses

A complete walkthrough of the email verification process - from signing up to handling results in your code.

5 min read Beginner Updated June 2026
01

Create your free account

Sign up at stopbounceai.com and grab your API key from the dashboard. Your first 1000 credits are free - no credit card needed.

02

Make your first API call

Send a POST request with the emails you want to verify. The job starts immediately and runs asynchronously.

Code
curl -X POST https://api.stopbounceai.com/v1/bulk \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"emails":["alex@example.com"]}'
03

Interpret the result

The API returns a status (valid, invalid, risky, unknown), a confidence score between 0 and 1, and structured sub-checks.

Code
{
  "email": "alex@example.com",
  "status": "valid",
  "score": 0.98,
  "checks": {
    "syntax": true,
    "mx": true,
    "smtp": true,
    "catchAll": false,
    "disposable": false
  }
}
04

Handle each status

Route emails differently based on status - accept 'valid', reject 'invalid', flag 'risky' for review, and retry 'unknown' later.

Code
switch (result.status) {
  case "valid":    allowSignup(); break;
  case "invalid":  showError("Please use a real email."); break;
  case "risky":    flagForReview(); break;
  case "unknown":  scheduleRetry(); break;
}