I would like to know what is the process to follow to send an SMS via Teltonika RMS API using your PAT (Personal Access Tokens) ?
I am confused by the API documentation which provides multiple endpoints without clarifying the specific one to be used for SMS sending and unfortunately, I could not find anywhere a clear example of a step-by-step process to follow for sending SMS with the RMS API.
Many thanks for your answer and clear instructions. This indeed worked perfectly on my local network.
Do you have any idea on how I can use an endpoint which does not rely on my local network? For example FOTA provides an endpoint which you can use for Teltonika GPS devices management. Is there a similar endpoint to access the Router and send SMS messages without being connected to my local network?
Then you need the following message body:
{ "command": "api POST /messages/actions/send '{\"data\":{\"number\":\"0037060000000\",\"message\":\"Test\",\"modem\":\"3-1\"}}'"
}