Messages
List messages
List messages with optional filters for market, status, sender ID, and date range.
GET
/
v1
/
messaging
/
messages
List messages
curl --request GET \
--url https://api.example.com/v1/messaging/messagesimport requests
url = "https://api.example.com/v1/messaging/messages"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/messaging/messages', 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.example.com/v1/messaging/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/v1/messaging/messages"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/v1/messaging/messages")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/messaging/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"ok": true,
"data": [
{
"id": "msg_a1b2c3d4e5",
"status": "delivered",
"to": "+61400123456",
"sender_id": "TrackFast",
"segments": 1,
"market": "AU",
"reference": "shipment-SYD-90421",
"created_at": "2026-07-17T14:30:00+10:00",
"delivered_at": "2026-07-17T14:30:03+10:00"
},
{
"id": "msg_f6g7h8i9j0",
"status": "delivered",
"to": "+61412345678",
"sender_id": "SecurBank",
"segments": 1,
"market": "AU",
"reference": "otp-login-user-8821",
"created_at": "2026-07-17T14:28:00+10:00",
"delivered_at": "2026-07-17T14:28:02+10:00"
}
],
"pagination": {
"has_more": true,
"next_cursor": "cur_xyz789",
"page_size": 25
},
"meta": {
"request_id": "req_ghi789",
"timestamp": "2026-07-17T14:35:00+10:00"
}
}
Required permission:
messaging:read
Query parameters
string
Filter by ISO 3166-1 alpha-2 country code.
string
Filter by message status:
queued, sent, delivered, undelivered, failed, scheduled, cancelled.string
Filter by Sender ID.
string
Filter by your internal reference.
string
Start date (ISO 8601). Inclusive.
string
End date (ISO 8601). Inclusive.
string
Pagination cursor from a previous response.
integer
default:"50"
Results per page. Maximum 100.
Example
curl "https://api.senderz.ai/v1/messaging/messages?market=AU&status=delivered&from=2026-07-01&page_size=25" \
-H "Authorization: Bearer sz_live_xxxxxxxxxxxxx"
Response
{
"ok": true,
"data": [
{
"id": "msg_a1b2c3d4e5",
"status": "delivered",
"to": "+61400123456",
"sender_id": "TrackFast",
"segments": 1,
"market": "AU",
"reference": "shipment-SYD-90421",
"created_at": "2026-07-17T14:30:00+10:00",
"delivered_at": "2026-07-17T14:30:03+10:00"
},
{
"id": "msg_f6g7h8i9j0",
"status": "delivered",
"to": "+61412345678",
"sender_id": "SecurBank",
"segments": 1,
"market": "AU",
"reference": "otp-login-user-8821",
"created_at": "2026-07-17T14:28:00+10:00",
"delivered_at": "2026-07-17T14:28:02+10:00"
}
],
"pagination": {
"has_more": true,
"next_cursor": "cur_xyz789",
"page_size": 25
},
"meta": {
"request_id": "req_ghi789",
"timestamp": "2026-07-17T14:35:00+10:00"
}
}
⌘I
List messages
curl --request GET \
--url https://api.example.com/v1/messaging/messagesimport requests
url = "https://api.example.com/v1/messaging/messages"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/messaging/messages', 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.example.com/v1/messaging/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/v1/messaging/messages"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/v1/messaging/messages")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/messaging/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"ok": true,
"data": [
{
"id": "msg_a1b2c3d4e5",
"status": "delivered",
"to": "+61400123456",
"sender_id": "TrackFast",
"segments": 1,
"market": "AU",
"reference": "shipment-SYD-90421",
"created_at": "2026-07-17T14:30:00+10:00",
"delivered_at": "2026-07-17T14:30:03+10:00"
},
{
"id": "msg_f6g7h8i9j0",
"status": "delivered",
"to": "+61412345678",
"sender_id": "SecurBank",
"segments": 1,
"market": "AU",
"reference": "otp-login-user-8821",
"created_at": "2026-07-17T14:28:00+10:00",
"delivered_at": "2026-07-17T14:28:02+10:00"
}
],
"pagination": {
"has_more": true,
"next_cursor": "cur_xyz789",
"page_size": 25
},
"meta": {
"request_id": "req_ghi789",
"timestamp": "2026-07-17T14:35:00+10:00"
}
}
.jpg?fit=max&auto=format&n=IhWYk8R5R6sdJ_7C&q=85&s=7e3194d82fa9653ad2a2449b4f1a3073)