Send SMS messages using RUT241 in Node-RED

I have a RUT241 used as a network router and need to use it to send SMS alarm messages generated in a Node-RED environment. The current firmware on the RUT241 is 7.15. The Teltonika developer site has the following code that must be used.

{ “data”: { “number”: “string”, “message”: “string”, “modem”: “string” } }

I have spoken with tech support and they have informed me that I must use the following command to login to the RUT241 to allow the message to be sent.

https:///api/login -H “Content-Type: application/json” -d “{\“username\”:\“admin\”,\“password\”:\“PASSWORD*\”}”

I have done this in windows command prompt using the curl command and have received a json response with a token and active time in it.

I have not been able to put the items together to a successful message send. Any suggestions, please and thank you.

According to the event log on the RUT241, I have successfully sent an SMS message using the API. I have not received the message on my phone. The following is the log entries.

394 2025-10-30 16:09:51 SMS Events Info Sent 1 PDUs to +160000000
393 2025-10-30 16:09:50 Web UI Connections Notice User “admin” successfully authenticated on HTTP from 192.168.251.9 to 192.168.251.1
392 2025-10-30 16:04:52 CONFIG Events Notice User “admin” changed Sms_gateway configuration in “/services/mobile_utilities/sms_gateway/sms_forwarding” page
391 2025-10-30 16:04:18 Web UI Connections Notice User “admin” successfully authenticated on HTTP from 192.168.255.10 to 192.168.251.1
390 2025-10-30 15:58:23 SMS Events Info Sent 1 PDUs to +16000000
389 2025-10-30 15:58:22 Web UI Connections Notice User “admin” successfully authenticated on HTTP from 192.168.251.9 to 192.168.251.1
388 2025-10-30 15:56:40 SMS Events Info Sent 1 PDUs to +160000000

I can send myself a message using the WebUI. Is there another item I am missing?

Greetings,

We are currently working on your issue and will get back to you as soon as possible.

Best Regards,
Justinas

Greetings,

Could you please check whether sending an SMS message via the API using curl works?

To do this, you’ll need to access the router’s CLI. You can find instructions here:

Once connected, authenticate using the following command:

curl -k -X POST https://192.168.251.1/api/login -H "Content-Type: application/json" -d "{\"username\":\"admin\",\"password\":\"
YOUR_PASSWORD\"}"

After you receive the authentication token from the previous command, use it to send an SMS message with this command:

curl -k -X POST https://192.168.251.1/api/messages/actions/send -H "Content-Type: application/json" -H "Authorization: Bearer AUTH_TOKEN" -d "{\"data\":{\"number\":\"+160000000\",\"message\":\"Test message\",\"modem\":\"1-1\"}}"

If this command succeeds and you receive the SMS, the issue is likely within your Node-RED environment.

Please let me know about the result.

Best Regards,
Justinas

This topic was automatically closed after 60 days. New replies are no longer allowed.