Skip to content

Inspect

The health report of one message your app sent.

ParameterRequiredMeaning
message_idyesThe message’s Message-ID, with its angle brackets.
Terminal window
curl -s -G https://c1.simmail.dev/api/inspect \
-H "Authorization: Bearer smk_your_key" \
--data-urlencode "message_id=<[email protected]>"
FieldMeaning
message_id, subject, from, atWhich message, and when it was inspected.
spamengine, score, junk, reject, action, rules, and error or note when set.
linksEach link and image checked.
links_donefalse while the link check is still running.
broken, local, dangerousCounts from the link check.
unsubscribeWhether there is a way off the list.
compatClient compatibility, for HTML mail.
accessAccessibility, for HTML mail.
lockedtrue when your plan shows counts but not the compatibility and accessibility details.

404 “no inspection for that message” when there is no report: the id is wrong, or the mail was not sent by your app.

With the SDKs, from a message you waited for, or by its id:

JavaScript
import { Simmail, NotFoundError } from "@plexuslabs/simmail";
const mail = new Simmail();
const msg = await mail.mailbox("[email protected]").waitForEmail({ from: "[email protected]" });
const report = await msg.health(); // or: await mail.health("<3f9c…@yourcompany.test>")
console.log(report.spam.score, report.broken, report.links_done);
Python
from simmail import Simmail, NotFoundError
mail = Simmail()
msg = mail.mailbox("[email protected]").wait_for_email(sender="[email protected]")
report = msg.health() # or: mail.health("<3f9c…@yourcompany.test>")
print(report["spam"]["score"], report["broken"], report["links_done"])

A missing report raises NotFoundError.

Codes and links from any text or HTML. See the wait API. In the SDKs: mail.extract({ text, html }) (JavaScript), mail.extract(text, html) (Python), or msg.extract() on a message.