Configure the SMS interface
The SMS interface specifies how and where to forward SMS from devices under this service policy. SMS interfaces are managed in the Device Policies section of the emnify Portal.
The following connections are available:
- Web Portal (default) - Access SMS directly in the emnify Portal
- Webhook - Configure a URL to receive SMS sent from your device
- SMPP - Set up a direct SMPP connection to emnify
Webhook
You can use the SMS webhook to receive SMS and delivery notifications in your application.
Add webhook
-
In Service Policies, choose the policy you want to update and expand the policy details.
-
In SMS, find the SMS interface section. By default, the badge next to the section title reads Web Portal.
-
Click Edit to open the SMS console settings configuration modal.
-
In the SMS console list, select Webhook.
-
In Add Webhook to forward SMS to, provide the following:
- In the URL field, enter the public URL of your server to receive API requests.
- In the Secret key field, enter a key to prevent unauthorized access and your server can decline requests if the key is incorrect.
-
Review your configuration, then click Add Webhook.
The secret key isn't displayed after you add the webhook. Keep this key in a safe place.
When you want to send an SMS from the device to your application, your device should send the SMS to an invalid MSISDN with seven digits or less.
Edit webhook
- In Service Policies, choose the policy you want to update and expand the policy details.
- In SMS, find the SMS interface section with the Webhook badge.
- Click Edit to open the SMS console settings configuration modal.
- In Add Webhook to forward SMS to, edit the URL or remove the Secret key. You can also click Reset all to clear both fields.
- Review and select Save changes.
SMPP
Short Message Peer-to-Peer (SMPP) is a protocol that the telecommunication industry uses to exchange SMS messages between short message service centers (SMSC) and external short messaging entities (ESME). Telematics platforms, SMS services, and operators often use SMPP to enable sending SMS to and from devices.
Configure SMPP as your SMS interface
- In Service Policies, choose the policy you want to update and expand the policy details.
- In SMS, find the SMS interface section. By default, the badge next to the section title reads Web Portal.
- Click Edit to open the SMS console settings configuration modal.
- In the SMS console list, select SMPP. When you select SMPP, you're given a SMPP Server, Workspace ID, and SMPP Password.
- Review and select Add SMPP.
The SMPP Password isn't displayed again, so store it in a safe place.
For an example of integrating SMPP with a third-party application, see emnify SMS via SMPP integration with Gurtams' flespi and Wialon.
Reset the SMPP password
- In Service Policies, choose the policy you want to update and expand the policy details.
- In SMS, find the SMS interface section with the SMPP badge.
- Click Edit to open the SMS console settings configuration modal.
- In SMPP details, click Reset next to SMPP Password.
- Review and select Save changes.
The SMPP password isn't displayed again, so store it in a safe place.