This quickstart shows you how to build your first server-side application that makes and receives phone calls. For other voice quickstarts, such as no-code or SDK quickstarts, see Programmable Voice quickstarts.
Copy your Account SID and set it as an environment variable using the following command. Replace YOUR_ACCOUNT_SID with your actual Account SID.
exportTWILIO_ACCOUNT_SID=YOUR_ACCOUNT_SID
Create an API key, then set the key SID and secret as environment variables using the following commands. Replace YOUR_API_KEY and YOUR_API_SECRET with your actual values.
Copy your Account SID and set it as an environment variable using the following command. Replace YOUR_ACCOUNT_SID with your actual Account SID.
setTWILIO_ACCOUNT_SID=YOUR_ACCOUNT_SID
Create an API key, then set the key SID and secret as environment variables using the following commands. Replace YOUR_API_KEY and YOUR_API_SECRET with your actual values.
Copy your Account SID and set it as an environment variable using the following command. Replace YOUR_ACCOUNT_SID with your actual Account SID.
$Env:TWILIO_ACCOUNT_SID="YOUR_ACCOUNT_SID"
Create an API key, then set the key SID and secret as environment variables using the following commands. Replace YOUR_API_KEY and YOUR_API_SECRET with your actual values.
1
$Env:TWILIO_API_KEY="YOUR_API_KEY"
2
$Env:TWILIO_API_SECRET="YOUR_API_SECRET"
Make an outgoing phone call
To make a phone call from your Twilio number, follow these steps:
PythonNode.jsPHPC# or .NETJavaGoRuby
Create a file named make_call.py and add the following code: