RUT241 SMS list, read og write

Trying the curl based GET requests, they all fails with the “bad username or password” I know I have succeeded in doing just that, but now i cannot reproduce it.
What could be wrong?

Hello,

Thank you for reaching out.

If you’re still encountering the “bad username or password” error despite knowing the credentials are correct, it might be helpful to confirm a few things:

  1. Is it possible to retrieve the SMS list via HTTP requests, like the one you’re trying:
http://192.168.1.1/cgi-bin/sms_list?username=user1&password=user_pass

For more detailed information, you can refer to the relevant wiki article here to confirm the correct POST/GET request format and syntax.

  1. API Call for SMS List
    For retrieving the SMS list, you can also use a more specific API endpoint, which would be:
api get /messages/status

You can find full documentation and all available API call endpoints here: Teltonika Networks API Documentation.

Let me know if you need further assistance or clarification!

Best regards,

I have been looking for the API alternative. However, I cannot find the API’s regarding SMS’es in the documentation you are referring to.

Will this api get/messages/status give me a list of available messages to retrieve? And what are the API’s for reading, deleting and sending SMS’es?

Hello,

The api get /messages/status API call will provide all saved messages and their content in JSON format.

For sending SMS, the api post /messages/actions/send API call should be used.

All necessary information regarding the RUT241 Messages API documentation can be found here: Teltonika Networks Web API

Feel free to reach out if you have any additional questions.

Best regards,

1 Like

Using the api alternative, I am able to login - I get a token which I use in the next call to /api/messages/status. This call returns a 401 response.

This indicates for me that there are som basic problems regarding the SMS implemetation in the modem. No matter which method I use.

Now I know the credentials are good as I receive the access token.
What can I do?

At last, I found my bug. Forgive me for my noise. Your unit works as i t should.

1 Like