Overview

This request will return a list of replies received for an SMS message.

The Method

API-Method
RESTGEThttps://[YourURL]/api/2.0/sms_actions/replies/$message_id
XML-RPCCallsms.GetSmsReplies

Your method must be structured as follows:

Parameters

This request only has one required parameter:

PropertyTypeDescriptionRequired
$message_idintegerThe ID of the SMS message to get replies for.yes

Responses

TypeDescription
arrayAn array of replies.

Code Samples

PHP (using REST API):

$url = '(Your URL)/api/2.0/sms_actions/replies/:message_id';
$method = 'GET';
$cSession = curl_init();
$headers = array();
$auth = base64_encode($username . ':' . $apikey);
$headers[] = 'Authorization: Basic ' . $auth;
curl_setopt($cSession, CURLOPT_URL, $url);
curl_setopt($cSession, CURLOPT_RETURNTRANSFER, true);
curl_setopt($cSession, CURLOPT_HEADER, false);
curl_setopt($cSession, CURLOPT_CUSTOMREQUEST, strtoupper($method));
curl_setopt($cSession, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($cSession);
curl_close($cSession);