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

Robert Rupert 2 months 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 Tananaev 2 months ago

We don't support placeholders in the URL.

Robert Rupert 2 months ago

anyway around that?

Robert Rupert 2 months 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 Tananaev 2 months ago

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

Robert Rupert 2 months ago

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

Anton Tananaev 2 months ago

Then check my earlier comment.

Robert Rupert 2 months ago

so no way around it?