SignalWire

Before you configure SignalWire as the SMS sender, ensure that you meet the following prerequisites:

  • In SignalWire, create a project, choose a sub-domain (part of the sign-up process), and obtain the Direct Inward Dialing (DID) number.

  • Create an API token, obtain the Project Key and Token to configure in the SMS sender policy of the Advanced Authentication Administration portal.

To configure SignalWire as the SMS sender perform the following steps:

  1. Select Generic from Sender service.

  2. Specify a Service URL value.

    For example, https://{yourdomain}.signalwire.com/api/laml/2010-04-01/Accounts/{project key}/Messages.json

  3. Specify the Project Key (obtained from SignalWire) in HTTP Basic Authentication Username.

  4. Specify the Token (obtained from SignalWire) in HTTP Basic Authentication Password.

  5. Select POST from HTTP request method.

  6. Select the required content type in HTTP request content type to send the HTTP request to the service provider. The supported options are:

    • URL encoded

    • JSON

  7. If you want to send the HTTP request in the URL encoded type, perform the following steps:

    1. Select URL Encoded in the HTTP request content type.

    2. Click Add and create the following parameters in HTTP request body.

      • Parameter Name: to

        Parameter Value: {phone}

      • Parameter Name: from

        Parameter Value: DID number of your SignalWire project.

      • Parameter Name: body

        Parameter Value: {message}

  8. If you want to send the HTTP request in the JSON type, perform the following steps:

    1. Select URL Encoded in the HTTP request content type.

    2. Enter the HTTP request in the JSON template.

      For example, {"to":"{{phone}}"'"message":"{{message}}"}

      where,

      • {{phone}}: Recipients phone number

      • {{message}}: Message body

NOTE:

  • The parameters may differ for different SMS service providers. But the {phone} and {message} variables are mandatory.

  • Ensure that the from phone number is in E.164 format. Number in this format starts with a plus (+) symbol and the country code.

    For example, if India based phone number is (91) 123-4567 then the E.164 formatted number is +911234567.

For more information, see SignalWire API reference.