HTTP SMS API

As an alternative to SMPP SMS gateway option, starting from Traccar version 4.2, it's possible to use more common HTTP APIs for SMS notifications. See configuration examples for various services below.

Twilio

Replace account SID, token, and source phone number with correct values. Note that phone number has to be URL encoded.

<entry key='notificator.types'>web,mail,sms</entry>
<entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
<entry key='sms.http.url'>https://api.twilio.com/2010-04-01/Accounts/[YOUR ACCOUNT SID]/Messages.json</entry>
<entry key='sms.http.user'>[YOUR ACCOUNT SID]</entry>
<entry key='sms.http.password'>[YOUR AUTH TOKEN]</entry>
<entry key='sms.http.template'>
    From=[YOUR PHONE NUMBER]&amp;To={phone}&amp;Body={message}
</entry>

SmsGateway.me

Replace token with appropriate value for your account.

<entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
<entry key='sms.http.url'>https://smsgateway.me/api/v4/message/send</entry>
<entry key='sms.http.authorization'>[YOUR AUTH TOKEN]</entry>
<entry key='sms.http.template'>
    [{
        "phone_number": "{phone}",
        "message": "{message}",
        "device_id": 1
    }]
</entry>

BulkSMS.com

Replace token id and token secret with appropriate values for your account.

<entry key='notificator.types'>web,mail,sms</entry>
<entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
<entry key='sms.http.url'>https://api.bulksms.com/v1/messages</entry>
<entry key='sms.http.user'>[YOUR TOKEN ID]</entry>
<entry key='sms.http.password'>[YOUR TOKEN SECRET]</entry>
<entry key='sms.http.template'>
    {
        "to": "{phone}",
        "body": "{message}"
    }
</entry>