Skip to main content

API Metrics

API metrics describe what happened after a message was accepted by Mailtarget. Use them to reconcile application state, detect deliverability issues, and report engagement.

Delivery metrics

MetricMeaning
count_injectedMessages generated or relayed through Mailtarget.
count_deliveredMessages accepted by the recipient mailbox provider.
count_delayedMessages temporarily rejected by a mailbox provider. Retry may still succeed.
count_bounceBounced messages, including in-band and out-of-band bounces, excluding administrative bounces.

Accepted is not the same as Delivered. Persist the transmissionId from send responses and reconcile it with webhook or analytics events.

Engagement metrics

MetricMeaning
Open ratePercentage of unique confirmed opens over accepted messages. Treat this as directional because some clients block or prefetch images.
count_clickedLink clicks across messages.
UnsubscribedA recipient used an unsubscribe mechanism.
Spam complaintA recipient or mailbox provider marked the message as unwanted.

Operational use

  • Use delivery metrics for retry, suppression, and incident handling.
  • Use engagement metrics for product analytics and campaign reporting.
  • Use webhook events for near-real-time workflows.
  • Use analytics endpoints for aggregate reporting and backfills.