To proceed with troubleshooting in a deterministic way, could you please provide the information below? Each item directly maps to an authorization or validation step enforced by RutOS.
User role and permissions
Is the API login performed using the built-in admin user, or a custom user?
If a custom user is used, please confirm that it has full WebUI/API permissions , specifically:
Messages (SMS) access
JWT token verification
Please confirm whether the JWT token returned by /api/login is used unchanged in the request.
If possible, provide:
Token expiration (exp ) value
Whether the failing request is made before token expiry
Also confirm that the header is sent exactly as:
Authorization: Bearer <token>
Full request details
Please share:
Full HTTP request headers (excluding password/token if needed)
Full JSON payload sent to /api/messages/actions/send
HTTP status code returned by the router (e.g. 401, 403)
Modem identification
Please confirm the exact modem ID used in the payload (e.g. "1-1" ).
Additionally, provide the output of the modem status endpoint you are using to obtain this ID (API path + response).
Router diagnostics
To rule out server-side authorization rejection, please provide:
Output of:
logread | grep -i sms
logread | grep -i api
Firmware
Does the same issue occur using both 07.18.3 and 07.20 versions?
taken immediately after a failed request.
Confirmation whether sending an SMS from the WebUI Messages page works on the same router.
Once these details are available, we can investigate further.