o
How do I set up SMS in Vapi using a Twilio phone number?
v
To set up SMS in Vapi with your Twilio phone number, use the API to enable SMS by setting
smsEnabled: true
when creating or updating the number. Here’s a sample cURL command:
Copy code
bash
curl -X POST https://api.vapi.ai/phone-number \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "twilio",
    "smsEnabled": true,
    "credentialId": "<your_twilio_credential_id>"
  }'
Make sure your Twilio number is US-based and SMS-enabled. For more details, see the [Vapi Inbound SMS guide](https://docs.vapi.ai/phone-numbers/inbound-sms). Source: - [Inbound SMS](https://docs.vapi.ai/phone-numbers/inbound-sms)
o
I’m going to send SMS messages to users after scheduling an appointment, as well as confirmation SMS messages for users to confirm their appointments.
c
Hi OMG, To set up SMS in Vapi using your Twilio phone number, follow these steps: 1. Ensure your Twilio Phone Number: Make sure your Twilio number is US-based and SMS-enabled. 2. Import the Twilio Number to Vapi: This can be done from the Vapi dashboard, which will automatically enable SMS capabilities as the default for Twilio numbers. See the [Import number from Twilio guide](https://docs.vapi.ai/phone-numbers/import-twilio). 3. Enable SMS via API: - Use the cURL command below, setting
smsEnabled: true
to enable SMS.
Copy code
bash
   curl -X POST https://api.vapi.ai/phone-number \
     -H "Authorization: Bearer <your_token>" \
     -H "Content-Type: application/json" \
     -d '{
       "provider": "twilio",
       "smsEnabled": true,
       "credentialId": "<your_twilio_credential_id>"
     }'
4. Assign Your Assistant: Once imported, assign an assistant to handle SMS communications through the number settings. For more details, you can refer to the [Vapi Inbound SMS guide](https://docs.vapi.ai/phone-numbers/inbound-sms).
Let us know if this works for you