Your own SMS gateway
Send survey SMS through your own SMS gateway or your own SMS provider account, with your own sender name; check it, send a test and disconnect it.
By default, survey SMS go out through Sayvara's routes. If your organisation has its own SMS gateway, or its own account with an SMS provider, you can connect it. Your contract and your sender name are then used, and your provider bills you directly.
Only owners and admins can see and change the SMS gateway. Other members see a short note instead.
Open the SMS gateway page
- Go to Channels.
- On the SMS card, select Connect or Manage.
The page SMS gateway opens.
What you need
- An account with an SMS provider, or your own gateway with an HTTPS address.
- Its API key, token or password.
- A sender name registered with that provider.
Connect a gateway
Select Connect a gateway.
In Connection, choose Your own HTTPS gateway or Twilio account.
Fill in Name and Sender name. The sender name is 3 to 11 English letters or digits, or a phone number with
+and the country code.Fill in your provider's own fields:
Connection Fields Twilio Account SID and Auth Token Your own HTTPS gateway Send address, Method, Body, Sign in with, the success and report fields, and the key Choose the Status (Draft (not used yet), On or Paused) and Which numbers (Saudi numbers (+966) or All numbers).
Select Save.
The key is stored in your organisation's vault. It is never shown again, also not to admins. When you change the gateway afterwards, leave the key empty to keep the saved one. If you change the send address to another host, enter the key again: a saved key is only sent to the host it was saved for.
Your own HTTPS gateway
In Send address and Body template, use these placeholders:
| Placeholder | Becomes |
|---|---|
{to} |
The number with + and the country code |
{to_digits} |
The number without + |
{text} |
The message |
{sender} |
Your sender name |
The address must start with https://. The body template is a JSON object. If your gateway answers with a field that
says the message was accepted, fill in Success field and Success value.
The delivery-report address and secret
Your gateway tells Sayvara whether each message arrived. What you paste depends on the connection. The page says which case applies under Delivery-report address.
- Your own HTTPS gateway: Sayvara makes a Delivery-report secret when you first save. It is shown once, in a window right after saving, together with the Delivery-report address. Paste the address into your gateway's delivery-report (callback) settings, and the secret into its signature or header setting, before you close the window.
- An address with the secret in it: for some connections, the window shows one Delivery-report address with its
secret (it ends with
?token=). Paste that full address, exactly as shown, into the callback settings. The address without?token=is refused. - Nothing to paste: for some provider accounts, the page says Nothing to paste. Sayvara gives the provider the address with each message. Do not paste the address into the provider's settings yourself: those reports are refused.
- Twilio: paste the address as the status callback. Reports are checked with your Auth Token, so no secret is shown.
- No delivery-report address: for some provider accounts, Sayvara asks the provider for each message's status.
Lost the secret? Select Change, tick Make a new delivery-report secret and save. The old secret stops working, and the new one is shown once.
Check the connection
For a provider account, select Check connection. Sayvara signs in to your account with the saved key and shows the balance when the provider gives one. Nothing is sent and nothing is charged. If the check fails, the page says why, for example that the provider did not accept the key.
Send a test SMS
- Under Send a test SMS, enter a Phone number with
+and the country code. - Choose the Language.
- Select Send test.
The test goes through this connection only, also before you turn the connection on. Your provider may charge for it. You can send up to 5 tests an hour.
Use only this gateway
Tick Use only this gateway when SMS must never go out through Sayvara's routes, also when your gateway fails. This needs All numbers. Without it, Sayvara's routes take over when your gateway fails.
Disconnect
Select Disconnect and confirm. The key and the delivery-report secret are deleted, and SMS goes back to Sayvara's routes.
Related pages
Was this page helpful?
Thanks. Need more help? Email support@sayvara.com