Send SMS from any language or platform with a single API call. Copy the code, replace YOUR_API_KEY, and you're ready to go.
One API call to send an SMS from your phone. Pick your language:
curl -X POST https://mysmsgate.net/api/v1/send \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"to": "+15551234567", "message": "Hello from MySMSGate!"}'
import requests
resp = requests.post(
"https://mysmsgate.net/api/v1/send",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"to": "+15551234567", "message": "Hello from MySMSGate!"}
)
print(resp.json()) # {"success": true, "sms_id": 1, "status": "pending"}
const resp = await fetch("https://mysmsgate.net/api/v1/send", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({to: "+15551234567", message: "Hello from MySMSGate!"})
});
const data = await resp.json(); // {success: true, sms_id: 1, status: "pending"}
$ch = curl_init("https://mysmsgate.net/api/v1/send");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_API_KEY",
"Content-Type: application/json"
],
CURLOPT_POSTFIELDS => json_encode([
"to" => "+15551234567",
"message" => "Hello from MySMSGate!"
])
]);
$response = json_decode(curl_exec($ch), true);
payload, _ := json.Marshal(map[string]string{
"to": "+15551234567",
"message": "Hello from MySMSGate!",
})
req, _ := http.NewRequest("POST", "https://mysmsgate.net/api/v1/send", bytes.NewReader(payload))
req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
resp, _ := http.DefaultClient.Do(req)
// HTTP 202: {"success": true, "sms_id": 1, "status": "pending"}
require 'net/http'
require 'json'
uri = URI("https://mysmsgate.net/api/v1/send")
req = Net::HTTP::Post.new(uri, {
"Authorization" => "Bearer YOUR_API_KEY",
"Content-Type" => "application/json"
})
req.body = {to: "+15551234567", message: "Hello from MySMSGate!"}.to_json
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts JSON.parse(res.body) # {"success"=>true, "sms_id"=>1, "status"=>"pending"}
Connect MySMSGate to your favorite automation platforms using webhooks.
Use the Webhooks by Zapier action to send SMS from any Zapier trigger.
https://mysmsgate.net/api/v1/sendAuthorization: Bearer YOUR_API_KEY{"to": "+1...", "message": "..."}Use the HTTP module to call the MySMSGate API.
https://mysmsgate.net/api/v1/sendAuthorization: Bearer YOUR_API_KEYto, messageUse the HTTP Request node in your n8n workflow.
https://mysmsgate.net/api/v1/sendAuthorization: Bearer YOUR_API_KEY)to and messageSend SMS directly from a Google Sheet using Apps Script.
sendSMS() or attach to a buttonfunction sendSMS() {
var sheet = SpreadsheetApp.getActiveSheet();
var phone = sheet.getRange("A2").getValue();
var message = sheet.getRange("B2").getValue();
var options = {
method: "post",
contentType: "application/json",
headers: {"Authorization": "Bearer YOUR_API_KEY"},
payload: JSON.stringify({to: phone, message: message})
};
var resp = UrlFetchApp.fetch("https://mysmsgate.net/api/v1/send", options);
Logger.log(resp.getContentText());
}
All parameters for the send endpoint:
Response (HTTP 202):
{"success": true, "sms_id": 258, "status": "pending"}
Full API documentation is available in your dashboard after signing in.
Create your account, get an API key, and send your first SMS in under 5 minutes.
Get started free