πŸ“±

SMS Gateway Admin

Enter your API credentials to access the panel

πŸ“± SMS Admin
android-sms-gateway
Checking…
Overview
🏠Dashboard
Messaging
βœ‰οΈSend Message
πŸ“‹Message History
Management
πŸ“²Devices
πŸ”—Webhooks
🚫Blocklist
Help
πŸ“–Setup Guide
βš™οΈAPI Reference
User: β€”
v1.36.1
Dashboard

Gateway Overview

πŸ“Š
Total
β€”
⏳
Pending
β€”
βœ…
Sent
β€”
❌
Failed
β€”

🌐 Server Health

⏳
Checking…

πŸ“² Connected Devices

πŸ“΅
Loading…

πŸ“¨ Recent Messages Last 10

Message IDRecipientsStateDevice

Send Message

βœ‰οΈ New Message

Comma-separate multiple numbers. Include country code (+880…).
0 chars β€” 0 SMS parts

πŸ’Ύ Quick Templates

Message History

Message IDRecipientsStateDeviceActions

Devices

πŸ“΅
No devices connected. Follow the Setup Guide to connect your Android phone.

Webhooks

πŸ”— Add New Webhook

Blocklist

🚫 Block a Number

Blocked numbers will be flagged before sending. You'll be warned and can choose to override.

Blocked Numbers 0

βœ…
No blocked numbers.

Device Setup Guide

πŸ“₯ Download APK

⬇ Secure APK (HTTPS) ⬇ Insecure APK (HTTP / Self-signed)

Use the Insecure APK for this local server (HTTP or self-signed SSL). Use Secure APK only with a valid HTTPS domain.

πŸ“‹ Step-by-Step Instructions

1

Install the APK on your Android phone

Download the Insecure APK on your Samsung Galaxy S25 Ultra. Enable Install from Unknown Sources:

Settings β†’ Apps β†’ Special app access β†’ Install unknown apps β†’ Browser/Files β†’ Allow

⚠️ If "Unsafe app blocked" appears, tap More details β†’ Install anyway.
2

Connect the app to your local server

Open the SMS Gateway app. Tap the menu / settings and under Server URL enter:

http://192.168.86.245/api/mobile/v1

Enter your credentials:

Username: G71F6W
Password: Gateway@12345

Tap Connect. The device will register and appear in the Devices tab.

3

Grant SMS permissions

When prompted, allow the app to Send SMS. On Android 13+ you may also need to approve the notification that appears asking for SMS permission.

4

Disable battery optimization β€” Samsung S25 Ultra

This is critical to keep the connection alive when the screen is off:

  • Settings β†’ Battery β†’ Background usage limits β†’ Sleeping apps β€” remove SMS Gateway if listed
  • Settings β†’ Apps β†’ SMS Gateway β†’ Battery β†’ Unrestricted
  • Settings β†’ Battery β†’ Adaptive Battery β€” turn OFF, or exclude SMS Gateway
  • Open Recents, long-press the SMS Gateway card β†’ tap Lock πŸ”’
βœ… You should see a persistent notification icon in the status bar confirming the foreground service is running.
5

Enable Start on Boot

In the SMS Gateway app settings, enable "Start on Boot" so it reconnects automatically after reboots.

6

Verify & test

Go to the Devices tab β€” your phone should appear as Online. Then use Send Message to send a test SMS.

πŸ”§ Troubleshooting

Device shows Offline? Open the app on the phone β€” the connection re-establishes automatically. Check battery optimization settings (Step 4).

Messages stay Pending? The phone app must be running. Confirm the persistent notification is visible in the status bar. If not, open the app and re-enable the foreground service.

401 Unauthorized? Confirm the username and password match what you see in the API Reference tab.

Cannot reach server? Ensure the phone is on the same WiFi network as the server (192.168.86.245).

API Reference

πŸ”‘ Your Credentials

API Base URL
http://192.168.86.245/api/3rdparty/v1
Username
G71F6W
Password
Gateway@12345
Auth Type
HTTP Basic Auth

πŸ“‘ Endpoints (click to expand)

GET /api/3rdparty/v1/messages List messages

Query params: limit, phoneNumber, state (pending/sent/failed)

curl -u G71F6W:Gateway@12345 \
  "http://192.168.86.245/api/3rdparty/v1/messages?limit=50&state=pending"
POST /api/3rdparty/v1/message Send a message
curl -u G71F6W:Gateway@12345 \
  -X POST http://192.168.86.245/api/3rdparty/v1/message \
  -H 'Content-Type: application/json' \
  -d '{
    "message": "Hello from API!",
    "phoneNumbers": ["+8801828021787"]
  }'

Optional: add "deviceId": "your-device-id" to target a specific device.

GET /api/3rdparty/v1/devices List connected devices
curl -u G71F6W:Gateway@12345 \
  http://192.168.86.245/api/3rdparty/v1/devices
GET /api/3rdparty/v1/webhooks List webhooks
curl -u G71F6W:Gateway@12345 \
  http://192.168.86.245/api/3rdparty/v1/webhooks
POST /api/3rdparty/v1/webhooks Register a webhook
curl -u G71F6W:Gateway@12345 \
  -X POST http://192.168.86.245/api/3rdparty/v1/webhooks \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://yourapp.com/hook","event":"message:sent"}'

Events: message:sent, message:failed, message:received

DELETE /api/3rdparty/v1/webhooks/{id} Remove a webhook
curl -u G71F6W:Gateway@12345 \
  -X DELETE http://192.168.86.245/api/3rdparty/v1/webhooks/WEBHOOK_ID
GET /health Server health check (no auth)
curl http://192.168.86.245/health