About this endpoint
What it does
Looks up the MX records for the domain extracted from the provided email address and returns whether that domain has MX records. The response also includes the email, the domain, and the raw mx_records array structure returned by the API.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| String | Yes | Email address to check. |
Response
Returns a JSON object with email and domain string fields, a has_mx boolean field, and an mx_records field typed as an array of arrays. Success is indicated by a successful GET response.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| String | No | Email address that was checked. | |
| domain | String | No | Domain extracted from the email address. |
| has_mx | Boolean | No | true if the domain has MX records, false otherwise. |
| mx_records | Object Array | No | MX records returned by the lookup, represented as an array whose items are arrays. The schema does not define the inner item shape. |