How it Works
1
Upload File First
Use the File Upload endpoint to
upload your CSV or XLSX file and obtain the
file_id and file URL2
Configure Cleaning Options
Set your desired validation options (syntax, DMARC, SMTP, MX records)
3
Submit Cleaning Job
Send the cleaning request with the file reference and options
4
Monitor Progress
Use the returned
job_id to track the cleaning progressPrerequisites
File Upload Required: You must first upload a file using the
/v1/api/filesupload/ endpoint to obtain the required file_id and file
URL parameters.Validation Options
The cleaning process supports multiple validation levels:- validate_syntax: Checks email format and structure
- check_dmarc: Validates DMARC policy records
- validate_smtp: Performs SMTP server validation
- validate_mx: Checks MX record existence
Example Workflow
Authorizations
API key for authentication
Body
application/json
Email list cleaning request payload
Response
Email cleaning job initiated successfully
Unique identifier for the cleaning job
Current status of the cleaning job
Available options:
queued, processing, completed, failed Name of the email list being cleaned
ID of the source file
Estimated completion time for the cleaning job
Validation options that will be applied
Total number of emails to be processed
Number of credits required for this cleaning job