Get Email Test Result
get_email_testRetrieves the status and authentication results of an email deliverability test after the message is sent, including SPF, DKIM, DMARC, delivery estimates, and fix advice.
Instructions
Use this after start_email_test, once the user says they sent the email. Returns status pending | received | expired | error. pending means the message has not arrived (or is still being checked): ask the user to send it if they have not, then call again. received carries result: the sending IP and reverse DNS, STARTTLS, SPF, every DKIM signature, DMARC with alignment and the disposition the policy implies, message format, links, domain age, blocklist and malware-feed status, and a score out of 10 with every deduction itemized, plus advice. With scoring_version 2 the score has one decimal and is 10 only when nothing was deducted and not_scored lists no check marked blocks_ten; an older test (scoring_version 1) keeps its original score. A version 2 result also carries sender_requirements (Gmail's, Yahoo's, Microsoft Outlook's and Apple's published sender rules against what this message showed, not a compliance verdict) and result.estimates.providers: for gmail, yahoo, microsoft and apple, accepted_pct (whether it takes the message at all) and inbox_pct (inbox rather than spam once accepted; null when there is no estimate), each with its basis. Relay them as estimates, never as a promise of delivery. A 'temperror' is a lookup that did not complete, NOT a failure, and is never scored. Present any record in result.dmarc.fix verbatim and never compose one; when it is null and result.dmarc.fix_withheld is set (for example a domain on Automatic DMARC), relay that reason instead. SPF is diagnose-only and DKIM keys come from the sending provider. The deduction coded ai_read and ai_assessment, when present, come from an automated read of the redacted message: attribute them as such (ai_read costs at most 0.5 points) and never present either as a spam score. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test_id | Yes | The test_id start_email_test returned — not the test address. Tests started without an account are kept 24 hours; an unknown id is refused as not found. |