Using Messaging Services with Content Template Builder
Using a Messaging Service is not only a prerequisite of using the Content Templates, but also a great tool to organize your account and reduce complexity as your messaging application grows. To learn more about Messaging Services, click here. To create a messaging service, navigate to the Messenger section of your console.
Send Messages with a Messaging Service in the "From" field
There are multiple ways to send a template created with the Content Template Builder. One way is to add a Sender to a Messaging Service's Sender Pool and specify the Messaging Service Sid (MGXXXX...XXXX) in the send request's "From" field.
How to Add Channel Specific Senders to a Sender Pool
To add a specific channel's sender to a Messaging Service's Sender Pool, go to the Messaging Service and click edit. In the edit screen, there is a "Sender Pool" Section with the following options to add.
Phone Number
Short Code
Alpha Sender
WhatsApp Number
Facebook Messenger (Public Beta) - If you do not see this option, file a support ticket asking to enable the feature for your account: Enable the FBM messaging service setting to add FBM Senders to your existing Messaging Service. For more information read our
Facebook Messenger documentation
.
How to Send Messages with a Messaging Service in the 'From' field
On Whatsapp
curl
_10
curl -X POST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXX/Messages \
Send Messages with a Phone Number in the "From" field
Another way to send messages is to use the phone number in the from field and specify a MessagingServiceSid field. This allows you to dedicate a "From" field for compliance or any other reason. If you would like to utilize this method, you do not have to add the channel sender to the messaging service's sender pool, but a valid messaging service is still required.
How to Send Messages Without a Messaging Service in the 'From' field
On Whatsapp
curl
_10
curl -X POST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXX/Messages \