Developer Guide to Toll-Free Verification
Time to read: 4 minutes
In light of the recent announcement that as of November 8, 2023, verification will be required for all Restricted (formerly called “Unverified”) toll-free phone numbers before they can be used for messaging, here’s a developer’s guide on toll-free registration using the Messaging Compliance API.
What is happening?
The messaging industry, along with Twilio, is continuing its shift towards a more compliant and transparent ecosystem to protect users from bad actors, spam, and unwanted communications. With Trusted Communications, Twilio is committed to partnering with the industry to build this trusted ecosystem so consumers are more likely to engage with legitimate messages from businesses and organizations.
Once submitted, toll-free numbers enter a Pending state and will continue having sending limits; however starting January 31, 2024, messages sent through a Pending toll-free number will be blocked and subject to messaging fees. The following are the current sending limits (not guaranteed maximums and are subject to change) for Pending numbers:
Every builder is required to comply with these requirements. Although we understand that this process introduces friction and can slow you down, it’s one of the ways we work to ensure messages are protected from spam and bad actors. Taking these steps will enable you, as developers, to continue building and innovating with messaging.
What number type should developers be using?
Twilio offers a range of phone number types, each with its own capabilities and use cases.
10DLC, or 10-digit long codes, are standard phone numbers with messaging and voice capabilities. These numbers are great for use cases where localized, personalized communication is valued as 10DLC provides you with a local identity. These numbers offer high throughput and high delivery rates and are typically meant for individuals or businesses.
Toll-free numbers are also 10-digit phone numbers but they usually start with something like 1-833 or 1-888. They are great for universal brand identity and in the past were suited for support/sales lines but expanded their reach by supporting 2-way messaging, promotions, and notifications. Toll-free numbers are designated for medium/large business messaging and are not meant to be used for hobbyist developers.
If you are a student, hobbyist developer, or someone trying out Twilio messaging, we are exploring various solutions for you. One possibility is a Virtual Phone experience within the Twilio Console. More details will be provided closer to the launch.
If you are a business owner or ISV, you might consider 10DLC or toll-free, depending on your business needs (use case, deliverability requirements, etc).
I’m getting an error code (30032), what does that mean?
After sending a message with a toll-free number, you might get the error code (30032): Toll-free Number has not been verified. This could mean:
- Your toll-free number has not been verified
- Your toll-free verification request was rejected
To avoid this, submit your toll-free number for verification with the Messaging Compliance API, guidance in the following section.
I’m getting an error code (30007), what does this mean?
After sending a message with a toll-free number, you might get the error code 30007. This could mean:
- Your toll-free phone number has been verified, but the message was filtered as spam
- Your toll-free phone number has been submitted for verification (i.e. pending), but the message was filtered as spam
How do developers use the Messaging Compliance API for Toll-Free verification?
Option 1: Submit a Toll-Free Verification Request without a Customer Profile
To create a toll-free verification record, make a POST request to the API endpoint: https://messaging.twilio.com/v1/Tollfree/Verifications
If you have not created a Customer Profile, your request will need the required parameters and may look like this:
If you are an ISV submitting your Customer’s Profile, and you’ve already created a profile for them at Twilio, you can re-use it here.
This is best for ISVs who have created Secondary Customer Profiles at Twilio which are well-supported across products.
Your verification request will require different parameters, notably the Customer Profile SID
.
To retrieve the Customer Profile SID
, make a GET request like so:
Copy the Customer Profile SID
(String starting with BU), from the response, and save it for later.
Using the copied Customer Profile SID
from the previous request, make a new API request to the Verifications endpoint:
Status of your Toll-Free Verification Request
After your POST, in either scenario, you’re response may look like this:
In the response, you’ll see a status
for your verification. To monitor this status, make a GET request with the Toll-Free number used for verification:
Here’s an overview of each verification status from the API:
Verification Status |
Toll-Free Phone Number Traffic |
Traffic Limits |
---|---|---|
PENDING_REVIEW |
Restricted |
Starting on November 8, 2023, ALL Restricted traffic will be blocked. |
IN_REVIEW |
Pending Verification |
Sending Limits (not guaranteed) Daily: 2,000 message segments Weekly: 6,000 message segments Monthly: 10,000 message segments. |
TWILIO_APPROVED |
Approved |
3 SMS segments per second by default, but can be increased. |
TWILIO_REJECTED |
If re-submittable, Pending. If not re-submittable, Blocked. If after the 7-day resubmission response window, Restricted |
Blocked. |
Additionally, you can list all Toll-Free verification records and view their status by making a GET request to the Verifications endpoint with an optional PageSize
parameter:
In addition to making requests for monitoring the verification status, you can receive status updates through emails or get notified via webhooks through Event Streams.
If your Toll-Free verification request has been rejected, you can edit and re-submit the verification depending on the returned error code. It's best to edit and resubmit within 7 days.
Alternatively, you can delete the verification submission in the Twilio Console.
The Future of Trusted Communications
This November 8, 2023 date when all messages sent from Restricted (or “Unverified”) toll-free phone numbers will be blocked is the next step towards a fully verified and trusted messaging ecosystem. As the messaging and communications ecosystem continues to change around the world, Twilio is dedicated to creating a trusted and compliant ecosystem for our customers.
For additional information, please reference our Docs on Toll-Free Verification API Onboarding.
Related Posts
Related Resources
Twilio Docs
From APIs to SDKs to sample apps
API reference documentation, SDKs, helper libraries, quickstarts, and tutorials for your language and platform.
Resource Center
The latest ebooks, industry reports, and webinars
Learn from customer engagement experts to improve your own communication.
Ahoy
Twilio's developer community hub
Best practices, code samples, and inspiration to build communications and digital engagement experiences.