<@U07FRRZH2GN> How can i define Twilio API keys in...
# ask-ai
f
@icy-policeman-64898 How can i define Twilio API keys in my .env
t
Thanks for reaching out, Abhishek. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To help you set up your Twilio API keys in your
.env
file for LiveKit, here’s a simple guide with the variables you’ll need to include:
Copy code
# Twilio API Keys
TWILIO_PHONE_NUMBER=<your-twilio-phone-number>
TWILIO_ACCOUNT_SID=<your-twilio-account-sid>
TWILIO_AUTH_TOKEN=<your-twilio-auth-token>

# Twilio SIP trunk credentials
TWILIO_SIP_USERNAME=<your-twilio-sip-username>
TWILIO_SIP_PASSWORD=<your-twilio-sip-password>
These variables are essential for SIP trunk configuration and other Twilio features. Don’t forget to also add your LiveKit-specific keys like
LIVEKIT_API_KEY
,
LIVEKIT_API_SECRET
, and
LIVEKIT_URL
in the same file to keep everything running smoothly. If you’re working on migrating to Twilio Video, there’s a slight tweak: you’ll want to use
TWILIO_API_KEY
and
TWILIO_API_SECRET
instead of
TWILIO_AUTH_TOKEN
. Feel free to reach out if you’d like me to walk you through those details! Sources: src/setup-livekit.ts | packages/sip--um-actually/src/setup-livekit.ts | server/index.js