Validation Methods
- Direct Email Validation
- File-Based Validation
Validate individual email addresses by providing them directly in the request.
How it Works
1
Choose Validation Method
Decide whether to validate individual emails directly or use a file-based
approach
2
For File-Based: Upload File First (Optional)
If using file-based validation, first upload your CSV or XLSX file using the
File Upload endpoint to obtain the
file_id3
Configure Validation Options
Set your desired validation options (syntax, DMARC, SMTP, MX records)
4
Submit Validation Request
Send either
emails array OR file_id (not both)5
Receive Results
Get validation results for the submitted emails
Request Parameters
Either/Or Requirement: You must provide either
emails OR file_id, but
not both in the same request.Direct Email Validation
- emails: Array of email addresses to validate
- options: Validation options object
File-Based Validation
- file_id: ID from a previously uploaded file
- file_tag: Tag for categorizing the validation type
- options: Validation options object
Validation Options
Configure which validation checks to perform:- validate_syntax: Checks email format and structure (default: true)
- validate_smtp: Performs SMTP server validation (default: false)
- check_dmarc: Validates DMARC policy records (default: false)
- validate_mx: Checks MX record existence (default: false)
Example Workflows
Direct Email Validation
File-Based Validation
Authorizations
API key for authentication
Body
application/json
Email validation request payload
Array of email addresses to validate (required for direct validation)
Example:
["test@example.com", "user@domain.com"]ID of the uploaded file (obtained from file upload response) - required for file-based validation
Example:
740
Validation options
Tag for categorizing the file processing type (required when using file_id)
Available options:
clean, validate, analyze Example:
"validate"