DocumentationAPI Reference

API Reference

Guides

Validate a single email address

POST/api/v1/email/validate

Validate a single email address

Parameters

NameTypeRequiredDescription
emailstringRequiredThe email address to validate
validation_levelstringOptionalValidation level (strict, moderate, relaxed). Default: strict

Returns

ValidationResult

Example

curl -X POST https://xify.dev/api/v1/email/validate \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "X-API-Secret: YOUR_API_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"email": "example@gmail.com"}'

Response

{
  "email": "example@gmail.com",
  "isValid": true,
  "domain": "gmail.com",
  "format": {
    "isValid": true,
    "details": "Valid email format"
  },
  "domain_check": {
    "has_mx_records": true,
    "has_valid_dns": true
  },
  "mailbox_check": {
    "exists": true,
    "is_deliverable": true,
    "is_full": false,
    "catch_all": false
  },
  "spam_check": {
    "score": 1,
    "is_disposable": false,
    "is_role_account": false,
    "is_free_service": true
  },
  "verification_time_ms": 324,
  "score": 9.8,
  "validated_at": "2023-08-12T15:42:31Z"
}

Ready to integrate with our API?

Get started with 100 free validations per month. No credit card required.