lumail.verify

SDK 2.2.0 · API v2 · POST /api/v2/verify

MethodPOST
/api/v2/verify
lumail.verify(email | { email: string }): Promise<LumailResult<EmailVerification>>
const { data, error } = await lumail.verify("[email protected]");

if (error) throw error;
if (!data.accept) {
  console.log(data.issues[0]?.code);
}
const next = data.suggestion ?? data.email;

Body Parameters

NameTypeDescription
emailstringRequired. Address to check. Also accepted as a bare string.

Response Fields

FieldTypeDescription
object"email_verification"Resource type.
idstringTenant-owned verify_result id.
emailstringNormalized address that was checked.
resultstringdeliverable, risky, undeliverable, or unknown.
acceptbooleanPolicy decision. Can be true when quota is exhausted.
statusstringcompleted, skipped, or failed.
scoreinteger | null0–100 deliverability confidence.
suggestionstring | nullBetter address when the domain looks like a typo.
traitsobjectDomain category plus disposable, free-provider, privacy-alias, role-based, and suspicious-domain booleans.
issuesobject[]Errors and warnings only. Empty when the address is clean.
quotaobject{ limit, used, remaining, resets_at } for the UTC month.
retry_atstring | nullISO timestamp when a retryable check should be tried again.
cache_hitbooleantrue when the result was served from cache.

Field details: API reference.

Legacy lumail.emails.verify() still talks to /api/v2/emails/verify.