Check SMS or MMS Status with API

The Connective Mobile API allows you to check the status of an SMS or MMS sent with our API.

Base Url

The base URL is:
https://sms.connectivemobile.com/api/2.0/StatusCheck/

The API is served over HTTPS. To ensure data privacy, unencrypted HTTP access is not permitted.

Check SMS or MMS Status

Checking a message status is accomplished by POST-ing to the base URL.

https://sms.connectivemobile.com/api/2.0/StatusCheck/

POST Parameters

All Parameters are required

API_Key – The API Key associated with your account.

Msg_ID – The Message ID assigned when the message was sent using the API.

Status Check API Response

All calls to the SMS,MMS API will return a json encoded array with an error number and error message response.

{"error_number":"0","error_message":"11-1418791791.3425-16420"}

Response numbers and error codes can be looked up on the API Error Codes page.

PHP Example


$params = array();
$params['Msg_ID'] = 'ENTER MESSAGE ID HERE';
$params['API_Key'] = 'ENTER API KEY HERE';
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,'https://sms.connectivemobile.com/api/2.0/StatusCheck/');
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,$params);
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch,CURLOPT_HEADER,0); // DO NOT RETURN HTTP HEADERS
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); // RETURN THE CONTENTS OF THE CALL
$received_data = curl_exec($ch);
if (curl_errno($ch)) {
echo curl_error($ch);
} else {
echo $received_data;
}
curl_close($ch);