Skip to main content
GET
Node.js

Headers

X-Api-Key
string
required

Query Parameters

start_time
string

The beginning of the time range for retrieving message engagement metrics (inclusive). Formats: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ. Defaults to one month ago if not provided.

end_time
string

The end of the time range for retrieving message engagement metrics (exclusive). Formats: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ. Defaults to the current time if not provided.

campaign_id
string

The ID of the campaign to filter metrics by. If not provided, metrics for all campaigns will be returned.

interval
enum<string>
default:day

The interval for aggregating metrics data. Allowed values:

  • hour: Hourly breakdown
  • day: Daily breakdown (default)
  • week: Weekly breakdown
  • month: Monthly breakdown
Available options:
hour,
day,
week,
month

Response

Successfully retrieved engagement metrics

buckets
object
required

A series of metrics aggregations bucketed by time interval (e.g. hour, day)

click
integer
required

Count of click events by recipients.

Required range: x >= 0
click_tracking_delivered
integer
required

Count of recipients of delivered messages with HTML content that contains tracked click URLs, where click tracking is enabled in the send request.

Required range: x >= 0
open
integer
required

Count of open events by recipients.

Required range: x >= 0
open_tracking_delivered
integer
required

Count of recipients of delivered messages with HTML content where open tracking was enabled in the send request.

Required range: x >= 0
end_time
string<date-time>

The end of the time range for retrieving message engagement metrics (exclusive).

start_time
string<date-time>

The beginning of the time range for retrieving message engagement metrics (inclusive).

unique_click
integer

Count of distinct messages that had at least one click event. Unlike click, each message is counted at most once regardless of how many links were clicked or how many times. Use this to compute click rates without exceeding 100%.

Required range: x >= 0
unique_click_tracking_delivered
integer

Count of distinct messages delivered with click tracking enabled (message-level, not recipient-level). Use as the denominator when computing unique click rates.

Required range: x >= 0
unique_open
integer

Count of distinct messages that had at least one open event. Unlike open, each message is counted at most once regardless of how many times its tracking pixel was fired. Use this to compute open rates without exceeding 100%.

Required range: x >= 0
unique_open_tracking_delivered
integer

Count of distinct messages delivered with open tracking enabled (message-level, not recipient-level). Use as the denominator when computing unique open rates.

Required range: x >= 0