VoIP BYOK (Twilio)
The BYOK (Bring Your Own Keys) model lets you use your own Twilio account with SellerCockpit. This gives you full control over your Twilio billing, phone numbers, and configuration.
When to Use BYOK
Choose BYOK if you:
- Already have a Twilio account you want to use
- Want direct control over Twilio billing
- Need specific Twilio features not available in Platform VoIP
- Prefer to manage your own phone number inventory
- Have enterprise requirements for account isolation
For most users, we recommend Platform VoIP for its simplicity.
Prerequisites
To use VoIP with BYOK, you need:
- A Twilio account (sign up at twilio.com)
- A Twilio phone number with Voice capabilities
- API credentials (Account SID, API Keys)
- A modern web browser with microphone access
Setup Guide
Step 1: Create Twilio Account
- Sign up at twilio.com
- Complete account verification
- Add billing information (required for outbound calls)
Step 2: Get a Phone Number
- In Twilio Console, go to Phone Numbers > Manage > Buy a number
- Select your country and desired area code
- Choose a number with Voice capabilities
- Purchase the number
Step 3: Create TwiML App
- Go to Voice > TwiML Apps in Twilio Console
- Click Create new TwiML App
- Name it “SellerCockpit”
- Leave Voice URLs empty (SellerCockpit handles routing)
- Save and note the TwiML App SID (starts with
AP...)
Step 4: Generate API Keys
- Go to Account > API keys & tokens
- Click Create API key
- Give it a friendly name (e.g., “SellerCockpit Production”)
- Select Standard key type
- Important: Save both the SID and Secret immediately - you won’t see the secret again!
Step 5: Enable the Add-on
- In SellerCockpit, go to Settings > Add-ons
- Find Twilio Calling (BYOK) in the list
- Click Enable
Step 6: Configure Credentials
- Go to Settings > Twilio
- Enter your credentials:
| Field | Where to Find |
|---|---|
| Account SID | Twilio Console dashboard (starts with AC...) |
| API Key SID | From Step 4 (starts with SK...) |
| API Key Secret | From Step 4 |
| TwiML App SID | From Step 3 (starts with AP...) |
| Phone Number | Your Twilio number in E.164 format (e.g., +14155551234) |
- Select region: US1 (recommended)
- Click Save Settings
- Click Test Connection to verify
Region Selection
Important: Use US1 region for best compatibility.
| Region | Location | Notes |
|---|---|---|
| US1 | Virginia, USA | Recommended for all customers |
| IE1 | Ireland | May cause TwiML fetch errors (Error 31000) |
Even if you’re based in Europe, US1 is recommended as it has better TwiML app compatibility.
Phone Number Format
Your phone number must be in E.164 format:
- Correct:
+14155551234 - Correct:
+442071234567 - Incorrect:
(415) 555-1234 - Incorrect:
415-555-1234
Troubleshooting
Error 31000: TwiML Fetch Failed
This is the most common error. Solutions:
- Switch to US1 region in Settings > Twilio
- Verify TwiML App SID is correct
- Ensure no Voice URLs are configured in your TwiML app
- Check Twilio account isn’t suspended
Call Won’t Connect
- Verify all credentials are entered correctly
- Check API Key SID starts with
SK... - Ensure Account SID starts with
AC... - Test connection button in settings
- Check browser console for errors
”Twilio credentials incomplete” Error
One or more required fields are missing:
- Account SID
- API Key SID
- API Key Secret
- TwiML App SID
- Phone Number
Go to Settings > Twilio and fill in all fields.
Invalid API Key Secret
The secret may have been entered incorrectly. Since you can’t view it again in Twilio:
- Go to Twilio Console > API Keys
- Delete the existing key
- Create a new API key
- Immediately copy the new secret
- Update in SellerCockpit
Costs
With BYOK, you pay Twilio directly:
| Item | Approximate Cost |
|---|---|
| Phone number rental | ~$1/month |
| Outbound calls | $0.01-0.02/minute (varies by destination) |
| Inbound calls | ~$0.01/minute |
| Recording storage | Minimal (stored in your Supabase) |
SellerCockpit does not charge additional fees for BYOK VoIP usage.
Security Best Practices
- Never share API credentials - Treat them like passwords
- Rotate API keys quarterly - Create new keys and update SellerCockpit
- Enable 2FA on Twilio - Protect your Twilio account
- Monitor usage - Check Twilio dashboard for unusual activity
- Use environment variables - If building integrations, never hardcode secrets
Using BYOK with Platform VoIP
You can only use one VoIP method at a time:
- If BYOK is enabled, Platform VoIP is disabled
- If Platform VoIP is enabled, BYOK is disabled
To switch, disable one add-on before enabling the other in Settings > Add-ons.
Need help? Contact support at support@sellercockpit.com