WhatsApp on Twilio: sandbox, senders, templates and pricing
Updated
Twilio gives you the WhatsApp Business API through the same Messages API as SMS. You test in the shared sandbox, then register your own sender linked to a Meta business. Outside a 24-hour window you must use approved templates. Twilio charges $0.005 per message; Meta charges per delivered template message.
1. Test in the sandbox
The WhatsApp Sandbox lets you try sending, receiving, webhooks and status callbacks without a WhatsApp Business Account.
- Everyone shares one Twilio number,
+14155238886. Each tester sendsjoin <your sandbox code>to it first; people who haven't joined get error 63015. - A tester's session expires three days after joining; they rejoin to continue.
- It sends at most one message every three seconds, so it's for checking behaviour, not load.
- Business-initiated messages are limited to three pre-approved templates (appointment reminders, order notifications, verification codes).
- Trial accounts get 100 WhatsApp messages; after upgrading, Twilio adds 100 WhatsApp messages and 30 WhatsApp template messages as free units. Don't use the sandbox in production.
2. Register your own sender
- Upgrade the Twilio account and have admin access to a Meta Business Portfolio (or create one during sign-up). Software vendors registering for customers use Meta's Tech Provider program instead.
- Choose a number that isn't already on WhatsApp and can receive an SMS or voice call for the one-time code.
- In the Console, go to Communications › Numbers & Senders › Overview, open the WhatsApp tab (legacy Console: Messaging › Senders › WhatsApp Senders), choose Create new sender and pick the number.
- Continue with Facebook: pick or create the portfolio and a WhatsApp Business Account, then set the display name and category.
- Enter the one-time code Meta sends to the number, and confirm Twilio's access. Registration takes a few minutes.
Twilio keeps all WhatsApp senders in an account in one WhatsApp Business Account (one WABA per Twilio account). Meta reviews the display name afterwards. If it's rejected, the sender is limited to 250 business-initiated messages in 24 hours. Meta business verification is free and needed for production: it raises messaging limits and lets you add more than two senders. Twilio warns it can take several weeks, so start early.
3. Templates and the 24-hour window
When a customer messages you, a customer service window opens for 24 hours and resets with each new message from them. Inside it you can send free-form replies. Outside it you can only send a template: a message pre-approved by WhatsApp. A free-form message sent outside the window fails with error 63016. Send templates with ContentSid (and ContentVariables for the placeholders): since 1 April 2025, template text pasted into Body outside the window fails too.
- Create templates in the Console under Content Template Builder: a lowercase name, a category, a language and the body, with placeholders for variables.
- Pick the category that matches WhatsApp's definitions (marketing, utility or authentication). Authentication templates have fixed wording and a copy-code button.
- WhatsApp reviews most templates within minutes. A submitted template can't be edited, and messages using a paused or deactivated template fail.
4. Pricing
A WhatsApp message on Twilio has up to two charges. Twilio's WhatsApp pricing page ("current as of September 2026", read 27 November 2026, USD):
| Charge | Amount | When |
|---|---|---|
| Twilio fee | $0.005 per message | Every message sent or received, template or not |
| Meta fee | Meta's rate card, by category (marketing, utility, authentication, service) and recipient country | Per delivered message since 1 July 2025 |
| Failed message processing fee | $0.001 | Messages ending in Failed |
| Engagement Suite (optional) | $0.015 per message, first 1,000 a month free | Link shortening, click tracking, scheduling |
Meta moved from per-conversation to per-message pricing on 1 July 2025. Its pricing page (read 27 November 2026) says that from 1 October 2026 it resumed charging for service messages, with a free tier of 1,000 delivered service messages per business phone number per month that doesn't roll over, and also charges utility messages sent inside an open service window. Volume tiers lower the rate for utility and authentication messages, per market, resetting monthly. Twilio's page says the same thing from its side: inside a customer service window Meta charges for utility templates and non-template service messages. Rates differ by country, so use Meta's rate card or our WhatsApp pricing page for your recipients rather than a single number.
Common mistakes
- Testing with someone who joined the sandbox last week. Sessions expire after three days; they get 63015 until they send the join code again.
- Replying a day later with free text. Outside 24 hours, only a template goes through.
- Wrong template category. Pick the category that matches what the message does; marketing, utility and authentication are priced differently.
- Leaving business verification for later. It can take weeks and gates production limits and extra senders.
Switchmast lists your WhatsApp senders and their status, and shows WhatsApp messages in the same log as SMS, with errors like 63016 explained in plain English.
Questions
How much does WhatsApp cost on Twilio?
Twilio charges $0.005 per WhatsApp message sent or received (Twilio's WhatsApp pricing page, USD, as of 27 Nov 2026). Meta adds its own fee per delivered template message, which depends on the template category and the recipient's country. Failed messages carry a $0.001 processing fee.
What is the Twilio WhatsApp Sandbox?
A free test setup on a shared Twilio number, +14155238886. People join by texting "join" plus your sandbox code. Sessions expire three days after joining, it sends at most one message every three seconds, and it isn't for production.
Why do I get error 63016?
You sent a free-form WhatsApp message outside the 24-hour customer service window. Outside the window you can only send an approved template, with ContentSid. Since 1 April 2025, putting the template text in Body outside the window also fails with 63016.
How long does WhatsApp sender approval take?
Registering the sender through Self Sign-up takes a few minutes once you confirm access. Meta business verification, needed for production limits, can take several weeks.
Can I use my existing number for WhatsApp?
Yes, a Twilio or non-Twilio number that isn't already registered with WhatsApp and can receive an SMS or voice call for the one-time code. Numbers behind an IVR can't receive the code.
Sources
All read 27 November 2026.
- Twilio: WhatsApp pricing (Twilio fee, failed message fee, Engagement Suite)
- Meta for Developers: WhatsApp pricing (per-message model, service window, October 2026 changes)
- Twilio docs: WhatsApp Sandbox
- Twilio docs: WhatsApp Self Sign-up
- Twilio docs: WhatsApp templates
- Twilio docs: Error 63016 and Error 63015
- Twilio docs: Trial account (free WhatsApp units)