Simbase SMS Gateway Error The template variable 'phone' has no value

Robert Rupert5 days ago

Getting error

<entry key='sms.http.url'>https://api.simbase.com/v2/sims/{phone}/sms</entry>
<entry key='sms.http.method'>POST</entry>
<entry key='sms.http.headers'>Content-Type: application/json;Authorization: Bearer MYAPI</entry>
<entry key='sms.http.template'>{
  "iccid": "{phone}",
  "message": "{message}",
  "source_address": "Traccar"
}</entry>

I have added the iccid in the phone number field in each device.

Anton Tananaev5 days ago

We don't support placeholders in the URL.

Robert Rupert5 days ago

anyway around that?

Robert Rupert5 days ago

tried this but get error "message": "Resource not found"}

<entry key='sms.http.url'>https://api.simbase.com/v2/sms</entry>
<entry key='sms.http.method'>POST</entry>
<entry key='sms.http.headers'>Content-Type: application/json;Authorization: Bearer MYAPI</entry>
<entry key='sms.http.template'>{
  "iccid": "{phone}",
  "message": "{message}",
  "source_address": "Traccar"

What am I missing trying to send a custom command via sms to a tracker to send config

Anton Tananaev5 days ago

You cannot just make up random endpoints. Which one is the correct one?

Robert Rupert5 days ago

https://api.simbase.com/v2/simcards/{iccid}/sms

Anton Tananaev5 days ago

Then check my earlier comment.

Robert Rupert5 days ago

so no way around it?