Twilio Setup Guide
Quick Reference: Connect your Twilio account to Aestheticc for SMS functionality
š TL;DR - Quick Start
- Create free Twilio account at twilio.com/try-twilio
- Get £15 free trial credit (no credit card required)
- Buy UK phone number in Twilio Console (~Ā£1/month)
- Copy Account SID and Auth Token from Twilio Console
- Navigate to Aestheticc ā Settings ā Integrations ā Twilio
- Paste credentials and phone number
- Complete A2P 10DLC registration
- Send test SMS to verify setup
- Enable appointment reminders
Total Time: 15-20 minutes Total Cost: £0 (free trial) or £1/month (phone number rental)
What is Twilio?
Definition
Twilio is a cloud communications platform that provides SMS, voice, and messaging APIs. Think of it as the "engine" that powers Aestheticc's SMS features.
Why Twilio?
- Industry Standard: Used by Uber, Airbnb, Stripe, WhatsApp
- Reliable: 99.95% uptime SLA, delivers billions of messages monthly
- Global Reach: Send SMS to 180+ countries
- Developer-Friendly: Simple API, excellent documentation
- Pay-As-You-Go: No monthly fees, only pay per message sent
BYOT Model
Aestheticc uses Bring Your Own Twilio (BYOT) - you create your own Twilio account and connect it to Aestheticc. This gives you:
- Lower costs (wholesale rates)
- Full billing transparency
- Own your phone number forever
- Compliance control (your business is the sender)
Step 1: Create Twilio Account
Navigate to Twilio
- Go to https://www.twilio.com/try-twilio
- Click Start your free trial button
Sign Up Form
Required Information: | Field | What to Enter | Example | |-------|---------------|---------| | First Name | Your first name | Sarah | | Last Name | Your last name | Johnson | | Email | Your business email | sarah@glowaesthetics.co.uk | | Password | Secure password (12+ chars) | Use password manager | | Phone Number | Your mobile (for verification) | +44 7700 900123 |
Important: Use a business email you have access to (verification required).
Phone Verification
- Twilio sends 6-digit code to your phone via SMS
- Enter code on verification screen
- Account activated immediately
Troubleshooting:
- Code not received? Check spam folder, try "Resend code"
- Wrong number? Click "Use a different number"
Step 2: Get Free Trial Credit
Trial Credit Details
What You Get:
- £15 free credit (no credit card required)
- Enough for ~375 UK SMS messages (Ā£0.04 each)
- Valid for 7 days (upgrades extend expiration)
Trial Limitations:
- Can only send SMS to verified phone numbers
- "Trial Account" watermark in messages
- Limited to 100 messages/day
How to Verify Phone Numbers (Trial Only):
- In Twilio Console, go to Phone Numbers ā Verified Caller IDs
- Click Add a new number
- Enter client's phone number
- Twilio calls the number with verification code
- Enter code to verify
Upgrade to Remove Limitations:
- Add credit card (no charge until trial credit runs out)
- Removes watermark
- Unlimited sending (rate limits still apply)
- Can send to any phone number
Step 3: Purchase UK Phone Number
Navigate to Phone Numbers
- In Twilio Console, click Phone Numbers in left sidebar
- Click Buy a number button
Number Search
Search Criteria: | Option | Recommendation | Why | |--------|----------------|-----| | Country | United Kingdom | For UK clinic, use UK number | | Number Type | Mobile | Best deliverability for SMS | | Capabilities | SMS (required), Voice (optional) | SMS is mandatory | | Area Code | Leave blank | Not important for SMS |
Search Tips:
- Click Search to see available numbers
- Filter by: Starts with, Contains specific digits
- UK mobile numbers start with +447
Purchase Number
Cost: ~Ā£1.00/month (billed monthly)
- Click Buy next to chosen number
- Confirm purchase
- Number appears in Active Numbers list
Example UK Number: +44 7700 900123
ā ļø Important: Copy this number - you'll need it in Aestheticc setup!
Step 4: Get Twilio Credentials
Locate Account SID and Auth Token
- In Twilio Console, go to Dashboard (home page)
- Scroll to Account Info section
- You'll see two important values:
| Credential | Format | Example | Purpose | |------------|--------|---------|---------| | Account SID | Starts with "AC", 34 chars | AC1234567890abcdef1234567890abcd | Your Twilio account ID | | Auth Token | 32-character string | 1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p | Secret password for API |
Copy Credentials
Account SID:
- Click Copy icon next to Account SID
- Paste somewhere safe (Notes app, password manager)
Auth Token:
- Click Show to reveal Auth Token
- Click Copy icon
- Paste somewhere safe
ā ļø Security Warning:
- Auth Token is like a password - keep it secret!
- Never share in email, Slack, or GitHub
- If compromised, regenerate in Twilio Console ā Settings ā API Keys
Step 5: Configure Twilio in Aestheticc
Navigate to Integrations
- Log in to Aestheticc dashboard
- Click Settings in left sidebar
- Click Integrations tab
- Find Twilio section
- Click Connect Twilio
Enter Credentials
Twilio Configuration Form:
| Field | What to Enter | Where to Find It | |-------|---------------|------------------| | Account SID | AC1234... (34 chars) | Twilio Console ā Dashboard ā Account Info | | Auth Token | 1a2b3c4d... (32 chars) | Twilio Console ā Dashboard ā Account Info (click "Show") | | Phone Number | +447700900123 | Twilio Console ā Phone Numbers ā Active Numbers |
Phone Number Format:
- ā Correct: +447700900123 (starts with +, includes country code)
- ā Incorrect: 07700900123 (missing +44)
- ā Incorrect: +44 7700 900123 (spaces not allowed)
Validation
When you click Save, Aestheticc performs automatic checks:
Validation Steps (takes ~3 seconds):
- ā Format Check: Account SID starts with "AC", 34 characters
- ā Phone Format Check: Number starts with "+", valid format
- ā Credential Test: Aestheticc connects to Twilio API using your credentials
- ā Account Verification: Fetches account info to confirm credentials are valid
Success Message:
"Twilio configuration saved successfully! Status: pending_a2p"
Error Messages: | Error | Cause | Fix | |-------|-------|-----| | "Invalid Account SID format" | Account SID doesn't start with "AC" or wrong length | Check you copied entire SID (34 chars) | | "Invalid phone number format" | Phone number missing "+" or country code | Add + and country code (e.g., +44) | | "Twilio credentials are invalid" | Wrong Account SID or Auth Token | Double-check credentials in Twilio Console | | "Failed to save configuration" | Server error | Try again, contact support if persists |
Step 6: Complete A2P 10DLC Registration
What is A2P 10DLC?
Definition: A2P 10DLC = Application-to-Person 10-Digit Long Code
Purpose: Combat SMS spam by requiring businesses to register their brand and messaging use cases with mobile carriers (AT&T, Verizon, T-Mobile, etc.)
Why Required:
- Twilio mandates A2P 10DLC for ALL business SMS globally (not just US)
- Improves message deliverability (fewer spam filters)
- Higher sending limits (60 msg/sec vs 1 msg/sec unregistered)
- Prevents phone number suspension
Registration Steps (In Aestheticc)
After saving Twilio credentials, Aestheticc shows A2P 10DLC Registration Wizard.
Step 6.1: Register Your Brand
Brand Information Required:
| Field | What to Enter | Example | |-------|---------------|---------| | Business Legal Name | Exact name on business registration | "Glow Aesthetics Ltd" | | Business Type | Select from dropdown | "Private Company" or "Sole Proprietor" | | Country | United Kingdom | UK | | Tax ID | UTR or Company Number | 1234567890 (UTR) or 12345678 (Co. Number) | | Business Website | Your clinic's website | https://glowaesthetics.co.uk | | Industry | Select "Healthcare" or "Beauty & Personal Care" | Healthcare | | Business Address | Physical address (not PO Box) | 123 High Street, London, SW1A 1AA |
Where to Find Tax ID:
- Limited Company: Companies House registration number (8 digits)
- Sole Trader: Unique Taxpayer Reference (UTR) from HMRC (10 digits)
Brand Registration Cost: ~Ā£4 one-time fee (billed by Twilio)
Processing Time: 1-5 business days (usually 1-2 days)
Step 6.2: Register Your Campaign
Campaign = Your Use Case for SMS (e.g., "Appointment Reminders")
Campaign Information Required:
| Field | What to Enter | Example | |-------|---------------|---------| | Campaign Name | Internal reference | "Appointment Reminders & Marketing" | | Campaign Description | Detailed explanation of SMS use | "Automated appointment reminders sent 24h before appointment. Opt-in marketing campaigns for special offers and new treatments." | | Message Flow | Describe user experience | "Clients receive appointment confirmation when booking. Reminder sent 24h before appointment. Clients can reply CONFIRM or call to reschedule." | | Sample Messages | 2-3 example messages | See examples below | | Opt-In Method | How clients consent | "Checkbox on client signup form. Verbal confirmation during appointment booking." | | Opt-Out Method | How clients can stop messages | "Reply STOP to any message. Request via phone/email." | | Help Message | What clients see when replying HELP | "Glow Aesthetics: Reply STOP to unsubscribe. Call 020-1234-5678 for help." | | Privacy Policy URL | Link to privacy policy | https://glowaesthetics.co.uk/privacy |
Sample Messages to Provide:
1. "Hi Sarah! Reminder: Botox appointment tomorrow at 2:00 PM with Dr. Smith. Reply CONFIRM or call 020-1234-5678. - Glow Aesthetics"
2. "Thanks for booking, Sarah! Your lip filler consultation is confirmed for Mon 15th March at 10:00 AM. See you soon! - Glow Aesthetics"
3. "Spring Special: 20% off all Botox treatments this week! Book now: glowaesthetics.co.uk or call 020-1234-5678. Reply STOP to opt out."
Campaign Registration Cost: ~Ā£10-15 one-time fee per campaign (billed by Twilio)
Processing Time: 1-5 business days (usually 1-2 days)
Step 6.3: Trust Score
After registration, carriers assign a Trust Score based on:
- Business legitimacy (website, tax ID verification)
- Industry reputation (healthcare = higher trust)
- Campaign clarity (clear opt-in/opt-out = higher trust)
Trust Score Impact: | Score | Daily Sending Limit | What It Means | |-------|---------------------|---------------| | High (75-100) | 2,000-6,000 messages/day | Excellent - new business with legitimate website | | Medium (50-75) | 500-2,000 messages/day | Good - most clinics land here | | Low (1-50) | 100-500 messages/day | Limited - improve business info | | Unregistered | 1 message/second (~200/day) | Not sustainable for business use |
Most UK aesthetic clinics get Medium-High scores (sufficient for 100-500 appointments/day).
Step 7: Test SMS
Send Test Message
After A2P 10DLC registration completes (or while pending):
- In Aestheticc, go to Settings ā Integrations ā Twilio
- Click Send Test SMS button
- Enter your mobile number: +44 7700 900123
- Click Send
Expected Message (arrives within 5-30 seconds):
Test message from Aestheticc! Your Twilio integration is working correctly. š
Troubleshooting: | Issue | Cause | Fix | |-------|-------|-----| | Message not received after 1 minute | Wrong phone number format | Check number starts with + and country code | | "Failed to send" error | Twilio credentials invalid | Re-check Account SID and Auth Token | | "Trial account" warning in message | Using trial account | Upgrade Twilio account (add credit card) | | "Insufficient funds" error | No credit in Twilio account | Add funds or enable auto-recharge |
Step 8: Enable Appointment Reminders
Configure Reminder Settings
- Navigate to Settings ā Appointments ā Reminders
- Toggle Enable SMS Reminders to ON
- Configure timing:
Timing Options: | Reminder | When Sent | Recommended For | |----------|-----------|-----------------| | 24 hours before | 1 day before appointment | All appointments | | 3 hours before | 3 hours before appointment | Standard (most clinics use this) | | 1 hour before | 1 hour before appointment | High-value or frequently-rescheduled clients |
Template Selection:
- Choose from pre-built templates or create custom template
- Preview message with merge tags replaced
- Test by booking fake appointment for yourself
Monitor Reminder Delivery
- Go to Messages ā SMS Log
- Filter by Type: Appointment Reminder
- Check delivery status:
- ā Delivered: Successfully sent
- ā³ Queued: Waiting to send
- ā Failed: Check client's phone number
Twilio Configuration Settings
Twilio Status
After configuration, Aestheticc tracks your Twilio status:
| Status | Meaning | Actions Available | |--------|---------|-------------------| | not_configured | No Twilio account connected | Connect Twilio | | pending_a2p | Credentials saved, A2P registration in progress | Wait for approval (1-5 days) | | active | Fully configured and operational | Send SMS, create campaigns | | error | Last SMS send failed | Check error details, verify credentials | | suspended | Twilio account suspended (rare) | Contact Twilio support |
View Status: Settings ā Integrations ā Twilio ā Status indicator
Credential Security
How Aestheticc Protects Your Credentials:
- Encryption: Account SID and Auth Token encrypted before storage using AES-256
- Secure Storage: Encrypted values stored in PostgreSQL database (Google Cloud SQL)
- No Display: Credentials never displayed after initial save (only phone number shown)
- API-Only Access: Credentials only used server-side for Twilio API calls
- Audit Logging: All SMS sends logged with timestamp, recipient, status
Phone Number NOT Encrypted: Your Twilio phone number is stored in plain text (needed for display in UI, not sensitive like credentials).
Disconnect Twilio
When to Disconnect:
- Switching to different Twilio account
- No longer using SMS features
- Testing during development
How to Disconnect:
- Settings ā Integrations ā Twilio
- Click Disconnect Twilio button
- Confirm warning: "This will stop all SMS functionality"
- All Twilio fields cleared from database
What Happens:
- ā SMS history preserved (for compliance/records)
- ā Templates preserved (can reuse when reconnecting)
- ā Cannot send new SMS until reconnected
- ā Appointment reminders stop sending
š” Pro Tips
Twilio Account Management
Enable Auto-Recharge:
- In Twilio Console, go to Billing ā Auto Recharge
- Set: "When balance falls below £10, add £20"
- Prevents service interruption from insufficient funds
Set Usage Alerts:
- Twilio Console ā Billing ā Alerts
- Set alert at 80% of monthly budget
- Receive email before hitting unexpected costs
Monitor Usage:
- Check Twilio Console ā Usage weekly
- Look for unexpected spikes (could indicate spam or misconfiguration)
Number Selection
UK Mobile vs Landline:
- Mobile (starts with +447): Best for SMS (higher deliverability)
- Landline (starts with +442): NOT recommended for SMS (many carriers block)
Choose Memorable Number (Optional):
- Search for numbers with repeated digits: +447777777xxx
- Or numbers that spell words (less common in UK)
Branded Sender ID (Coming Soon): Instead of phone number, clients see "GlowClinic" as sender (higher open rates). Requires:
- A2P 10DLC registration complete
- Additional carrier approval
- UK support limited (works better in US)
A2P 10DLC Tips
Expedite Approval:
- Use real business website (active, professional design)
- Provide detailed campaign description (more detail = faster approval)
- Include clear opt-in/opt-out methods
- Match business name exactly to registration documents
Multiple Campaigns: If you have distinct use cases, register separate campaigns:
- Campaign 1: "Appointment Reminders" (transactional)
- Campaign 2: "Marketing Promotions" (marketing)
This can improve trust scores and deliverability.
šÆ Use Cases
Use Case 1: New Clinic Setup
Scenario: Just launched clinic, need SMS reminders ASAP.
Twilio Setup Workflow (20 minutes):
- 5 min: Create Twilio account, verify phone, get £15 trial credit
- 2 min: Buy UK mobile number (+447 number, £1/month)
- 3 min: Copy Account SID, Auth Token, phone number
- 2 min: Paste credentials into Aestheticc Settings ā Integrations ā Twilio
- 5 min: Complete A2P 10DLC brand registration
- 2 min: Complete A2P campaign registration
- 1 min: Send test SMS to yourself to verify
Result: SMS reminders active immediately (A2P approval pending, but can send during trial with verified numbers).
Use Case 2: Upgrading from Trial
Scenario: Used £15 trial credit, ready to upgrade.
Upgrade Workflow (2 minutes):
- Twilio Console ā Billing ā Upgrade Account
- Add credit card (no charge until trial credit exhausted)
- Enable auto-recharge: "Add £20 when balance < £10"
- Immediately removes "Trial Account" watermark from messages
- Can now send to ANY phone number (not just verified)
Cost After Trial:
- Phone number rental: £1/month
- SMS messages: £0.04 per UK SMS
- Example: 100 appointments/week à 2 reminders = £32/month
Use Case 3: Multi-Location Clinic
Scenario: 3 clinic locations, want separate SMS numbers per location.
Multi-Account Setup:
- Create 3 separate Twilio accounts (one per location)
- Location 1: +447700 900123
- Location 2: +447700 900456
- Location 3: +447700 900789
- In Aestheticc, configure Twilio separately for each business profile
- Clients receive SMS from their local clinic's number
Alternative: Use one Twilio account with 3 numbers, manually specify sending number per campaign (requires custom development).
ā Common Questions
Q: Do I need a credit card to create Twilio account? A: No! Twilio offers £15 free trial credit with no credit card required. You'll only need a credit card when trial credit runs out or to remove "Trial Account" watermark.
Q: How long does Twilio account creation take? A: 2-5 minutes. Phone verification is instant, account activation is immediate.
Q: Can I use my existing business phone number with Twilio? A: Only if it's already a Twilio number. Porting existing numbers to Twilio is complex (can take 7-14 days, requires carrier approval). Easier to buy a new Twilio number (~Ā£1/month).
Q: What if I already have a Twilio account from another app? A: You can use the SAME Twilio account for multiple apps (Aestheticc, Zapier, etc.). Just use the same Account SID and Auth Token. Billing is combined in one Twilio account.
Q: Can I change my Twilio phone number later? A: Yes! Buy new number in Twilio Console, then update phone number in Aestheticc Settings ā Integrations ā Twilio. Clients will receive future SMS from new number.
Q: How long does A2P 10DLC registration take? A: 1-5 business days (usually 1-2 days). Brand registration averages 1 day, campaign registration averages 1-2 days. You can send SMS while registration is pending (limited to verified numbers during trial).
Q: What if A2P 10DLC registration is rejected? A: Rare (>95% approval rate). Rejections usually due to:
- Incomplete business information
- Invalid website or tax ID
- Unclear campaign description
Fix issues and resubmit. Twilio provides rejection reason.
Q: Can I skip A2P 10DLC registration? A: Not recommended. Unregistered numbers have severe limitations:
- 1 message/second sending limit (~200 messages/day)
- Higher spam filtering (many messages never delivered)
- Risk of number suspension by Twilio
- Lower trust score with carriers
Cost to register (Ā£14-19 one-time) is worth it for business use.
Q: Do I need separate Twilio accounts for testing and production? A: Recommended for developers, optional for clinic owners. If you're just using Aestheticc (not developing), one Twilio account is sufficient. Use Aestheticc's staging environment for testing if available.
Q: What happens if I run out of Twilio credit? A: SMS messages will fail with "Insufficient funds" error. Enable auto-recharge in Twilio Console to prevent this.
Q: Can I send SMS internationally (e.g., to clients traveling abroad)? A: Yes, but costs vary widely (Ā£0.08-0.50 per message depending on country). Check Twilio pricing page for specific countries.
Q: Is Twilio GDPR compliant? A: Yes. Twilio is GDPR compliant and has Data Processing Agreements (DPA) available. SMS messages are stored for compliance but can be deleted per retention policies.
Q: What if Twilio is down? A: Rare (99.95% uptime SLA). If Twilio has outage:
- SMS sends will fail
- Aestheticc shows error: "Twilio service unavailable"
- Check Twilio status page: status.twilio.com
- Messages will queue and send when service restores
šÆ Next Steps
After Twilio setup:
- SMS Templates - Create reusable message templates
- Appointment Reminders - Configure automated reminders
- Campaign SMS - Send marketing campaigns
- SMS Compliance - UK PECR regulations
š Need Help?
Aestheticc Support (for integration issues): š§ support@aestheti.cc
Twilio Support (for account, billing, deliverability): š§ support@twilio.com š twilio.com/help š +1 (415) 123-4567 (24/7 phone support for paid accounts)
Twilio Documentation: š twilio.com/docs/sms š twilio.com/docs/messaging/guides/a2p-10dlc (A2P 10DLC guide)
Last Updated: 2025-11-10 Related Documentation: SMS Overview, SMS Templates, Appointment Reminders
Need More Help?
Can't find what you're looking for? Our support team is here to help you get the most out of Aestheticc.