A Twilio SMS integration works when four things are settled before the first message goes out: a registered brand and campaign, a clear consent record, verified webhooks, and a place in your CRM where every text lands. Most of the effort sits in those decisions, not in the API call that sends a message.
This is a buyer guide for operations and sales leaders who want texts sent from a CRM, booking system or customer app. It covers what to plan, what to ask your developer and where these projects usually stall.
What does a Twilio SMS integration connect?
Twilio sits between your software and the mobile carriers. Your system asks Twilio to send a message. Twilio then calls your system back when the message is delivered, fails or gets a reply. That callback is a webhook, and it is where most of the integration work lives.
Before any code, list every message you plan to send. For each one, write down:
- The trigger. Which event sends it, such as a booked appointment, a new quote or an overdue invoice.
- The audience. Customers, leads, staff or vendors.
- The reply path. Whether a reply should reach a person, update a record or do nothing.
- The owner. Who approves the wording and who answers replies.
This list drives registration, consent and CRM design. Teams that skip it often rewrite their templates after carriers reject the first campaign.
Why must you register for A2P 10DLC before you send?
If you text from a standard 10-digit US number, you must register. Twilio describes A2P 10DLC as the carrier standard that keeps long code traffic "verified and consensual." Since September 1, 2023, Twilio has fully blocked SMS and MMS to US numbers sent from unregistered 10DLC numbers (Twilio Support).
Registration has two parts. The Brand tells carriers who is sending. The Campaign describes the purpose of your messages and how people opt in, opt out and get help. Standard and Low-Volume Standard brands need a tax ID such as an EIN, and each can hold up to five campaigns. A Sole Proprietor brand gets one campaign and about 1,000 segments a day to T-Mobile (Twilio Docs).
Build registration into the project timeline. Your campaign description, sample messages and opt-in description should match what you will really send. A campaign registered for appointment reminders does not cover promotional texts you add later.
How should you capture and honor consent?
Every number in your system needs a consent record: when the person agreed, where they agreed (web form, paper form or keyword text) and what they agreed to receive. Store it on the contact record, not in a side spreadsheet. Ask your counsel which consent rules apply to each message type, since marketing texts carry stricter rules than service messages.
Opt-outs need the same care. By default, Twilio handles the standard English opt-out replies on long code numbers: STOP, UNSUBSCRIBE, END, QUIT, STOPALL, REVOKE, OPTOUT and CANCEL. START and UNSTOP opt a person back in. After someone opts out, later sends to them fail with error 21610 (Twilio Docs).
The gap we see most often is in the CRM. Twilio blocks the number, but the CRM still shows the contact as textable, so staff keep queuing messages that fail. Your integration should listen for opt-out replies and set a do-not-text flag on the contact the moment one arrives.
How do you keep Twilio webhooks secure?
Your webhook endpoint is a public URL that can create or change records. Anyone who finds it could post fake replies unless you check that each request really came from Twilio.
Twilio signs every webhook request in the X-Twilio-Signature header. By default the signature is an HMAC-SHA1 hash that uses your account auth token as the key. Twilio recommends validating with the library in its SDKs instead of writing your own check, and it names shared signing keys as the preferred option for production (Twilio Docs).
- Validate every request before you act on it.
- Use HTTPS with a valid certificate. Twilio will not connect to a self-signed one.
- Keep the auth token in a secrets store, not in code or in the webhook URL.
- Log failed validations so you can spot probing.
Why does message length change your cost?
SMS is billed by segment. With standard GSM-7 characters, a single message holds 160 characters, and longer messages split into segments of 153. One emoji or other special character switches the whole message to UCS-2 encoding, where a segment holds 70 characters, or 67 when the message is split (Twilio Docs).
So a friendly emoji can turn a one-segment reminder into three segments. Twilio recommends keeping SMS messages under 320 characters. Write templates in plain text, test them with real data such as long customer names, and check the segment count before launch.
What should your CRM record for every text?
A text that lives only in Twilio logs is invisible to your team. We plan for the CRM to hold:
- The message body, direction (sent or received) and timestamp.
- The Twilio message ID, so support can trace a delivery problem.
- The latest delivery status from Twilio, such as delivered or failed.
- The related record, such as the deal, ticket or appointment.
- The consent and opt-out flags on the contact.
Route inbound replies to the record owner, not a shared inbox nobody watches. If you already send web form leads into your CRM, our guide on website to CRM integration covers the same field ownership questions.
How does Hexagon help with Twilio SMS integration?
We start with your message list and consent model, then help you prepare the brand and campaign details for registration. Our API integration services team builds the send logic, webhook validation, opt-out sync and status tracking into the systems you already use. If your CRM needs new fields or workflows to hold message history, our CRM services team handles that side. Teams that want texting inside a CRM from day one can also look at Arches CRM.
Frequently asked questions
Yes, if you send texts through Twilio from a standard 10-digit US number. Twilio says anyone sending application-to-person messages over 10DLC to US numbers must register, including individuals. Low-volume senders can pick a smaller brand or campaign type.
Twilio stops further messages from your number to that person, and later sends fail with error 21610. Your integration should also mark the contact as do-not-text in your CRM so your team sees the change right away.
Yes. Your CRM calls the Twilio messaging API to send, and Twilio posts replies and delivery updates back to a webhook that your CRM or a middleware service receives. Most of the work is mapping those events to the right records.
Keep it short. A GSM-7 message fits 160 characters in one segment, and Twilio recommends staying under 320 characters. Avoid emoji in templates, because one emoji switches the message to UCS-2 and cuts each segment to 70 characters.

