Skip to content

Create Bulk Job

Request

Validate a full list of addresses.

Security
basicAuth
Path
list_idstringrequired

the name for the bulk job must be unique.

Bodycsv filerequired
objectrequired

a CSV file, with header row, of emails to validate; the "email" column must be present

curl -i -X POST \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v4/address/validate/bulk/{list_id}' \
  -H 'Content-Type: csv file' \
  -d '{
    "": {}
  }'

Responses

A 202 response

Bodyapplication/json
idstringrequired
messagestringrequired
Response
{ "id": "example_list_id", "message": "The validation job was submitted." }