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.

Traccar SMS Gateway

Replace IP address with your phone's IP address.

<entry key='notificator.types'>web,mail,sms</entry>
<entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
<entry key='sms.http.url'>http://IP_ADDRESS:8082/</entry>
<entry key='sms.http.authorization'>API_KEY</entry>
<entry key='sms.http.template'>
    {
        "to": "{phone}",
        "message": "{message}"
    }
</entry>

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>

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>