lumail.emails.verify

Legacy SDK method. Prefer lumail.verify().

MethodPOST
/api/v2/emails/verify

Prefer lumail.verify().

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

Still returns { valid: true } or { valid: false, error, code } from /api/v2/emails/verify. A timeout is { data: null, error: { name: "timeout" } }. { 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.