ChannelsBeginner

Setting Up SMS via Twilio

Connect a Twilio phone number for two-way SMS messaging. Covers webhook setup, test messages, and common errors.

4 min readUpdated April 18, 2025

What you need

  • A Twilio account with a US phone number (or international, depending on your region)
  • Account SID and Auth Token from the Twilio console

Step 1: Buy or use an existing Twilio number

Log in to console.twilio.comPhone Numbers → Manage → Active numbers.

If you don't have a number yet, click Buy a number. Filter by SMS capability.

Step 2: Get your credentials

From the Twilio dashboard, note:

  • Account SID — starts with AC...
  • Auth Token — click the eye icon to reveal
  • Your Twilio phone number — in E.164 format, e.g. +12025551234

Step 3: Connect in DMHub

  1. Go to /settings/channelsAdd Channel → SMS → Twilio
  2. Enter your Account SID, Auth Token, and phone number
  3. Click Connect

DMHub automatically configures the webhook on your Twilio number. After connecting, you'll see the number listed as active.

Step 4: Send a test message

From the Twilio console, send an SMS to your Twilio number. It should appear in /inbox within a few seconds.

To send an outbound SMS from DMHub, open any conversation and type in the reply box. For new conversations, click New Conversation and enter the customer's phone number.

Signature validation

DMHub validates every inbound Twilio webhook using the X-Twilio-Signature header. This prevents spoofed messages. No configuration required — it happens automatically using your Auth Token.

Carrier filtering

Some carriers filter messages that look like marketing. To improve deliverability:

  • Keep messages under 160 characters when possible
  • Avoid all-caps, excessive punctuation, and URLs with redirects
  • Use a verified 10DLC number for US business messaging

Pricing note

Twilio charges per message segment (~$0.0079/segment for US). DMHub does not add a markup — you pay Twilio directly based on your Twilio account plan.

smstwiliochannels

Was this article helpful?

Let us know if this answered your question or if you need more help.

Send feedback
Setting Up SMS via Twilio | DMHub Help