Delivery status

How an email and each of its recipients move through delivery: the statuses, how to find emails, and the events you can follow.

Email status

status on the email says whether it was handed to the delivery provider:

A failed email's failure is { code, message }, e.g. all_recipients_suppressed, domain_not_verified, content_rejected, attachments_unavailable, dispatch_failed or provider_error; it is null for every other status.

Recipient status

Delivery happens per recipient. recipients lists every distinct address across to, cc and bcc, each with its own status. A status only moves forward:

queued → sent → delivery_delayed → delivered, then bounced / suppressed / failed, then complained.

suppressed means the recipient was skipped because it is on the environment's suppression list, or the provider reported it as suppressed. An email whose recipients are all suppressed fails with all_recipients_suppressed.

coss.com automatically screens a sample of live emails for spam, phishing and other abuse right before sending them. An email it is confident about fails with content_rejected and live sending is suspended until coss.com support reviews the account. Sandbox emails are never screened. coss.com also emails your organization's owners and admins when it warns about your sending reputation or suspends live sending.

Finding emails

List an environment's emails, newest first, with coss.email.list (see GET /v1/emails). Filter by a recipient's address, by the email's status or a recipient's, by subject text, category, batch or creation time. Listed emails have no content; retrieve one for html, text, headers and attachments.

const {  } = await ..({
  : "user@example.com",
  : ["bounced", "complained"],
  : new (.() - 24 * 60 * 60 * 1000),
});

for (const  of ?. ?? []) {
  .(., ., .failure?.);
failure: EmailFailure | null

Why the email failed; null unless status is "failed".

}

Coding agents can answer these questions for you with the MCP server.

Events

Each change is recorded as an event. List them with coss.email.listEvents (see GET /v1/emails/{id}/events), or receive them as webhooks.

const { :  } = await ..("email_01k7c8m4q2f3e9v6t5r1n0p8yz");

for (const  of ?. ?? []) {
  if (. === "email.bounced") {
    .(., ..bounce?.);
EmailEventData.bounce?: {
    type: "permanent" | "transient" | "undetermined";
    sub_type: string;
    diagnostic_code: string | null;
} | undefined
} }

email.sent, email.failed, email.scheduled, email.rescheduled and email.canceled describe the whole email (recipient is null). Delivery events describe individual recipients. Open and click events name a recipient only when the email had exactly one non-suppressed recipient. email.unsubscribed names the recipient who used one-click unsubscribe.

Last updated