Prerequisites
- A Twilio account (sign up at twilio.com)
- A Twilio phone number
- Account SID and Auth Token from the Twilio Console
Get Twilio Credentials
Account SID and Auth Token
- Log in to the Twilio Console
- On the dashboard, find Account Info
- Copy your Account SID (starts with
AC) - Copy your Auth Token (click the eye icon to reveal)
Phone Number
- Go to Phone Numbers → Manage → Active numbers
- Click on your number to view details
- Copy the phone number in E.164 format (e.g.,
+15551234567)
If you don’t have a number, go to Phone Numbers → Buy a number to
purchase one.
Configure via CLI
Interactive Setup
The easiest way is to runconsuelo init:
Manual Configuration
Set each credential individually:Verify Configuration
Check that Twilio is configured:Test Your Setup
Make a test call:Local Presence Setup
To use local presence (auto-selecting area codes), you need multiple phone numbers.Provision Additional Numbers
- Go to Phone Numbers → Buy a number
- Search for numbers in different area codes
- Purchase numbers for areas you call frequently
Enable Local Presence
Use Local Presence on Calls
TwiML App Configuration
For transfers and advanced features, configure a TwiML App:- Go to Voice → TwiML → Apps
- Create a new app or edit existing
- Set Voice URL to your webhook endpoint:
- Hosted:
https://consuelo.consuelohq.com/api/v1/voice/twiml - Self-hosted:
https://your-domain.com/api/v1/voice/twiml
- Hosted:
- Set Voice Method to
POST
Troubleshooting
”Authentication failed”
- Verify Account SID starts with
AC - Check Auth Token is correct (no trailing spaces)
- Ensure the account is active (not suspended)
“Number not found”
- Ensure the phone number is in E.164 format:
+<country><number> - Verify the number is assigned to your Twilio account
- Check the number is not in use by another application
”Insufficient balance”
- Add funds to your Twilio account
- Check usage limits in Twilio Console
”Number not provisioned”
- The phone number must be active in your Twilio account
- Wait 1-2 minutes after purchasing a new number
Next Steps
- Call Operations — Make calls with your configured number
- Use Local Presence — Configure local area code calling
- Queue Management — Dial contacts in parallel