Twilio gives you a free trial with real API access — send SMS messages, make phone calls, and build communication apps. You get free trial credit (usually $15) when you sign up, enough to send hundreds of test messages.
Here's how to start building with it.
Get Your Free Trial Account
- Sign up at twilio.com/try-twilio
- Verify your phone number
- Get a free Twilio phone number
- Copy your Account SID and Auth Token from the console
1. Send an SMS
curl -X POST "https://api.twilio.com/2010-04-01/Accounts/YOUR_SID/Messages.json" \
-u "YOUR_SID:YOUR_AUTH_TOKEN" \
-d "Body=Hello from my app!" \
-d "From=+1YOUR_TWILIO_NUMBER" \
-d "To=+1VERIFIED_NUMBER"
2. Make a Phone Call
curl -X POST "https://api.twilio.com/2010-04-01/Accounts/YOUR_SID/Calls.json" \
-u "YOUR_SID:YOUR_AUTH_TOKEN" \
-d "Url=http://demo.twilio.com/docs/voice.xml" \
-d "From=+1YOUR_TWILIO_NUMBER" \
-d "To=+1VERIFIED_NUMBER"
3. Send WhatsApp Messages
curl -X POST "https://api.twilio.com/2010-04-01/Accounts/YOUR_SID/Messages.json" \
-u "YOUR_SID:YOUR_AUTH_TOKEN" \
-d "Body=Hello from WhatsApp!" \
-d "From=whatsapp:+14155238886" \
-d "To=whatsapp:+1YOUR_NUMBER"
4. Python — Alert System
from twilio.rest import Client
SID = "YOUR_ACCOUNT_SID"
TOKEN = "YOUR_AUTH_TOKEN"
FROM = "+1YOUR_TWILIO_NUMBER"
client = Client(SID, TOKEN)
def send_alert(to_number, message):
msg = client.messages.create(
body=message,
from_=FROM,
to=to_number
)
print(f"Sent: {msg.sid} | Status: {msg.status}")
# Usage
send_alert("+1234567890", "Server CPU at 95%! Check immediately.")
send_alert("+1234567890", "Daily report: 1,234 users, $5,678 revenue")
5. Node.js — SMS Webhook
const twilio = require("twilio");
const client = twilio("YOUR_SID", "YOUR_AUTH_TOKEN");
// Send SMS
async function sendSMS(to, body) {
const message = await client.messages.create({
body,
from: "+1YOUR_TWILIO_NUMBER",
to,
});
console.log(`Message SID: ${message.sid}`);
}
// Express webhook for incoming SMS
app.post("/sms", (req, res) => {
const { Body, From } = req.body;
console.log(`SMS from ${From}: ${Body}`);
const twiml = new twilio.twiml.MessagingResponse();
twiml.message(`Thanks! We received: "${Body}"`);
res.type("text/xml").send(twiml.toString());
});
sendSMS("+1234567890", "Your order #1234 has shipped!");
Pricing
| Service | Free Trial | Paid |
|---|---|---|
| SMS (US) | ~$15 credit | $0.0079/message |
| Voice (US) | ~$15 credit | $0.014/min outbound |
| Sandbox free | Per-conversation pricing | |
| Verify (OTP) | Free trial | $0.05/verification |
The free trial gives you enough credit for hundreds of messages.
What You Can Build
- 2FA / OTP system — send verification codes via SMS
- Appointment reminders — auto-text patients, clients, or customers
- Order notifications — shipping updates, delivery confirmations
- Emergency alerts — mass notification system for teams
- Customer support — two-way SMS conversations
- Voice IVR — automated phone menus and call routing
More Free API Articles
- Stripe Has a Free API — Accept Payments and Manage Subscriptions
- Telegram Has a Free Bot API — Build Bots and Automate Chats
- Notion Has a Free API — Build Dashboards and Automate Workflows
Need Web Data? Try These Tools
If you're building apps that need web scraping or data extraction, check out my ready-made tools on Apify Store — scrapers for Reddit, YouTube, Google News, Trustpilot, and 80+ more. No coding needed, just run and get your data.
Need a custom scraping solution? Email me at spinov001@gmail.com
More Free APIs You Should Know About
- 30+ Free APIs Every Developer Should Bookmark
- Mapbox Has a Free API
- Claude AI Has a Free API
- SendGrid Has a Free API
- Vercel Has a Free API
- Firebase Has a Free API
- Supabase Has a Free API
- OpenAI Has a Free API
- Stripe Has a Free API
- GitHub API Has a Free API
- Slack Has a Free API
Need custom data scraping? Email me or check my Apify actors.
Top comments (0)