lumail.emails.verify

SDK 2.1.0 · API v2 · POST /api/v2/emails/verify

MethodPOST
/api/v2/emails/verify

[email protected] · lumail.emails

emails.verify({ email: string }): Promise<LumailResult<VerifyEmailResponse>>

Syntax and deliverability check. A timeout is { data: null, error: { name: "timeout" } }, never a successful verify. { valid: false, error, code } is still HTTP 200 and lands in data.

Body Parameters

NameTypeDescription
emailstringRequired. Address to check.

Response Fields

FieldTypeDescription
validbooleantrue when the address passes. false on a completed check that failed.
warningsstring[]Optional warnings on either outcome.
errorstringPresent when valid is false. Human-readable reason.
code"invalid_format" / "disposable_email" / "spam_domain" / "invalid_domain" / "test_email" / "internal_error"Present when valid is false.
suggestionstringOptional correction when valid is false.

data is { valid: true } or { valid: false, error, code, ... }. Transport failures, including timeout, return { data: null, error }.