Get Message Reports Summary
curl --request GET \
--url https://api-ai.zixflow.com/api/data/messages/v1/reports/summary \
--header 'x-api-key: <x-api-key>' \
--header 'x-workspace-id: <x-workspace-id>'import requests
url = "https://api-ai.zixflow.com/api/data/messages/v1/reports/summary"
headers = {
"x-api-key": "<x-api-key>",
"x-workspace-id": "<x-workspace-id>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-api-key': '<x-api-key>', 'x-workspace-id': '<x-workspace-id>'}
};
fetch('https://api-ai.zixflow.com/api/data/messages/v1/reports/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-ai.zixflow.com/api/data/messages/v1/reports/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>",
"x-workspace-id: <x-workspace-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-ai.zixflow.com/api/data/messages/v1/reports/summary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("x-workspace-id", "<x-workspace-id>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-ai.zixflow.com/api/data/messages/v1/reports/summary")
.header("x-api-key", "<x-api-key>")
.header("x-workspace-id", "<x-workspace-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-ai.zixflow.com/api/data/messages/v1/reports/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
request["x-workspace-id"] = '<x-workspace-id>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Message reports summary retrieved successfully",
"data": [
{
"date": "2024-01-15",
"audience": 5000,
"submitted": 4980,
"sent": 4900,
"delivered": 4720,
"undelivered": 80,
"failed": 100,
"read": 2100,
"opened": 0,
"clicked": 340,
"bounce": 0,
"complaint": 0,
"unsubscribed": 12,
"sms_submitted": 0,
"sms_sent": 0,
"sms_delivered": 0,
"sms_undelivered": 0,
"cost": 58.4
}
]
}
{
"success": true,
"message": "Summary retrieved successfully",
"data": [
{
"date": "2026-11-18",
"sent": 120,
"cost": 18.4,
"delivered": 110,
"failed": 4,
"read": 40,
"submitted": 6
}
]
}
{
"success": false,
"message": "start_date, end_date, and channel are required"
}
{
"error": true,
"message": "Unauthorized"
}
{
"error": true,
"message": "Too many requests"
}
{
"success": false,
"message": "Internal server error. Please try again later."
}
Messages
Get Message Reports Summary
Returns aggregated messaging metrics by date
GET
/
api
/
data
/
messages
/
v1
/
reports
/
summary
Get Message Reports Summary
curl --request GET \
--url https://api-ai.zixflow.com/api/data/messages/v1/reports/summary \
--header 'x-api-key: <x-api-key>' \
--header 'x-workspace-id: <x-workspace-id>'import requests
url = "https://api-ai.zixflow.com/api/data/messages/v1/reports/summary"
headers = {
"x-api-key": "<x-api-key>",
"x-workspace-id": "<x-workspace-id>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-api-key': '<x-api-key>', 'x-workspace-id': '<x-workspace-id>'}
};
fetch('https://api-ai.zixflow.com/api/data/messages/v1/reports/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-ai.zixflow.com/api/data/messages/v1/reports/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>",
"x-workspace-id: <x-workspace-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-ai.zixflow.com/api/data/messages/v1/reports/summary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("x-workspace-id", "<x-workspace-id>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-ai.zixflow.com/api/data/messages/v1/reports/summary")
.header("x-api-key", "<x-api-key>")
.header("x-workspace-id", "<x-workspace-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-ai.zixflow.com/api/data/messages/v1/reports/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
request["x-workspace-id"] = '<x-workspace-id>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Message reports summary retrieved successfully",
"data": [
{
"date": "2024-01-15",
"audience": 5000,
"submitted": 4980,
"sent": 4900,
"delivered": 4720,
"undelivered": 80,
"failed": 100,
"read": 2100,
"opened": 0,
"clicked": 340,
"bounce": 0,
"complaint": 0,
"unsubscribed": 12,
"sms_submitted": 0,
"sms_sent": 0,
"sms_delivered": 0,
"sms_undelivered": 0,
"cost": 58.4
}
]
}
{
"success": true,
"message": "Summary retrieved successfully",
"data": [
{
"date": "2026-11-18",
"sent": 120,
"cost": 18.4,
"delivered": 110,
"failed": 4,
"read": 40,
"submitted": 6
}
]
}
{
"success": false,
"message": "start_date, end_date, and channel are required"
}
{
"error": true,
"message": "Unauthorized"
}
{
"error": true,
"message": "Too many requests"
}
{
"success": false,
"message": "Internal server error. Please try again later."
}
Description
This endpoint returns aggregated messaging metrics grouped by date. You must provide a date range and channel. Results are cached for 5 minutes for the same workspace and query. Rate limited to 10 requests per second per workspace and filter, and 100 requests per 10 seconds per IP. Forchannel=truecaller, count fields are omitted when they are 0. cost is always present. delivered includes messages that were read. submitted is the sent total minus delivered and failed.
Headers
Query Parameters
Start of the date range. RFC3339 with
Z or an offset (2026-11-01T00:00:00+05:30), or YYYY-MM-DD. Required. Sample: 2024-01-01T00:00:00Z.End of the date range. Same formats as
start_date. Required. Sample: 2024-01-31T00:00:00Z.Channel to query. Required. Possible values:
sms, whatsapp, rcs, email, push, truecaller. Sample: truecaller. An invalid value returns invalid channel: must be sms, whatsapp, rcs, email, push or truecaller.Optional delivery type filter. If omitted, metrics include all types. Possible values:
campaign, api, flow, inbox, otpflow. API sends are api. Sample: api.Response
{
"success": true,
"message": "Message reports summary retrieved successfully",
"data": [
{
"date": "2024-01-15",
"audience": 5000,
"submitted": 4980,
"sent": 4900,
"delivered": 4720,
"undelivered": 80,
"failed": 100,
"read": 2100,
"opened": 0,
"clicked": 340,
"bounce": 0,
"complaint": 0,
"unsubscribed": 12,
"sms_submitted": 0,
"sms_sent": 0,
"sms_delivered": 0,
"sms_undelivered": 0,
"cost": 58.4
}
]
}
{
"success": true,
"message": "Summary retrieved successfully",
"data": [
{
"date": "2026-11-18",
"sent": 120,
"cost": 18.4,
"delivered": 110,
"failed": 4,
"read": 40,
"submitted": 6
}
]
}
{
"success": false,
"message": "start_date, end_date, and channel are required"
}
{
"error": true,
"message": "Unauthorized"
}
{
"error": true,
"message": "Too many requests"
}
{
"success": false,
"message": "Internal server error. Please try again later."
}