Skip to content

GetMessageInsights

Source: src/AWS/SES/GetMessageInsights.ts

Runtime binding for sesv2:GetMessageInsights.

Retrieves the delivery insights SES tracked for a single sent message — the per-recipient event timeline (send, delivery, open, click, bounce, complaint) plus the resolved subject, from-address, and tags. Requires VDM (Virtual Deliverability Manager) to be enabled and the message to have been sent within the retention window; an unknown message id fails with the typed NotFoundException. Account-level operation. Provide the implementation with Effect.provide(AWS.SES.GetMessageInsightsHttp).

// init — account-level binding, no resource argument
const getInsights = yield* SES.GetMessageInsights();
// runtime — MessageId returned by a prior SendEmail
const { Insights } = yield* getInsights({ MessageId: messageId });