Twilio is launching a new Console. Some screenshots on this page may show the Legacy Console and therefore may no longer be accurate. We are working to update all screenshots to reflect the new Console experience. Learn more about the new Console.
With just a few lines of code, your application can send and receive messages with WhatsApp using the Twilio API for WhatsApp.
This WhatsApp Quickstart will teach you how to do this using the Twilio Sandbox for WhatsApp, C#/.NET, and the Twilio .NET Twilio helper library. In this Quickstart, you will learn how to:
Prefer to watch a video? The video below shows you how to use the Sandbox to send and receive WhatsApp messages.
Before you can send a WhatsApp message from your web language, you'll need to sign up for a Twilio account or sign into your existing account and activate the Twilio Sandbox for WhatsApp. It allows you to prototype with WhatsApp immediately using a shared phone number, without waiting for a dedicated number to be approved by WhatsApp.
To get started, select a number from the available sandbox numbers to activate your sandbox.
join <your sandbox keyword>
" to your Sandbox number in WhatsApp to join your Sandbox, and we'll reply with a confirmation that you've joined. Your sandbox keyword can be found in the console.Once you join, you will only receive messages from your specific Sandbox. To disconnect from the sandbox, you can reply to the message from WhatsApp with sandbox stop
, or switch to a different sandbox by messaging join <other sandbox keyword>
.
When someone replies to one of your messages, you will receive a webhook request from Twilio.
You can configure webhooks by connecting your Sandbox to an app you've already built for handling incoming messages, or build a new one for WhatsApp messages.