Back to Cal

Twilio

docs/self-hosting/apps/install-apps/twilio.mdx

6.2.02.4 KB
Original Source
<Steps> <Step title="Create a Twilio account"> Go to [Twilio](https://www.twilio.com/try-twilio) and create a new account. </Step> <Step title="Get a Twilio phone number"> Click on 'Get a Twilio phone number' to obtain a phone number for your account. </Step> <Step title="Save the Account SID"> Copy the Account SID and add it to your `.env` file under the field: ``` TWILIO_SID ``` </Step> <Step title="Save the Auth Token"> Copy the Auth Token and add it to your `.env` file under the field: ``` TWILIO_TOKEN ``` </Step> <Step title="Save the Twilio phone number"> Copy your Twilio phone number and add it to your `.env` file under the field: ``` TWILIO_PHONE_NUMBER ``` </Step> <Step title="Set the Sender ID"> Add your own sender ID to the `.env` file under the field: ``` NEXT_PUBLIC_SENDER_ID ``` (The fallback is set to "Cal" if not specified.) </Step> <Step title="Create a Messaging Service"> Navigate to **Develop** -> **Messaging** -> **Services**, then create a new messaging service. </Step> <Step title="Name the Messaging Service"> Choose a name for the messaging service. This can be anything you like. </Step> <Step title="Add Senders to the Messaging Service"> Click 'Add Senders' and select 'Phone number' as the sender type. </Step> <Step title="Add your Twilio phone number as a sender"> Add the listed phone number to the messaging service. </Step> <Step title="Complete the Messaging Service setup"> Leave all other fields as they are, then complete the setup by clicking ‘View my new Messaging Service’. </Step> <Step title="Save the Messaging Service SID"> Copy the Messaging Service SID and add it to your `.env` file under the field: ``` TWILIO_MESSAGING_SID ``` </Step> <Step title="Create a Verify Service"> Go to the Twilio dashboard, create a new Verify Service, and name it as you wish. </Step> <Step title="Save the Verify Service SID"> Copy the Verify Service SID and add it to your `.env` file under the field: ``` TWILIO_VERIFY_SID ``` </Step> </Steps> <Note> This app is **required** for Workflows </Note>