Skip to content

SMS Reports

Retrieve paginated SMS message history including both sent and received messages. Filter by direction (inbound/outbound), sending mode, and search string. Results include message content, delivery status, cost, and timestamps.

Get SMS messages

Request

Retrieve a paginated list of sent and received SMS messages. Filter by direction, sending mode, and search string.

Security
apikeyAuth
Query
pageinteger

Zero-based page index.

Default:0
Example:page=0
sizeinteger

Number of records per page.

Default:20
Example:size=20
searchStringstring or null

Filter by phone number or message content.

Example:searchString=john
directionstring or null

Filter by message direction (OUTGOING or INCOMING).

Enum:"OUTGOING""INCOMING"
Example:direction=OUTGOING
modestring or null

Filter by sending mode (DIRECT for standalone SMS, FALLBACK for WhatsApp-to-SMS fallback).

Enum:"DIRECT""FALLBACK"
Example:mode=DIRECT
curl -i -X GET \
  'https://docs.ecommunicate.co.za/_mock/apis/omnichannel/whatsapp-api-service/SMSSendReceiveMessages/getSMSSendReceiveMessagesForCurrentLoginUser?page=0&size=20&searchString=john&direction=OUTGOING&mode=DIRECT' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

Paginated list of SMS messages matching the specified filters

Bodyapplication/json
contentArray of objects(SMSSendReceiveMessage)
totalElementsinteger
Example:100
totalPagesinteger
Example:10
sizeinteger
Example:10
numberinteger
Example:0
Response
{ "content": [ … ], "totalElements": 100, "totalPages": 10, "size": 10, "number": 0 }