1NCE SMS API setup help

gibbya year ago

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?

Anton Tananaeva year ago

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.

gibbya year ago

Is there a way to tie a sms script to each device?

Anton Tananaeva year ago

Do you mean an SMS configuration per device? No, we don't support that.

gibbya year ago

I think I can accomplish what I want using home assistant to send the commands.

Paul10 months ago

Hi Gibby, did you come up with a solution to this problem?