T

Twilio API

by Twilio Free tier

Twilio's API platform powers communications for millions of developers. Send and receive SMS/MMS, make and receive voice calls, build IVR systems, send WhatsApp messages, verify phone numbers and users with OTP, and send transactional email via SendGrid (Twilio subsidiary).

smsvoicewhatsappverifyotp

Quick Reference

Base URL https://api.twilio.com/2010-04-01 Auth type Basic Auth Auth header Authorization: Basic base64(AccountSID:AuthToken) Rate limit 1 request/s per phone number Pricing Pay per use Free quota $15 free trial credit Documentation https://www.twilio.com/docs/usage/api Endpoint status Live — HTTP 200 — endpoint is accessible719ms (checked Mar 29, 2026) Builder score B 74% builder-friendly
Pricing
75
Latency
76
Depth
72

Authentication

HTTP Basic Auth using your Account SID as username and Auth Token as password.

Authorization: Basic base64(AccountSID:AuthToken)

Pricing

Model pay-as-you-go Starting price Pay per use Free quota $15 free trial credit Unit cost $0.7900 per 10,000 SMS messages
PlanPrice/moIncluded
Free Trial Free $15 credit, PAYG after

SMS: $0.0079/message. Voice: $0.0085/min. WhatsApp: $0.005/message. Free trial includes $15 credit. Volume discounts available.

Key Endpoints

MethodPathDescription
POST /Accounts/{SID}/Messages.json Send an SMS or MMS message
GET /Accounts/{SID}/Messages.json List messages
POST /Accounts/{SID}/Calls.json Initiate a voice call
POST /Accounts/{SID}/IncomingPhoneNumbers.json Buy a phone number

Sample Request

curl -X POST https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Messages.json \
  -u "$TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN" \
  --data-urlencode "To=+15005550006" \
  --data-urlencode "From=+15017122661" \
  --data-urlencode "Body=Hello from Twilio!"

Sample Response

{
  "sid": "SM87105da94bff44b999e4e6eb90d8eb6a",
  "status": "queued",
  "to": "+15005550006",
  "from": "+15017122661",
  "body": "Hello from Twilio!",
  "price": "-0.00750",
  "date_created": "Thu, 18 Jan 2024 12:00:00 +0000"
}

Data sourced from API Map. Always verify pricing and rate limits against the official Twilio documentation.