android-sms-gateway-local
Send and receive SMS/MMS via SMS Gateway for Android (android-sms-gateway / sms-gate) using Local Server mode with Basic Auth, including webhooks, inbox export, and message status checks.
Android SMS Gateway (Local)
Use this skill when working with the Android SMS Gateway app in Local Server mode. Keep the flow minimal and confirm missing inputs before calling the API.
Gather Inputs
Ask for any missing details:
- Device local IP and port (default port is 8080)
- Local Server username and password
- Action: send SMS, receive SMS (webhook), export inbox, or check status
- For sending: phone numbers, message text, optional
deviceIdandsimNumber - For receiving: webhook URL and whether HTTPS is available
- For exporting inbox:
deviceIdand a time window (since,until)
Connect and Validate
- Base URL for Local Server is
http://<device_ip>:<port>. - Local Server supports Basic Auth only; include credentials in every request.
- Validate connectivity first with
GET /health, then list devices withGET /devices.
Send SMS
- Use
POST /messageswithphoneNumbersandtextMessage.text(preferred) ordataMessageif requested. - Include
deviceIdorsimNumberwhen the user wants to target a specific device or SIM. - Use
withDeliveryReport: trueif the user needs delivery confirmation.
Receive SMS
- Register a webhook with
POST /webhooksandevent: "sms:received"(optionally scope to adeviceId). - The webhook receiver must support HTTPS for private IPs unless it is
http://127.0.0.1. - To fetch historical inbox messages, call
POST /messages/inbox/exportafter the webhook is registered.
Status Tracking
- Use
GET /messages/{id}to read the messagestateand other fields. - Consider also registering
sms:sent,sms:delivered, andsms:failedwebhooks for near-real-time status updates.
References
- Use
{baseDir}/references/api.mdfor endpoint summaries, payload shapes, and event names.
Scripts
- Use
{baseDir}/scripts/health.shand{baseDir}/scripts/list_devices.shto verify connectivity. - Use
{baseDir}/scripts/send_sms.shto send a text message. - Use
{baseDir}/scripts/get_message.shand{baseDir}/scripts/list_messages.shto check status. - Use
{baseDir}/scripts/register_webhook.sh,{baseDir}/scripts/list_webhooks.sh, and{baseDir}/scripts/delete_webhook.shto manage webhooks. - Use
{baseDir}/scripts/export_inbox.shto replay inbox messages.
- Downloads
- 3.3kAll time
- Security audit
- Review
- Last updated
- 4mo ago
- Current version
- v0.1.0
- License
- MIT-0
