Send SMS from Node-RED with SimGate
Connect SimGate to Node-RED using a standard HTTP request node. Send texts from any flow — IoT events, sensor thresholds, schedules — from your own SIM.
SMS from Node-RED flows
Node-RED's HTTP request node can call any REST API, so adding SimGate SMS to a flow is a matter of minutes — no custom node to install, no cloud dependency to manage.
This fits naturally with the Node-RED audience: self-hosters, home automation builders, and IoT engineers who already run their own stack and want SMS alerts from a device they control rather than a third-party SIM they rent.
Wire SimGate into Node-RED
Add a trigger node
Start with any input: inject, MQTT, sensor, webhook, or a Home Assistant event node.
Add a function node (optional)
Use a Function node to build the message text from your trigger payload — e.g. format a sensor value or event name.
Add an HTTP request node
Set Method to POST, URL to https://api.simgate.app/v1/sms/send. Under Headers add x-api-key with your SimGate key and Content-Type: application/json.
Set the body
In the function node upstream, set msg.payload to {"deviceId": "...", "phoneNumber": "+1234567890", "message": "..."}. The HTTP request node sends msg.payload as the request body.
Function node payload
1// Function node — runs before the HTTP request node2msg.payload = {3deviceId: "android-5q15b182f2704gbz",4phoneNumber: "+1234567890",5message: "Alert: " + msg.payload.sensorName +6" reading " + msg.payload.value + msg.payload.unit,7};8msg.headers = {9"x-api-key": "<your-simgate-api-key>",10"Content-Type": "application/json",11};12return msg;
Build the payload in a Function node, then pass msg to the HTTP request node.
Common Node-RED + SimGate flows
- Temperature or humidity sensor threshold alerts
- Motion detector or door/window sensor notifications
- Home Assistant automation SMS when someone arrives or leaves
- Server or container health alerts from a local Docker stack
- Daily status digest triggered by an inject node on a schedule
Frequently asked questions
Do I need to install a Node-RED SimGate node?
No — the built-in HTTP request node is all you need. SimGate is a standard REST API.
Does this work on a Raspberry Pi?
Yes. Node-RED running on a Raspberry Pi can call the SimGate API over your local network or the internet. Just make sure the Pi has outbound HTTPS access.
Can I receive inbound SMS into Node-RED?
Yes — expose a Node-RED HTTP input node to the internet (or use a tunnel like ngrok), set that URL as your SimGate inbound webhook, and reply SMS events will flow directly into your Node-RED flow.
Where should I store the SimGate API key?
Store it as a Node-RED environment variable and reference it with env.get('SIMGATE_API_KEY') in your Function node, rather than hardcoding it in the flow JSON.
Keep exploring
Turn your phone into an SMS API
Send and receive SMS from your own SIM at a flat monthly price. Install the app, connect a device, and call the API in minutes.
Start free