Interface MarketingStats

All Known Implementing Classes:
MarketingStatsImpl

public interface MarketingStats
Interface representing the Mailtrap API for aggregated Email Marketing statistics (campaigns and automations).

This endpoint is token-scoped: the account is resolved from the API token, so the path takes no account id.

  • Method Details

    • getMarketingStats

      MarketingStatsResponse getMarketingStats(MarketingStatsFilter filter)
      Get aggregated Email Marketing statistics for a date range. Email API/SMTP traffic is not included; see sendingApi().stats() for it.
      Parameters:
      filter - stats filter parameters; startDate and endDate are required
      Returns:
      aggregated Email Marketing statistics