How to Send SMS with Your Twilio Account
By Replifier Team · ·SMS · Twilio
The business problem
Consider an online clothing store that already has a Twilio account with an active phone number. Every time an order is confirmed or ships, the support team receives the same message from customers: “Where is my order?” Answering each one takes time, and the experience is inconsistent.
What they need is to send automated SMS messages at key moments — order confirmed, shipment on its way — from their own number, not from a generic messaging platform that assigns an unknown number the customer has never seen before.
How Replifier solves it
Replifier connects to your Twilio account using a dedicated API key and registers your active numbers as senders. From there you can use those numbers in campaigns and automated messages.
The integration also handles opt-outs and opt-ins automatically: if a contact replies with STOP, UNSUBSCRIBE, CANCEL, or other standard keywords, Replifier marks them as opted out and excludes them from future sends. To re-subscribe, the contact replies with START, UNSTOP, or YES.
A note on credentials: Replifier uses an API Key (not the Auth Token) to make sending calls. The Auth Token is only needed to validate the cryptographic signature of incoming Twilio webhooks. Using a separate API Key lets you revoke Replifier’s access at any time without affecting other integrations.
Step by step
1. Create an API Key in Twilio
Log in to your Twilio console. Go to Account > API Keys & Tokens and create a new Standard key. Note the SID (starts with SK) and the Secret — the Secret is shown only once at creation; save it immediately.
2. Find your Account SID and Auth Token
On the main console page you’ll find your Account SID (starts with AC) and your Auth Token (hidden by default; click to reveal). Copy both.
3. Add the connection in Replifier
In Replifier, open the SMS channels section and select Twilio. Fill in the form with all four values:
- Account SID (
AC...) - API Key SID (
SK...) - API Key Secret
- Auth Token
Save the connection. Replifier verifies the credentials and automatically downloads the list of active phone numbers on your account.
4. Review your senders
After verification, you’ll see the imported numbers. Each shows its type:
- long_code — standard 10-digit number
- short_code — 5- or 6-digit short code
- toll_free — toll-free number
Set one as the default sender for your campaigns.
5. Send a test message
You can send a test to up to 5 different numbers per send, with a limit of 10 messages per hour per connection. The destination number must be in E.164 format: starts with + followed by the country code, with no spaces or dashes.
Examples: Mexico +521234567890, United States +12025551234.
6. Register the webhook in Twilio
To receive contact replies and delivery notifications, register the webhook URL that Replifier provides in your phone number’s configuration in the Twilio console, under the Messaging section.
What you should see when you’re done
- The connection appears as active in your channels list.
- At least one sender appears in the imported numbers list.
- The test message arrives successfully at the number you specified.
Common errors
| Error | Cause | Solution |
|---|---|---|
sms_missing_auth_token |
The Auth Token field is empty | Add your Twilio account’s Auth Token |
sms_webhook_invalid |
The webhook signature does not match | Verify that the Auth Token in Replifier is exactly the same as the one shown in your Twilio console |
sms_invalid_number |
The destination number is not in E.164 format | Use the format +[country code][number], with no spaces or dashes |
sms_from_required |
No sender was specified | Make sure the connection has a default phone number configured |
sms_no_default_sender |
The default sender is not active | Verify that the number configured as default is active in your Twilio account |
sms_test_send_limited |
You exceeded the test send limit | Wait for the quota to renew: maximum 10 messages per hour per connection |