Out of the box it won't be possible to send a separate request to get a token. Probably the same applies to the URL.
Is there a way to tie a sms script to each device?
Do you mean an SMS configuration per device? No, we don't support that.
I think I can accomplish what I want using home assistant to send the commands.
Hi Gibby, did you come up with a solution to this problem?
Following -https://www.traccar.org/http-sms-api/ and looking through the forums, documentation and github. I do not see a way to do https://help.1nce.com/dev-hub/reference/postaccesstokenpost to get the access token needed. It also expires every 60 minutes.
Also, once that is done, the URL for sending messages is: https://api.1nce.com/management-api/v1/sims/{iccid}/sms
Am I able to just add the iccid as an additional attribute to the devices?