diff --git a/source/includes/rest/_metrics.md b/source/includes/rest/_metrics.md
index bf64bed5c25..1038b93ba0d 100644
--- a/source/includes/rest/_metrics.md
+++ b/source/includes/rest/_metrics.md
@@ -1,9 +1,9 @@
# Metrics
The Metrics API returns aggregate email performance for an account: sends, deliveries, opens,
-clicks, bot clicks, unsubscribes, hard bounces, complaints, orders, and revenue.
+clicks, bot clicks, unsubscribes, hard and soft bounces, complaints, orders, and revenue.
-Results cover Single-Email Campaigns, and automation emails sent by Workflows.
+Results cover Single-Email Campaigns, Email Series Campaigns, and automation emails sent by Workflows.
Confirmation emails (double opt-in) are excluded. Order and revenue values are
reported in cents.
@@ -19,6 +19,15 @@ Dates are interpreted in the account owner's time zone.
"workflow_id": "789012",
"node_id": "SENDEMAILNODE1"
},
+ "campaign_placement": {
+ "campaign_id": "345678",
+ "position": 2,
+ "status": "published",
+ "delay": {
+ "value": 3,
+ "units": "days"
+ }
+ },
"title": "December Newsletter",
"email_metric": { ... }
}
@@ -46,6 +55,10 @@ Dates are interpreted in the account owner's time zone.
workflow_placement |
An object containing the workflow_id of the workflow that sends the email and the node_id of the send-email step within it. Only present when the request includes a workflow_ids filter and the email is sent by one of those workflows. node_id holds the same value Fetch a workflow's details returns as a node's id. |
+
+ campaign_placement |
+ An object describing where the email sits in an Email Series Campaign. Only present when the request includes a campaign_ids filter and the email belongs to one of those campaigns. campaign_id is the campaign's id; position is the email's 1-based order in the series, counting drafts, as shown in the series editor; status is published or draft (only published emails are sent to new subscribers); delay holds the wait after the previous email as a value and units (minutes, hours, or days). The email's metrics are totals for the email, not for its position. |
+
title |
The name of the Single-Email Campaign, Email Series Campaign, or automation that sent the email. |
@@ -75,6 +88,8 @@ Dates are interpreted in the account owner's time zone.
"unsubscribe_rate": 0.007,
"hard_bounces": 18,
"hard_bounce_rate": 0.018,
+ "soft_bounces": 9,
+ "soft_bounce_rate": 0.009,
"complaints": 2,
"complaint_rate": 0.002,
"orders": 24,
@@ -144,6 +159,14 @@ used for the report `summary` and for each email's `email_metric`.
hard_bounce_rate |
hard_bounces divided by sends. |
+
+ soft_bounces |
+ The number of soft bounces. |
+
+
+ soft_bounce_rate |
+ soft_bounces divided by sends. |
+
complaints |
The number of spam complaints. |
@@ -180,7 +203,7 @@ used for the report `summary` and for each email's `email_metric`.
> To fetch email metrics:
```shell
-curl -g "https://api.getdrip.com/v2/YOUR_ACCOUNT_ID/metrics/email?start_date=2026-01-01&end_date=2026-01-31&broadcast_ids[]=BROADCAST_ID&workflow_ids[]=WORKFLOW_ID" \
+curl -g "https://api.getdrip.com/v2/YOUR_ACCOUNT_ID/metrics/email?start_date=2026-01-01&end_date=2026-01-31&broadcast_ids[]=BROADCAST_ID&workflow_ids[]=WORKFLOW_ID&campaign_ids[]=CAMPAIGN_ID" \
-H 'User-Agent: Your App Name (www.yourapp.com)' \
-u YOUR_API_KEY:
```
@@ -194,7 +217,8 @@ uri.query = URI.encode_www_form(
"start_date" => "2026-01-01",
"end_date" => "2026-01-31",
"broadcast_ids[]" => "BROADCAST_ID",
- "workflow_ids[]" => "WORKFLOW_ID"
+ "workflow_ids[]" => "WORKFLOW_ID",
+ "campaign_ids[]" => "CAMPAIGN_ID"
)
request = Net::HTTP::Get.new(uri)
@@ -215,6 +239,7 @@ const params = new URLSearchParams({
});
params.append("broadcast_ids[]", "BROADCAST_ID");
params.append("workflow_ids[]", "WORKFLOW_ID");
+params.append("campaign_ids[]", "CAMPAIGN_ID");
const response = await fetch(
`https://api.getdrip.com/v2/YOUR_ACCOUNT_ID/metrics/email?${params}`,
@@ -298,8 +323,8 @@ rest, call again with `limit` set to `emails_total`, up to 1,000; beyond that th
available. This endpoint is not paginated.
Rule- and form-automation emails appear only in unfiltered results. `broadcast_ids` reaches only
-Single-Email Campaign emails and `workflow_ids` reaches only Workflow emails, so neither filter
-can target them.
+Single-Email Campaign emails, `workflow_ids` only Workflow emails, and `campaign_ids` only Email
+Series Campaign emails, so no filter can target them.
### Limits
@@ -319,9 +344,13 @@ can target them.
25 ids |
workflow_ids per request |
+
+ | 25 ids |
+ campaign_ids per request |
+
| 1,000 emails |
- The emails that broadcast_ids and workflow_ids resolve to |
+ The emails that broadcast_ids, workflow_ids, and campaign_ids resolve to |
| 1,000 emails |
@@ -380,7 +409,11 @@ applied per account.
workflow_ids |
- Optional. An Array of workflow ids. Limits results to the emails sent by those workflows. May be combined with broadcast_ids, in which case the results are the union of both filters. |
+ Optional. An Array of workflow ids. Limits results to the emails sent by those workflows. May be combined with broadcast_ids and campaign_ids, in which case the results are the union of the filters. |
+
+
+ campaign_ids |
+ Optional. An Array of Email Series Campaign ids. Limits results to the emails in those campaigns, drafts included. May be combined with broadcast_ids and workflow_ids, in which case the results are the union of the filters. |
limit |