This article explains how to use SmsGateWay24 to send SMS messages to your customers using an ordinary Android smartphone and a regular SIM card. This approach is ideal for small and medium businesses that need to send service SMS — confirmations, reminders, alerts — without paying the high per-message fees of commercial SMS providers.
Difficulty level: Intermediate. You should be comfortable with basic API calls or have a developer who can help with the integration.
Commercial SMS gateways charge between $0.01 and $0.10 per message depending on the country. With your own SIM card, you pay only your mobile operator's rate — often a fraction of that. For businesses sending thousands of messages monthly, this can save hundreds or thousands of dollars.
Messages sent from a local SIM card are treated as local traffic by mobile networks, resulting in higher delivery rates compared to messages routed through international SMS aggregators. Recipients are also less likely to flag local numbers as spam.
Your SMS infrastructure is fully under your control. You are not affected by outages, pricing changes, or policy updates from third-party providers.
Install the SmsGateWay24 app on your Android device. Log in with your account credentials. The device will appear as online in your dashboard. Make sure the device stays connected to the internet (Wi-Fi recommended for reliability).
Disable Android battery optimization for SmsGateWay24 to prevent the system from killing the background service. Go to Settings → Battery → App optimization → Find SmsGateWay24 → Set to "Don't optimize".
In the SmsGateWay24 web dashboard, navigate to the Tokens section and create a new API token. Copy this token — you will use it to authenticate your API requests. Keep it secret, as it provides full access to send messages through your account.
You can send an SMS using a simple HTTP POST request. Here is an example using curl:
curl -X POST https://smsgateway24.com/api/v1/send -H "Authorization: Bearer YOUR_API_TOKEN" -H "Content-Type: application/json" -d '{
"phone": "+1234567890",
"message": "Hello! Your order #1234 has been confirmed.",
"device_id": "YOUR_DEVICE_ID"
}'
Replace YOUR_API_TOKEN with your token and YOUR_DEVICE_ID with the ID shown in your device list. The response will include a message ID that you can use to track delivery.
To send messages to a list of customers, iterate through your customer database and make an API call for each recipient. To avoid overwhelming the device, add a small delay between requests (100–500 milliseconds). The SmsGateWay24 queue will handle the messages in order.
Example in Python:
import requests, time
token = "YOUR_API_TOKEN"
device_id = "YOUR_DEVICE_ID"
customers = [
{"phone": "+1234567890", "name": "Alice"},
{"phone": "+0987654321", "name": "Bob"},
]
for customer in customers:
payload = {
"phone": customer["phone"],
"message": f"Hello {customer['name']}, your appointment is tomorrow at 10am.",
"device_id": device_id
}
r = requests.post(
"https://smsgateway24.com/api/v1/send",
headers={"Authorization": f"Bearer {token}"},
json=payload
)
print(r.json())
time.sleep(0.5)
After sending a message, SmsGateWay24 returns a message ID. You can check the delivery status by querying the messages endpoint, or configure a webhook to receive delivery status updates automatically on your server.
Check that your device is online in the dashboard. Verify that SIM card has credit and the operator allows SMS sending from the device.
Some mobile operators apply spam filters. Keep your message content professional and avoid excessive capitalization, exclamation marks, or suspicious URLs. Sending many identical messages quickly can also trigger spam filters — vary message text slightly or add a delay.