🧩 HTTPSms
An extension for MIT App Inventor 2.HTTP SMS Extension for sending SMS via httpsms.com API and retrieving delivery status through a real mobile device.
Introduction
HTTPSms enables your MIT App Inventor / Kodular apps to send and track SMS messages using a real SIM card through the HTTPSms mobile application.
Unlike traditional SMS gateways, messages are sent directly from a physical Android phone using the user’s [developer ] mobile carrier.
This extension does NOT send SMS from servers. It relies on a real device.
Prerequisites (Required)
Before using this extension, ensure the following,
-
Install the HTTPSms Android App on a physical Android phone
Download: https://httpsms.com -
The phone must be online (mobile data or Wi‑Fi) -
A working SIM card must be inserted (SMS will be sent via the carrier) -
Generate an API Key from your HTTPSms dashboard -
Battery optimization must be disabled for the HTTPSms app
Getting Your API Key
- Open https://httpsms.com
- Sign in / create an account
- Go to Dashboard → API Keys
- Copy your API Key
Click here to get your API Key: https://httpsms.com/dashboard
Set this key in the ApiKey designer or setter property.
When to Use HTTPSms
Use this extension when,
- You need real SMS delivery (OTP, alerts, confirmations)
- You want messages sent from your own phone number
- You want to avoid expensive SMS gateway fees
- You need delivery status (
delivered_atsupport)
Limitations
Requires a physical Android device
Phone must stay online and powered on
SMS speed depends on mobile carrier
Not suitable for bulk/marketing SMS
Dual‑SIM devices may require manual SIM selection
Warnings & Important Notes
- Do NOT uninstall or force‑stop the HTTPSms app
- Do NOT clear app data after linking API key
- Excessive SMS sending may trigger carrier limits
- Delivery status depends on carrier support
- This extension cannot bypass SMS regulations
Specifications
Package: com.httpsms.httpsms
Size: 19.99 KB
Minimum API Level: 14
Updated On: 2026‑01‑28
Built & documented using: FAST v5.4.0
Events (7)
1. OnSmsSent
Triggered when SMS is successfully sent

Parameters:
- messageId (text)
- status (text)
- response (text)
2. OnSmsFailed
Triggered when SMS sending fails

Parameters:
- errorMessage (text)
- errorCode (number)
3. OnDeliveryStatusReceived
Triggered when delivery status is retrieved

Parameters:
- messageId (text)
- deliveredAt (text)
- status (text)
- fullResponse (text)
4. OnStatusCheckFailed
Triggered when delivery status request fails

Parameters:
- errorMessage (text)
5. OnAllMessagesReceived
Triggered when all messages are retrieved

Parameters:
- messagesJson (text)
- count (number)
6. OnRawResponse
Triggered when raw API response is received

Parameters:
- response (text)
7. OnDeliveredAtExtracted
Triggered when delivery time is extracted

Parameters:
- deliveredAt (text)
Methods (10)
SendSms(fromNumber, toNumber, message)
Send SMS via HTTPSms API
GetDeliveryStatus(ownerNumber, contactNumber)

Retrieve delivery status between two numbers
GetAllDeliveredAtTimes(ownerNumber, contactNumber)

Get all delivery timestamps
GetMessageByIndex(ownerNumber, contactNumber, index)
Retrieve a specific message
ExtractField(jsonString, fieldName) → text
Extract any JSON field
ExtractDeliveredAtFromJson(jsonString)

Quick delivery time extraction
CountDeliveredMessages(jsonString) → number
Count delivered messages
GetFirstDeliveredAt(jsonResponse) → text
Retrieve first delivery time
IsMessageDelivered(jsonResponse) → boolean
Check delivery status
ExtractMessageContent(jsonResponse) → text
Extract message body
Designer Properties
ApiKey (string)
Your HTTPSms API key
DebugMode (boolean)
Enable debug logging (default: false)
Setters
- ApiKey(text)
- DebugMode(boolean)

Getters
-
ApiKey → text

-
DebugMode → boolean

Aix
com.httpsms.httpsms.aix (20.0 KB)
Best Practices
- Use short messages for faster delivery
- Handle OnSmsFailed properly
- Enable DebugMode during testing only
- Always validate phone numbers
Developer Notes
This extension is ideal for OTP systems, admin alerts, and personal automation apps.
It is NOT intended for spam, marketing, or mass messaging.
Happy
oding ![]()







