curl --request POST \
--url https://app.spotzee.com/api/ext/generic/email/mx-lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data domain=example.com{
"status": "success",
"data": {
"exists": true,
"records": [
{
"exchange": "mail.example.com",
"priority": 10
}
],
"domain": "<string>"
}
}Retrieves Mail Exchange (MX) records for a domain. Returns mail server hostnames and their priorities, sorted by priority. Essential for email configuration and deliverability verification.
curl --request POST \
--url https://app.spotzee.com/api/ext/generic/email/mx-lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data domain=example.com{
"status": "success",
"data": {
"exists": true,
"records": [
{
"exchange": "mail.example.com",
"priority": 10
}
],
"domain": "<string>"
}
}Bearer token authentication. Use format: Bearer YOUR_API_KEY
Domain name
"example.com"
Successfully retrieved MX records
Indicates successful operation
success Hide child attributes
Whether MX records exist
Queried domain
Was this page helpful?