Tby Twilio
Make a phone call
Places an outbound call from a Twilio number to a phone number, SIP address or client and runs the TwiML you give it when the call connects.
Description
Pass `--to`, `--from` (a Twilio number or a verified caller ID) and the call's instructions as `--twiml` or as a `--url` that returns TwiML. Every completed call is charged, including one a voicemail answers. The REST call is `POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls.json`. The CLI also needs `TWILIO_ACCOUNT_SID` and `TWILIO_API_SECRET`, or a `twilio login` profile.
make-call.md
Make a phone call
Places an outbound call from a Twilio number to a phone number, SIP address or client and runs the TwiML you give it when the call connects.
Pass --to, --from (a Twilio number or a verified caller ID) and the call's
instructions as --twiml or as a --url that returns TwiML. Every completed
call is charged, including one a voicemail answers. The REST call is
POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls.json. The
CLI also needs TWILIO_ACCOUNT_SID and TWILIO_API_SECRET, or a
twilio login profile.
Set up
Use the first option your agent supports.
CLI (official)
Install the command, then confirm it runs.
brew tap twilio/brew && brew install twilio
twilio --version
Run twilio api:core:calls:create.
Set $TWILIO_API_KEY in your environment first (get a key: https://www.twilio.com/docs/iam/api-keys/keys-in-console).
Before doing anything else, make one read-only call to confirm access.
Rules
- Ask the user before anything that sends messages, costs money, or changes data.
- Never print API keys.
Built from these files in the repository
The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.
Ways in
| Route | Source | Call | Required | Docs |
|---|---|---|---|---|
| Official | twilio api:core:calls:create | API key in $TWILIO_API_KEY | Docs |