Send Hashed SMS
The Send Hashed SMS API allows you to send SMS messages with your message content hashed for secure transmission. This endpoint is useful when you need to add an extra layer of security to your message delivery.
POST Method
Endpoint
https://send.macrologicsys.com/api/services/sendhashed
Request Body
{
"apikey": "{{apikey}}",
"partnerID": "{{partnerID}}",
"messagehash": "{{messagehash}}",
"shortcode": "{{shortcode}}",
"mobile": "{{mobile}}"
}
Sample Success Response
{
"responses":[
{
"response-code": 200,
"response-description": "Success",
"mobile": "xxxxxxxxxxxxx",
"messageid": "xxxxxxxxxxx",
"networkid": 1
}
]
}
Sample Error Response
{
"response-code": 1006,
"response-description": "Invalid credentials"
}
Code Examples
PHP
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://send.macrologicsys.com/api/services/sendhashed",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode([
"apikey" => "{{apikey}}",
"partnerID" => "{{partnerID}}",
"messagehash" => "{{messagehash}}",
"shortcode" => "{{shortcode}}",
"mobile" => "{{mobile}}"
]),
CURLOPT_HTTPHEADER => ['Content-Type: application/json']
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
Python
import requests
import json
url = "https://send.macrologicsys.com/api/services/sendhashed"
payload = {
"apikey": "{{apikey}}",
"partnerID": "{{partnerID}}",
"messagehash": "{{messagehash}}",
"shortcode": "{{shortcode}}",
"mobile": "{{mobile}}"
}
headers = {
"Content-Type": "application/json"
}
response = requests.post(url, data=json.dumps(payload), headers=headers)
print(response.json())
Last Updated: 2/24/2025 | Contributors: Macrologic API Team