Twilio SMS & Voice API
Set up API access for sending SMS messages, making voice calls, and other communication services with Twilio.
getapi twilio
Prerequisites
- A Twilio account (free trial available)
- A phone number for receiving verification SMS during setup
Credentials
| Variable | Description | Sensitive |
|---|---|---|
TWILIO_ACCOUNT_SID |
Account SID (starts with AC) | Public |
TWILIO_AUTH_TOKEN |
Auth Token for authenticating API requests | Secret |
Setup Steps
- 1 Info
- 2 Open URL
- 3 Choice
- 4 Info
- 5 Confirm
- 6 Info
- 7 Input
- 8 Input
- 9 Choice
- 10 Open URL
- 11 Confirm
- 12 Info
Things to Know
- Twilio trial accounts can only send messages to verified phone numbers. Add numbers at Console > Verified Caller IDs.
- Trial messages are prefixed with 'Sent from your Twilio trial account.' Upgrade to a paid account to remove this.
- The Auth Token can be rotated from the Console. Rotating it invalidates the old token immediately.
- Twilio uses HTTP Basic Auth (SID:Token), not Bearer tokens. Most HTTP libraries handle this with a username/password parameter.
- SMS pricing varies by country. Check https://www.twilio.com/sms/pricing for current rates.
- You cannot validate these credentials automatically in this setup. Send a test SMS from the Twilio Console to confirm everything works.