Get Message Report Logs
curl --request GET \
--url https://api-ai.zixflow.com/api/data/messages/v1/reports/logs \
--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/logs"
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/logs', 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/logs",
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/logs"
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/logs")
.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/logs")
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 report logs retrieved successfully",
"data": [
{
"recipient": "+15551234567",
"status": "delivered",
"sent_at": "2024-01-15T10:30:00Z",
"delivered_at": "2024-01-15T10:30:08Z",
"cost": 0.012,
"refunded": 0,
"message_count": 1,
"failed_reason": "",
"remark": "",
"platform": "whatsapp",
"phone_number": "123456789",
"bot_id": "",
"sender_id": "",
"route": "",
"from_email": "",
"from_name": "",
"subject": "",
"buttons": ["Track order"],
"people": {
"id": "65f1a2b3c4d5e6f7a8b9c0d2",
"name": "Jane Doe"
}
}
],
"pagination": {
"size": 3,
"pageSize": 50,
"count": 120
}
}
{
"success": true,
"message": "Logs retrieved successfully",
"data": [
{
"recipient": "+14155552671",
"status": "Delivered",
"cost": 0.15,
"sent_at": "2026-11-18T10:14:00Z",
"delivered_at": "2026-11-18T10:15:00Z",
"bot_id": "665f1c2a8e4b9a0012ab34cd",
"sender": "+18005550199",
"sender_type": "phone_number",
"message_type": "TEXT",
"buttons": []
}
],
"pagination": {
"size": 3,
"pageSize": 50,
"count": 120
}
}
{
"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 Report Logs
Returns paginated delivery logs
GET
/
api
/
data
/
messages
/
v1
/
reports
/
logs
Get Message Report Logs
curl --request GET \
--url https://api-ai.zixflow.com/api/data/messages/v1/reports/logs \
--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/logs"
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/logs', 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/logs",
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/logs"
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/logs")
.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/logs")
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 report logs retrieved successfully",
"data": [
{
"recipient": "+15551234567",
"status": "delivered",
"sent_at": "2024-01-15T10:30:00Z",
"delivered_at": "2024-01-15T10:30:08Z",
"cost": 0.012,
"refunded": 0,
"message_count": 1,
"failed_reason": "",
"remark": "",
"platform": "whatsapp",
"phone_number": "123456789",
"bot_id": "",
"sender_id": "",
"route": "",
"from_email": "",
"from_name": "",
"subject": "",
"buttons": ["Track order"],
"people": {
"id": "65f1a2b3c4d5e6f7a8b9c0d2",
"name": "Jane Doe"
}
}
],
"pagination": {
"size": 3,
"pageSize": 50,
"count": 120
}
}
{
"success": true,
"message": "Logs retrieved successfully",
"data": [
{
"recipient": "+14155552671",
"status": "Delivered",
"cost": 0.15,
"sent_at": "2026-11-18T10:14:00Z",
"delivered_at": "2026-11-18T10:15:00Z",
"bot_id": "665f1c2a8e4b9a0012ab34cd",
"sender": "+18005550199",
"sender_type": "phone_number",
"message_type": "TEXT",
"buttons": []
}
],
"pagination": {
"size": 3,
"pageSize": 50,
"count": 120
}
}
{
"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 paginated delivery logs. You must provide a date range and channel. Results are cached for 5 seconds 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. Early Truecaller failures (bad recipient, unknown bot) still produce a log.sender, sender_type, and message_type are empty on those rows because the bot was never loaded. bot_id is the id that was sent.
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.Optional delivery status filter. Lowercase status names from the delivery report:
submitted, queue, sent, delivered, read, failed, clicked, opened, unsubscribed, bounced, complained, spam, blocked. If omitted, logs for all statuses are returned. Sample: delivered.Optional delivery type filter. If omitted, logs for all types are returned. Possible values:
campaign, api, flow, inbox, otpflow. Sample: campaign.Optional recipient search term (phone or email). If omitted, no search filter is applied. Sample:
+1555.Response
The delivery status of the message. For Truecaller the first letter is uppercase:
Sent, Delivered, Failed, Read, and the other statuses.RFC3339 timestamp when the message was delivered. Omitted when unset. For Truecaller, statuses other than submitted, queue, and sent fall back to
sent_at when there is no delivered time.Failure reason when the message was not delivered. For Truecaller, present when status is
Failed: the delivery message, otherwise the vendor message.Button labels associated with the message, when applicable. The Truecaller send path records an empty list at queue time, so this is often
[].The page size used for this request. The query parameter is
page_size. The response field is pageSize.{
"success": true,
"message": "Message report logs retrieved successfully",
"data": [
{
"recipient": "+15551234567",
"status": "delivered",
"sent_at": "2024-01-15T10:30:00Z",
"delivered_at": "2024-01-15T10:30:08Z",
"cost": 0.012,
"refunded": 0,
"message_count": 1,
"failed_reason": "",
"remark": "",
"platform": "whatsapp",
"phone_number": "123456789",
"bot_id": "",
"sender_id": "",
"route": "",
"from_email": "",
"from_name": "",
"subject": "",
"buttons": ["Track order"],
"people": {
"id": "65f1a2b3c4d5e6f7a8b9c0d2",
"name": "Jane Doe"
}
}
],
"pagination": {
"size": 3,
"pageSize": 50,
"count": 120
}
}
{
"success": true,
"message": "Logs retrieved successfully",
"data": [
{
"recipient": "+14155552671",
"status": "Delivered",
"cost": 0.15,
"sent_at": "2026-11-18T10:14:00Z",
"delivered_at": "2026-11-18T10:15:00Z",
"bot_id": "665f1c2a8e4b9a0012ab34cd",
"sender": "+18005550199",
"sender_type": "phone_number",
"message_type": "TEXT",
"buttons": []
}
],
"pagination": {
"size": 3,
"pageSize": 50,
"count": 120
}
}
{
"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."
}