← All API sections
Validation
Validate email addresses: syntax, MX, disposable, role, and free provider checks
1 endpoint
Endpoints
| Method | Path | Description |
| POST | /v1/validate | POST /v1/validate - Validate an email address |
POST /v1/validate
POST /v1/validate - Validate an email address
Request Body
| Field | Type | Required | Description |
email | string | Yes | The email address to validate. |
Responses
| Status | Description |
| 200 | Validation result |
| 401 | Unauthorized |
| 422 | Validation error |
Example
curl -X POST https://api.euromail.dev/v1/validate \
-H "X-EuroMail-Api-Key: em_live_..." \
-H "Content-Type: application/json" \
-d '{ "email": "[email protected]" }'
import { EuroMail } from "@euromail/sdk";
const euromail = new EuroMail({ apiKey: "em_live_..." });
const result = await euromail.createValidate({
email: "[email protected]",
});
from euromail import EuroMail
client = EuroMail(api_key="em_live_...")
result = client.create_validate(
email="[email protected]",
)
use euromail::EuroMail;
let client = EuroMail::new("em_live_...");
let result = client.create_validate(&CreateValidateParams {
email: "[email protected]".into(),
..Default::default()
}).await?;
client := euromail.NewClient("em_live_...")
result, err := client.CreateValidate(ctx, euromail.CreateValidateParams{
Email: "[email protected]",
})