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

Robert Ruperta month 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 Tananaeva month ago

We don't support placeholders in the URL.

Robert Ruperta month ago

anyway around that?

Robert Ruperta month 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 Tananaeva month ago

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

Robert Ruperta month ago

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

Anton Tananaeva month ago

Then check my earlier comment.

Robert Ruperta month ago

so no way around it?