Twilio
Send SMS from your Rocket.new app with Twilio to deliver phone verification codes, order alerts, appointment reminders, and outbound notifications.
Describe the SMS flow you want in chat and Rocket generates the complete logic - message templates, sending API calls, phone number formatting, and delivery tracking.
What you can do
SMS verification codes
One-time codes for account verification, email confirmation, or identity checks.
Two-factor authentication
An extra layer of security with SMS-based verification during login.
Order and shipping updates
SMS notifications when order status changes, from confirmation to delivery.
Appointment reminders
Automated SMS reminders before scheduled appointments, meetings, or events.
Alert and notification system
Time-sensitive alerts for system events, threshold warnings, or custom triggers.
Before you connect
You need three values from the Twilio Console:
- Account SID - found on the Twilio Console dashboard
- Auth Token - found on the Twilio Console dashboard
- From Phone Number - your Twilio number in E.164 format, e.g.
+15551234567
How to find your Auth Token and Account SID - Twilio Help Center
Never paste your Account SID or Auth Token directly into chat. Always use the secure connection popup.
Twilio is a task-level connector. Each Rocket task connects to its own Twilio credentials independently.
Connect Twilio
You can connect from two places - both open the same popup.
Option 1: From chat
Type a prompt that mentions SMS - for example, Connect Twilio and send an SMS verification code when a user signs up. Rocket detects the intent and shows a Connect button inline. Click it and the popup opens.


Option 2: From the Connectors tab
Click the ... button in the preview toolbar, then select Connectors.


Click the Twilio card, then click Connect.


After clicking Connect
A popup opens. Enter your Account SID, Auth Token, and From Phone Number, then click Connect.


A green dot appears next to Twilio when the connection is active.
Update or disconnect
Go to Connectors > Twilio. Click Edit to update your credentials or Disconnect to remove the integration.


Example prompts
| What you want | Prompt to use |
|---|---|
| Verification code | Send a 6-digit SMS verification code through Twilio when a user signs up. Expire it after 10 minutes. |
| Two-factor auth | Add SMS-based two-factor auth to my login flow. Send a code via Twilio after password entry. |
| Order confirmation | Send an SMS through Twilio when a user completes checkout with their order number and total. |
| Shipping update | Send an SMS through Twilio when an order ships with the tracking number and carrier link. |
| Appointment reminder | Send an SMS reminder 24 hours before a scheduled appointment with date, time, and reschedule link. |
| Password reset | Send an SMS with a one-time code for password reset. Expire the code after 5 minutes. |
| Low balance alert | Send an SMS alert when a user's account balance drops below $5. Include a link to add funds. |
| Welcome message | Send a welcome SMS through Twilio when a new user creates an account. |
| Flash sale alert | Send an SMS to opted-in users announcing a 24-hour flash sale. |
Tips
- Pair with Supabase. Rocket stores verification codes and user phone numbers in Supabase. Connect Supabase before Twilio for the best results.
- Trial accounts have restrictions. On a Twilio trial account, you can only send SMS to verified numbers. Upgrade before going live.
- Phone numbers must be in E.164 format. Always include the country code, e.g.
+15551234567. - SMS costs vary by country. Twilio charges per message based on destination. Check Twilio's pricing page for current rates.
- One Twilio account per task. Each Rocket task connects to one set of Twilio credentials. Use different tasks for different Twilio accounts.
Revoke or rotate your Auth Token
Disconnecting in Rocket only stops using the credentials in this task. To invalidate the Auth Token itself, rotate it in the Twilio Console.
- Open API keys & auth tokens in the Twilio Console.
- Under Auth Tokens, click Request a secondary token, then copy the new secondary token.
- Update Rocket with the new Auth Token using Edit on the connector card, and confirm SMS still works.
- Click Promote to primary. Promoting deletes the old primary Auth Token so it can no longer authenticate.
- If Edge Functions still fail after you update Rocket, or Rocket cannot save the new token, update the secret manually in Supabase. The typical secret name is
TWILIO_AUTH_TOKEN.
Manage Auth Tokens in the Twilio Console
Rotate your Auth Token in the Twilio Console.
Promoting a secondary token deletes the old primary Auth Token. Any Rocket task still using the old token will fail until you connect the new one. Edge Functions that send SMS through Twilio also need the updated secret in Supabase if Rocket cannot push it for you.

