Home / Companies / Twilio / Blog / Post Details
Content Deep Dive

How to Use the C Shell to Send an SMS from a New Twilio Number

Blog post from Twilio

Post Details
Company
Date Published
Author
Paul Kamp
Word Count
834
Language
English
Hacker News Points
-
Summary

To send an SMS from a new Twilio number using the C Shell, first set up your Twilio credentials by logging into your account and copying the `account_sid` and `auth_token`. Then, use the `curl` command to query Twilio's REST API for available phone numbers, purchase one, and store its value in a variable. Next, modify the `your_number` variable with your verified Twilio number and send an SMS using another `curl` command, specifying the required parameters such as `Body`, `From`, and `To`. This process allows you to automate sending SMS messages without leaving the C Shell, streamlining prototyping and development time.