Connect Twilio for SMS
Connect your team's Twilio account and sending number for SMS in SunrAI.
Each team connects its own Twilio account, chooses a sending number, and pays Twilio directly for its usage.
Before you start
You need the Twilio Account SID and Auth Token, and at least one active phone number in your Twilio account. In the United States, your brand and messaging campaign may also need to be registered for 10DLC.
Connect Twilio
Open Twilio settings
Go to Settings → Integrations → Twilio.
Find your Twilio credentials
In the Twilio Console, open Account → API keys & tokens and copy your Account SID and Auth Token.
Connect your account
Enter the Account SID and Auth Token in SunrAI and select Connect.
Choose a sending number
Select the default sending number from the active numbers in your Twilio account.
Configure inbound message updates
In the Twilio Console, open each number you want to use and set:
- A MESSAGE COMES IN to https://www.sunrai.ai/api/webhooks/sms-inbound
- STATUS CALLBACK URL to https://www.sunrai.ai/api/webhooks/sms-status
You pay Twilio directly. Your team is responsible for required messaging registration and customer consent.
Disconnect Twilio
Select Disconnect on the integration card. If you no longer want Twilio to send messages to SunrAI, remove or update the inbound and status callback URLs in the Twilio Console as well.
Troubleshooting
"Twilio rejected the credentials." — Check for extra spaces and confirm that the Account SID and Auth Token are current. If the token was rotated, enter the new value in SunrAI.
"Messages are stuck or fail." — Review the message details in Twilio Console → Messaging → Logs. Check the destination number, account balance, and messaging registration.
"Inbound replies do not appear." — Confirm that both callback URLs in Twilio are correct and use HTTPS. If you rotated your Auth Token, reconnect Twilio in SunrAI.