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

Robert Rupert last year

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 last year

We don't support placeholders in the URL.

Robert Rupert last year

anyway around that?

Robert Rupert last year

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 last year

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

Robert Rupert last year

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

Anton Tananaev last year

Then check my earlier comment.

Robert Rupert last year

so no way around it?