List SMS
List SMS #
GET /v1/sms/messagesList the SMS your organization sent, one page at a time.
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page |
integer | 1 | Page number. |
per_page |
integer | 15 | Items per page, 100 at most. |
started_at |
datetime | today 00:00:00 | Start of the period (YYYY-MM-DD HH:MM:SS). |
ended_at |
datetime | today 23:59:59 | End of the period (YYYY-MM-DD HH:MM:SS). |
Example request
const credentials = btoa('ACCESS_KEY:ACCESS_SECRET');
const res = await fetch('https://api.callistosignal.com/v1/sms/messages?page=1&per_page=50', {
headers: { 'Authorization': 'Basic ' + credentials }
});
$ch = curl_init('https://api.callistosignal.com/v1/sms/messages?page=1&per_page=50');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => 'ACCESS_KEY:ACCESS_SECRET',
]);
$response = curl_exec($ch);
curl -u 'ACCESS_KEY:ACCESS_SECRET' \
'https://api.callistosignal.com/v1/sms/messages?page=1&per_page=50'
The response has the same paginated shape as the OTP list: items, total, per_page, current_page, next, previous, total_pages.