SMS Utilities API on Teltonika RUT955

Hi,

I am currently working on setting up a rule within the SMS utilities using the API on my Teltonika RUT955, but I am experiencing issues with the APIs provided here:
https://developers.teltonika-networks.com/reference/rut955/7.6/v1/sms-utilities

Could you confirm if these APIs are still in beta or if they have been released for production use? Additionally, could someone provide the complete URL path necessary to execute the API calls from the link above?

I have successfully used the basic APIs listed here without any issues:

Thank you in advance for your support!

Best regards,
Ninoslav

Hi there,

From what I’ve gathered, you’re trying to create a new SMS rule using the aforementioned API call. I can see that the developers portal you have open is for the FW version 7.6, is that what you’re using on your RUT955 as well? If so, would it be possible for you to try and upgrade your firmware to the latest available version?

To answer your question regarding if these are BETA or not, I believe they still are as there’s still the “BETA” indicator that can be seen in the corner, though we’ve had multiple clients successfully using these in production, so you shouldn’t really have any issues with that.

Finally, what kind of responses are you getting when attempting to push the config?

Regards,
M.

Hi @MatasR ,

This is my current firmware version an the last available:


Current version: RUT9_R_00.07.06.12
Last available: RUT9_R_00.07.06.17

From the link here I can not find version 7.6 which introduces the API calls I want:

This is what I get when I execute this script:

#!/bin/bash

# Read token from file
TOKEN=$(cat PAT.txt)

# Teltonika API URL
API_URL="https://rms.teltonika-networks.com/api/devices/1227829/sms_utilities/rules/config"
# Send HTTP GET request with the token
curl -X GET "$API_URL" \
     -H "Authorization: Bearer $TOKEN" \
     -H "Content-Type: application/json" \
     -o response.json  # Save response to a file

echo "Response saved to response.json"

Result:

{
  "success": false,
  "errors": [
    {
      "code": "RESOURCE_NOT_FOUND",
      "message": "Resource not found."
    }
  ]
}

Standard API calls without /sms_utilities/rules/config work as expected.

From where I can download firmwar version 7.6?

Thanks,
Ninoslav

Hi there,

If you are on 7.6.17, then there’s nothing to worry about, it is the latest available version for your device. Regarding the developers portal, you should probably use this link (although there might not be any difference, at least I haven’t noticed any): https://developers.teltonika-networks.com/reference/rut955/7.6.17/v1/sms-utilities

Regarding your script that you’re trying to run, from what I’m able to tell, you’re trying to retrieve the current configuration of the available SMS commands, not create a new one, is that what you’re trying to achieve?

I’ll contact our R&D to ask more about this as they might know more, because regarding the response you get, apparently the option does not even exist. Authorization doesn’t seem to be the issue here as you mentioned other calls work just fine.

I’ll get back to you ASAP.

Regards,
M.

Hi,

Authorization is OK because I store my access token in PAT.txt file.
You are right, I am trying to read SMS rules, just for the test because any other command from the ling I have provided is not working.
Like I said, I am not on 7.6.17 but on 7.06.12. and the latest version that is available for download is 7.06.17.
Is 7.06.17 actually 7.6.17?

Best,
Ninoslav

Sorry, looked at the wrong side of your screenshot, 7.06.17 and 7.6.17 are the same versions, I’m just skipping writing the zero for convenience’s sake. You can update to the latest version and try again if that doesn’t work - kindly wait for a response from me whenever our R&D answers my query.

Thank you,
Matas.

Hi,

Please check with your team, I a now on the 7.06.17 version and I am wondering what is the URL i need to put.

Thanks!
Ninoslav

Hi Matas,

One more thing, when I want to create API access token in RMS, I only have scope for these APIs:

I dont have possibility to choose the scope of these APIs:
https://developers.teltonika-networks.com/reference/rut955/7.6.17/v1/sms-utilities

Ninoslav

Hi there,

In short, this is the response I’ve received:

“The client seems to be using an RMS API call endpoint, that doesn’t exist. You can check available RMS API endpoints here: API Reference | Developers. Instead, for getting SMS rules configuration he should use the endpoint from the page you’ve provided here. Even though the API developers portal is still presented as BETA, the specified API endpoints work as intended.”

Here’s a screenshot for reference:

Regarding the scope of APIs, this is sort of answered in the reply that I’ve got. RMS doesn’t have some (or even most) of these calls, only those you see in the developer.rms portal. The ones that you are trying to use (eg.: SMS utilities) are separate.

Regards,
M.

Hi,

So to use sms_utilities API endpoint I need to be in the same network as RUT955 since there is the IP address specified in the URL provided in your answer above, and there is not other way to use them remotely? For that I don’t need any access tokens?

Regards,
Nino

Hi there,

You can also make calls using the Public IP (or DDNS) of the device if you have one.

Access tokens are needed always.

Regards,
M.

Hi,

Ok, but in my RMS when I generate access token, there are no sms_utilities in the scope of the token.

Ninoslav

Hi there,

As seen in the developer.rms portal, “sms_utilities” is not present in the scope, that, I believe, is intended to be the case. As mentioned earlier, if you want to set up SMS utilities using API calls, you’ll have to refer to the Developers portal.

Kind regards,
M.

Hi Matas,

You are not getting what I am saying, when I go to my RMS portal and want to create the access token

under the scopes there are no API calls like sms_utilities and others.

Ninoslav

As mentioned,

SMS utilities are not a part of the scope where you’re looking.

Regards,
M.

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