Twilio Changelog | Sep. 04, 2024

Content Templates no longer need to be sent with Messaging Services

Sending Content Templates with a messaging service sid in the from or a MessagingServiceSid field is now optional!

Previously using a messaging service and specifying its sid was a requirement to use Content Templates. Now customers can send a content template by using the standard to and from fields containing a phone number with the sender prefix if relevant. 

Previous methods of sending a content template using messaging service sid will still be supported. 

Now Content Templates can be sent with the following parameters

curl -X POST "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Messages.json" \
--data-urlencode "ContentSid=HXXXXXXXXX" \
--data-urlencode "To=whatsapp:+18551234567" \
--data-urlencode "From=whatsapp:+15551234567" \
--data-urlencode "{"1": "Name"}" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
Messaging WhatsApp Business API