Get metrics for multiple broadcasts
curl --request POST \
--url https://api.instantly.ai/api/v2/email-marketing/metrics/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"broadcast_ids": [
"01234567-89ab-cdef-0123-456789abcdef"
]
}
'import requests
url = "https://api.instantly.ai/api/v2/email-marketing/metrics/batch"
payload = { "broadcast_ids": ["01234567-89ab-cdef-0123-456789abcdef"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({broadcast_ids: ['01234567-89ab-cdef-0123-456789abcdef']})
};
fetch('https://api.instantly.ai/api/v2/email-marketing/metrics/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.instantly.ai/api/v2/email-marketing/metrics/batch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"broadcast_ids\": [\n \"01234567-89ab-cdef-0123-456789abcdef\"\n ]\n}")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.instantly.ai/api/v2/email-marketing/metrics/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'broadcast_ids' => [
'01234567-89ab-cdef-0123-456789abcdef'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.instantly.ai/api/v2/email-marketing/metrics/batch"
payload := strings.NewReader("{\n \"broadcast_ids\": [\n \"01234567-89ab-cdef-0123-456789abcdef\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"results": {},
"errors": {},
"meta": {
"time_range": "7d",
"granularity": "daily",
"start_date": "2026-01-29",
"end_date": "2026-02-04",
"tz_offset": 0
}
}{
"statusCode": 400,
"error": "Bad Request",
"message": "limit: must be at most 50",
"code": "VALIDATION_ERROR"
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "Missing Authorization header"
}{
"statusCode": 402,
"error": "Payment Required",
"message": "Workspace does not have an active paid plan"
}{
"statusCode": 403,
"error": "Forbidden",
"message": "Workspace suspended due to a high bounce or spam complaint rate. Please contact support.",
"code": "WORKSPACE_SUSPENDED"
}{
"statusCode": 404,
"error": "Not Found",
"message": "Not found",
"code": "NOT_FOUND"
}{
"statusCode": 408,
"error": "Request Timeout",
"message": "An internal error occurred"
}{
"statusCode": 409,
"error": "Conflict",
"message": "The resource has changed. Reload it and try again.",
"code": "CONFLICT"
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}{
"statusCode": 500,
"error": "Internal Server Error",
"message": "An internal error occurred"
}Inbound & Lifecycle: Email Metrics
Get metrics for multiple broadcasts
Returns totals for up to 50 broadcasts with a shared time range. A custom range is at most 365 days. An unknown or mistyped broadcast ID returns zeros; errors names an ID only when it belongs to another workspace and has data (not_found) or could not be read (fetch_failed).
Requires one of the following scopes: email_marketing_metrics:read, email_marketing_metrics:all, all:read, all:all
POST
/
api
/
v2
/
email-marketing
/
metrics
/
batch
Get metrics for multiple broadcasts
curl --request POST \
--url https://api.instantly.ai/api/v2/email-marketing/metrics/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"broadcast_ids": [
"01234567-89ab-cdef-0123-456789abcdef"
]
}
'import requests
url = "https://api.instantly.ai/api/v2/email-marketing/metrics/batch"
payload = { "broadcast_ids": ["01234567-89ab-cdef-0123-456789abcdef"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({broadcast_ids: ['01234567-89ab-cdef-0123-456789abcdef']})
};
fetch('https://api.instantly.ai/api/v2/email-marketing/metrics/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.instantly.ai/api/v2/email-marketing/metrics/batch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"broadcast_ids\": [\n \"01234567-89ab-cdef-0123-456789abcdef\"\n ]\n}")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.instantly.ai/api/v2/email-marketing/metrics/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'broadcast_ids' => [
'01234567-89ab-cdef-0123-456789abcdef'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.instantly.ai/api/v2/email-marketing/metrics/batch"
payload := strings.NewReader("{\n \"broadcast_ids\": [\n \"01234567-89ab-cdef-0123-456789abcdef\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"results": {},
"errors": {},
"meta": {
"time_range": "7d",
"granularity": "daily",
"start_date": "2026-01-29",
"end_date": "2026-02-04",
"tz_offset": 0
}
}{
"statusCode": 400,
"error": "Bad Request",
"message": "limit: must be at most 50",
"code": "VALIDATION_ERROR"
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "Missing Authorization header"
}{
"statusCode": 402,
"error": "Payment Required",
"message": "Workspace does not have an active paid plan"
}{
"statusCode": 403,
"error": "Forbidden",
"message": "Workspace suspended due to a high bounce or spam complaint rate. Please contact support.",
"code": "WORKSPACE_SUSPENDED"
}{
"statusCode": 404,
"error": "Not Found",
"message": "Not found",
"code": "NOT_FOUND"
}{
"statusCode": 408,
"error": "Request Timeout",
"message": "An internal error occurred"
}{
"statusCode": 409,
"error": "Conflict",
"message": "The resource has changed. Reload it and try again.",
"code": "CONFLICT"
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}{
"statusCode": 500,
"error": "Internal Server Error",
"message": "An internal error occurred"
}Authorizations
Body
application/json
Time zone offset in minutes from UTC, -720 to 840. Default 0 (UTC). An offset that is not a whole hour, such as 330 for UTC+5:30, is rounded to the hour, so counts shift by up to 30 minutes. goal_reached is summed over whole UTC days: with any offset other than 0 it can include most of a day outside the range.
Required range:
-720 <= x <= 840Example:
-300
Response
Batch metrics results keyed by broadcast ID