403 on /messages/action/send on RUTX50

Hi!

I can successfully login at /login with a user I created in a recently created group that has allow actions on all sites.

I can do easy request as /services/status and get the data so the token is valid.

But when i try to send a sms i get

{
“success”: false,
“errors”: [
{
“source”: “Authorization”,
“code”: 120,
“error”: “Unauthorized”
}
]
}

Can’t find anything in the documentation
,https://developers.teltonika-networks.com/reference/rutx50/7.15.2/v1.7.2/messages#post-messages-actions-send, that I need to set a role or anything.

Any ideas?

Hello,

I am currently testing this issue and will come back to you once I have anything.

Regards,
M.

Hello again,

I’ve finished testing, and was unable to reproduce your issue:

  1. I’ve created a new system group
  2. I’ve created a new user in the WebUI and assigned it to the same group, giving it the same permissions as you did
  3. I’ve first authorized myself by sending an /api/login POST call.
  4. I’ve input the bearer token onto my “parent” collection directory and for the rest of the calls under it set them to “Inherit from parent” under the Authorization tab:
  5. After authorizing myself, I’ve then sent an SMS message as can be seen in the very first image, had no issues whatsoever.

Kindly double-check the steps I’ve provided to see if you haven’t missed anything, since you’re getting an authorization error, I would guess you might be running out of time due to the fact that the bearer token has an expiration date. You can make a call like this to increase the time:

Regards,
M.

Thanks for quick response.

Found the error… SMH

Did request to /messages/action/send
Instead of /messages/actions/send

Was expecting that the api endpoint wasn’t implemented if i had a bad path, got that on some other path. By bad.

Thanks again for the help :slight_smile:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.