Twilio
The integration of Twilio with the Netmera platform positions Twilio as an outbound SMS gateway, leveraging its cloud-based communication APIs for message delivery.
Overview
Twilio is categorized as an active SMS provider integration, providing Netmera with programmatic capabilities for SMS delivery globally.

Use Cases and Benefits
Campaign SMS Delivery: Twilio can be utilized as a channel for sending bulk SMS campaigns created and segmented within the Netmera Control Panel (
Messages > Create Message > SMS).Workflow Integration: It enables the use of the "Send SMS" action within Netmera's automated workflows (Automation module), triggering SMS communication based on user events or status changes.
API-Triggered Messaging: Twilio can process transactional SMS requests that originate from the Netmera REST API.
Global Reach: As a global provider, Twilio is designed to offer programmatic SMS and voice services across various regions, expanding Netmera's potential messaging reach.
Data Flow
The Twilio integration uses an Outbound data flow:
Selection: The Netmera SmsSenderServiceImpl checks active SMS connectors based on a predefined priority list. If higher-priority connectors (such as Message Center, Mobildev, FigenSoft, Infobip, and SMSC) are inactive or unavailable, Twilio is checked next.
Execution: If selected, the dedicated Netmera adapter, SmsTwilioAdapterImpl, receives the SMS payload (recipient number and content).
API Call: The adapter authenticates using the configured accountSid and authToken and submits the message content and an approved fromAddresses number to the Twilio API endpoint via REST.
Delivery: Twilio handles the delivery of the SMS to the target mobile network.
Configuration Reference

The Twilio connector requires three primary credentials to establish a secure and functional connection:
accountSid
String
The unique account identifier for your Twilio account.
Identifies your account for API requests.
authToken
String
The authentication token/security token associated with your account.
Used for API authentication.
fromAddresses
List
A list of approved phone numbers that SMS messages will be sent from.
Must be registered and approved within your Twilio account.
The configuration is active only if the Twilio config is active and the fromAddresses list is populated.
Setup Instructions
The setup involves obtaining credentials from the Twilio platform and configuring them within the Netmera control panel.
Prerequisites: Sign up for a Twilio account and ensure you have purchased or verified the phone numbers you intend to use for sending SMS.
Obtain Credentials: Retrieve the Account SID and Auth Token from your Twilio dashboard. Note the list of verified From Addresses (phone numbers).
Configure in Netmera: Navigate to the Netmera Control Panel, access the Connectors section, and select the Twilio connector.
Input Data: Input the obtained Account SID, Auth Token, and the list of From Addresses into the configuration form.
Save: Click the Save Configuration button.
Usage Notes & Considerations
Lowest Priority Ranking: Twilio is positioned at the bottom of the Netmera SMS priority list (Rank 7 or 8), making it a secondary or tertiary choice. It will only be used if all higher-priority providers (Message Center, Mobildev, FigenSoft, Infobip, SMSC, Jet SMS) are unavailable or disabled.
Configuration Requirement: For the connector to be active and utilized, the fromAddresses list must be configured and contain valid Twilio numbers.
Phone Number Format: As with most global SMS providers, the integration relies on the recipient's phone number (
msisdn field) being registered in the Netmera user profile in the international format (e.g., starting with +CountryCode), which is necessary for successful routing via the Twilio API.Credential Management: The integration depends on the persistent validity of the authToken and accountSid. Any rotation or change to these credentials in the Twilio platform will require manual updating in Netmera to prevent delivery failures.
Last updated
Was this helpful?