Encrypt SMS Message
Encrypt SMS Message for SMSGatewayCenter APIs
Introduction to SMSGatewayCenter APIs
Welcome to SMSGatewayCenter’s API documentation hub! This guide introduces the Encrypt SMS Message API, a key feature in our messaging suite, including SMS API for bulk messaging, WhatsApp Business API for customer engagement, Voice Call API for automated alerts, and Two-Way SMS API for interactive communication. This API supports only POST methods over HTTP, enabling you to encrypt your text messages before sending, ensuring complete privacy for sensitive communications. Ideal for developers in India, secure your corporate, banking, or priority messages with our SMS gateway at unify.smsgatewaycenter.com/signup/!
Use the Encrypt SMS Message API to encrypt your text messages, which SMSGatewayCenter’s system decrypts and sends to the operator, while storing encrypted versions in our database, system logs, and other components. This endpoint is the best solution for industries like banking, finance, fintech, and healthcare, offering end-to-end encryption, compliance with privacy standards, and secure transmission, enhancing your bulk SMS operations with unparalleled data protection.
API Endpoint
https://unify.smsgateway.center/SMSApi/encrypt
Key | Value | Description |
---|---|---|
Login Credentials (Required) | ||
Authenticate your API request using userid-password or apiKey—choose one method. | ||
userid | Your Registered Username | Your registered username; use if apiKey isn’t provided. Signup for User ID |
password | Your Password | URL-encoded password (for special characters); use if apiKey isn’t provided. Signup for API Key |
Header (optional) Parameters | ||
apiKey | Your unique apiKey | apiKey needs to be sent as HTTP header when you are not using userid-password method. You can avail this from your user control panel and use instead of userid-password HTTP Request parameter. Please do not disclose this to anyone. |
Required Parameters | ||
msg | Your text message | This is the message content which you want to send to your clients to get actual encrypted message. |
encryptKey | Your secret token | Your Message Encryption secret key value. This value should be used in header parameter. |
output | plain|json|plain | Value for response format.System default is plain. If you need responses in json or plain then you have to give value as json or plain. |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://unify.smsgateway.center/SMSApi/encrypt',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => 'userid=YourUsername&password=YourPassword&msg=Expired%3A%20Your%20Rental%20plan%20for%20SMPP%20Center's%20Software%20has%20expired%20on%2020-08-2021.%20Server%20will%20not%20be%20renewed%20%26%20you%20will%20lose%20all%20your%20data.%20SMPP%20Center&output=json',
CURLOPT_HTTPHEADER => array(
'encryptKey: xxxxxxxxxxx',
'Content-Type: application/x-www-form-urlencoded',
'Cookie: JSESSIONID=E5767779F596C8EE3029C8B59CC52EB8; SERVERID=webC1; PHPSESSID=1av8gr4qq503j222ggqjfkm4a1; PSML-VLB=unifysmsgatecenter; SERVERID=webC1; SERVERNAME=s1'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{
"status": "success",
"msg": "QjQ3NUZGOTQ3MUY4NTNDQ+poe2RJgCv6vDI7275TwWB7u6EpTIEBk4mRfsVxRMEeFHKBYz06rV6UCnitYCwhml4pFIZCKCaAY/Jhaa5O6fXUYyadM5aLcd8rSmx/iAKQxIHunXNLAfViwWHiSMqGJczGcgNpX0NP8dxz3dOMnRccnzphF6JQgL5qpI6bepAj9ehMZxQrjeQMESZ7mYXMJyY4hActLR/FyjcDCUOOO7I=",
"transactionId": "5274122124458018037",
"statusCode": "900",
"reason": "success"
}

Unlock Real-Time Messaging – Integrate Today!
Try Our API in a Sandbox Environment Before Going Live!
Join Thousands of Developers – Try Our API Now!
Get in touchSign upTestimonials
Why do Great Businesses Trust SMS Gateway Center?