Skip to main content
WhatsApp Business Platform

Trusted WhatsApp messaging at scale

Deliver data-driven customer engagement globally with WhatsApp messaging—powered by Twilio.

Illustration of data-driven engagement globally with WhatsApp messaging

Engagement solutions

Software and APIs to meet any of your
customer engagement needs

Transactional messaging

Send one-way WhatsApp messages with an API for alerts and notifications, promotions, and marketing messages.

Try the Programmable Messaging API

Conversational messaging

Use WhatsApp for conversations with a single API for customer care and conversational commerce.

Explore the Conversations API

Contact center

Serve customers with personalized experiences over WhatsApp, or other popular channels like email, voice, SMS, and more.

Discover Twilio Flex

Mobile sales engagement

Build lasting customer relationships on any channel with a programmable, mobile-first application for sales teams.

Try Twilio Frontline

Personalized communications

Own your data and deliver highly targeted, personalized communications across WhatsApp and any other channel.

Learn about Twilio Segment

Account verification

Fight fraud and build customer trust by verifying users over WhatsApp, SMS, voice, email, push, and OTPs.

Explore Twilio Verify

messaging-customer-quote-portrait.png

“After analyzing several solutions, we felt that Twilio had the stability we needed, with security, high performance, and infrastructure. Not to mention that we could also explore other communication solutions, leaving our operation centralized in one partner.”

Vinícius Reis, Tech Lead
messaging-customer-quote-portrait.png

“If you're talking about building WhatsApp infrastructure and architecture, it would seem crazy—you need way more than two developers. But, because Twilio is so easy to build with, we were able to do it with two developers, and quickly.”

Connor Cirillo, Senior Conversational Marketing Manager

Developer resources

Create a WhatsApp message
  • Node.js
  • C#
  • PHP
  • Ruby
  • Python
  • Java
  • curl
  • twilio-cli
//Downloadthehelperlibraryfromhttps://www.twilio.com/docs/node/install//FindyourAccountSIDandAuthTokenattwilio.com/console//andsettheenvironmentvariables.Seehttp://twil.io/secureconstaccountSid=process.env.TWILIO_ACCOUNT_SID;constauthToken=process.env.TWILIO_AUTH_TOKEN;constclient=require('twilio')(accountSid,authToken);client.messages.create({body:'This is a message that I want to send over WhatsApp with Twilio!',from:'whatsapp:+14155238886',to:'whatsapp:+15005550006'}).then(message=>console.log(message.sid));
// Install the C# / .NET helper library from twilio.com/docs/csharp/installusingSystem;usingTwilio;usingTwilio.Rest.Api.V2010.Account;classProgram{staticvoidMain(string[]args){// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/securestringaccountSid=Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");stringauthToken=Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");TwilioClient.Init(accountSid,authToken);varmessage=MessageResource.Create(body:"This is a message that I want to send over WhatsApp with Twilio!",from:newTwilio.Types.PhoneNumber("whatsapp:+14155238886"),to:newTwilio.Types.PhoneNumber("whatsapp:+15005550006"));Console.WriteLine(message.Sid);}}
<?php// Update the path below to your autoload.php,// see https://getcomposer.org/doc/01-basic-usage.mdrequire_once'/path/to/vendor/autoload.php';useTwilio\Rest\Client;// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secure$sid=getenv("TWILIO_ACCOUNT_SID");$token=getenv("TWILIO_AUTH_TOKEN");$twilio=newClient($sid,$token);$message=$twilio->messages->create("whatsapp:+15005550006",// to["body"=>"This is a message that I want to send over WhatsApp with Twilio!","from"=>"whatsapp:+14155238886"]);print($message->sid);
# Download the helper library from https://www.twilio.com/docs/ruby/installrequire'rubygems'require'twilio-ruby'# Find your Account SID and Auth Token at twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=ENV['TWILIO_ACCOUNT_SID']auth_token=ENV['TWILIO_AUTH_TOKEN']@client=Twilio::REST::Client.new(account_sid,auth_token)message=@client.messages.create(body:'This is a message that I want to send over WhatsApp with Twilio!',from:'whatsapp:+14155238886',to:'whatsapp:+15005550006')putsmessage.sid
# Download the helper library from https://www.twilio.com/docs/python/installimportosfromtwilio.restimportClient# Find your Account SID and Auth Token at twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=os.environ['TWILIO_ACCOUNT_SID']auth_token=os.environ['TWILIO_AUTH_TOKEN']client=Client(account_sid,auth_token)message=client.messages \ .create(body='This is a message that I want to send over WhatsApp with Twilio!',from_='whatsapp:+14155238886',to='whatsapp:+15005550006')print(message.sid)
// Install the Java helper library from twilio.com/docs/java/installimportcom.twilio.Twilio;importcom.twilio.rest.api.v2010.account.Message;importcom.twilio.type.PhoneNumber;publicclassExample{// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/securepublicstaticfinalStringACCOUNT_SID=System.getenv("TWILIO_ACCOUNT_SID");publicstaticfinalStringAUTH_TOKEN=System.getenv("TWILIO_AUTH_TOKEN");publicstaticvoidmain(String[]args){Twilio.init(ACCOUNT_SID,AUTH_TOKEN);Messagemessage=Message.creator(newcom.twilio.type.PhoneNumber("whatsapp:+15005550006"),newcom.twilio.type.PhoneNumber("whatsapp:+14155238886"),"This is a message that I want to send over WhatsApp with Twilio!").create();System.out.println(message.getSid());}}
EXCLAMATION_MARK='!'curl -X POST https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Messages.json \--data-urlencode "Body=This is a message that I want to send over WhatsApp with Twilio$EXCLAMATION_MARK"\--data-urlencode "From=whatsapp:+14155238886"\--data-urlencode "To=whatsapp:+15005550006"\-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
EXCLAMATION_MARK='!'# Installthetwilio-clifromhttps://twil.io/clitwilioapi:core:messages:create \ --body"This is a message that I want to send over WhatsApp with Twilio$EXCLAMATION_MARK" \ --fromwhatsapp:+14155238886 \ --towhatsapp:+15005550006

Read the Docs

Explore quick-start guides, code snippets, SDKs, and more in our comprehensive resource library to accelerate your WhatsApp solution.

Pricing

Build your perfect WhatsApp
engagement solution with Twilio

Start connecting with customers on WhatsApp with pay-as-you-go, conversation-based pricing.