WhatsApp Embedded Signup
WhatsApp Embedded Signup enables businesses to connect their Facebook Business Manager account to Telnyx and provision WhatsApp Business Account (WABA) resources through a streamlined browser-based workflow.Prerequisites
Before starting the embedded signup process:Telnyx Account Setup
Required account status:
- Active Telnyx account with messaging enabled
- Valid payment method configured
- Account in good standing with no billing issues
- Log in to Telnyx Portal
- Navigate to Messaging → WhatsApp
- Ensure you have admin permissions for your organization
Facebook Business Manager
Business Manager requirements:
- Facebook Business Manager account (business.facebook.com)
- Admin access to the Business Manager account
- Business verification completed (recommended for production use)
- Each phone number can only be associated with one Business Manager
- Business Manager must have appropriate permissions for WhatsApp Business API
- Account must comply with Facebook Business policies
Signup Flow Overview
The embedded signup process follows a multi-step finite state machine (FSM) that progresses through these states: Each state represents a checkpoint in the signup process with specific completion criteria and potential failure points.Step-by-Step Signup Process
Initiate Embedded Signup
From Telnyx Portal:
- Navigate to Messaging → WhatsApp → Getting Started
- Click Connect Facebook Business Manager
- Review the permissions and requirements displayed
- Click Begin Setup to start the embedded signup flow
- Telnyx creates a signup session with state
initiated - Portal generates a secure OAuth URL for Facebook authorization
- Session tracking begins for completion monitoring
Facebook OAuth Authorization
Facebook authorization flow:
- Browser redirects to Facebook Business Manager OAuth consent screen
-
Review the requested permissions:
- WhatsApp Business Management — Create and manage WABA
- Business Asset Management — Associate phone numbers and templates
- Webhook Management — Configure message and status webhooks
- Click Continue to grant permissions
- Select target Business Manager if you have multiple
- Facebook validates your Business Manager admin status
- OAuth token is generated and securely transmitted to Telnyx
- Signup state advances to
facebook_auth
- Permission denied: Ensure you have admin access to Business Manager
- Business not verified: Some features require verified Business Manager
- Already connected: Phone number may be connected to another provider
WhatsApp Business Account Creation
WABA provisioning:Telnyx automatically creates your WhatsApp Business Account using the connected Business Manager:
- WABA is created under your Business Manager
- Telnyx is granted the necessary permissions as a solution partner
- Initial configuration is applied (timezone, business category)
- Webhook endpoints are pre-configured for Telnyx integration
- Facebook creates the WABA resource
- Telnyx receives WABA credentials and configuration details
- Signup state advances to
waba_created - WABA settings are synced to Telnyx systems
- Business hours: Set to 24/7 by default
- Business category: Inherited from Business Manager
- Webhooks: Configured for Telnyx endpoint (
https://whatsapp.telnyx.com/webhooks)
Phone Number Registration
Number selection and registration:
- Portal displays available phone numbers from your Telnyx inventory
- Select the phone number to register for WhatsApp
- Choose the WABA to associate with the number
- Confirm the registration request
- Must be owned by your Telnyx account
- Cannot be currently registered with another WhatsApp provider
- Should be a dedicated number (not shared with voice/SMS)
- Phone number is submitted to Facebook for WhatsApp registration
- Facebook begins the verification process
- Signup state advances to
phone_registered - Number status changes to “pending verification”
- Number format: E.164 format (+1234567890)
- Verification method: Automatically determined by Facebook
- Processing time: Usually 1-5 minutes for verification
Phone Number Verification
Facebook verification process:Facebook automatically verifies phone numbers using multiple methods:Verification completion:
- Carrier validation: Facebook verifies number ownership with telecom provider
- SMS verification: Test SMS may be sent to validate delivery capability
- API validation: Facebook tests webhook delivery and response handling
- Typical duration: 1-15 minutes
- Complex cases: Up to 24 hours for carrier validation
- Failed attempts: May require manual review or different number
- Facebook completes all verification checks
- Number status updates to “verified” in Facebook systems
- Signup state advances to
verified - Number becomes available for sending messages
- Voice Call
- SMS Delivery
- Carrier API
Automated voice call to verify number is operational and accessible.Duration: 30 seconds
Requirements: Number must accept incoming calls
Requirements: Number must accept incoming calls
Signup Completion
When verification succeeds, your WhatsApp integration is ready:Account Status
- WABA Status: Active and ready for messaging
- Phone Number: Verified and enabled for sending/receiving
- Webhooks: Configured and receiving events
- Templates: Ready for submission and approval
Next Steps After Signup
Send Messages
Send templates, text, media, and interactive messages
Quickstart
Send your first WhatsApp message end-to-end
Receiving Webhooks
Handle inbound messages and delivery status callbacks
Troubleshooting Common Issues
Facebook OAuth Permission Denied
Facebook OAuth Permission Denied
Error: “You don’t have permission to complete this action”Causes:
- Not admin of Business Manager account
- Business Manager doesn’t have WhatsApp permissions
- Account suspended or restricted
- Verify admin access in Business Manager
- Contact Facebook Business Support if account restricted
- Use different Business Manager account
- Check account verification status
WABA Creation Failed
WABA Creation Failed
Error: “Unable to create WhatsApp Business Account”Causes:
- Business Manager doesn’t meet Facebook requirements
- Too many existing WABAs on Business Manager
- Business policy violations
- Complete Business Manager verification
- Review and resolve any policy violations
- Remove unused WABAs from Business Manager
- Contact Telnyx support with signup session ID
Phone Number Already Registered
Phone Number Already Registered
Error: “This phone number is already connected to WhatsApp Business API”Causes:
- Number registered with another Business Service Provider
- Number previously registered but not properly disconnected
- Number registered to different WABA
- Disconnect number from previous provider
- Contact previous provider to release number
- Use different phone number for registration
- Contact Facebook Business Support for assistance
Verification Timeout or Failure
Verification Timeout or Failure
Error: “Phone number verification failed” or timeoutCauses:
- Number doesn’t support voice calls or SMS
- Carrier blocking verification attempts
- Number routing issues
- Verify number accepts incoming calls and SMS
- Try different phone number if possible
- Contact carrier to check for blocks
- Wait and retry verification process
- Contact Telnyx support with verification details
Webhook Configuration Issues
Webhook Configuration Issues
Error: Webhooks not receiving events after successful signupCauses:
- Webhook URL not properly configured
- Firewall blocking webhook delivery
- Invalid webhook signature verification
- Verify webhook URL accessibility from Facebook servers
- Check webhook signature verification implementation
- Review webhook configuration in Portal
- Test webhook endpoint with manual POST requests
- Check logs for delivery attempts and errors
API Integration
Signup Session Monitoring
Monitor signup progress programmatically using the Signup API:Webhook Events
Receive real-time signup progress updates:Security Considerations
Data Protection
- OAuth tokens: Securely stored and encrypted by Telnyx
- Business Manager access: Limited to necessary permissions only
- Webhook security: All webhooks use Ed25519 signature verification
Best Practices
- Use dedicated Business Manager for production WhatsApp integration
- Review and audit Business Manager permissions regularly
- Monitor webhook logs for unauthorized access attempts
- Implement proper error handling for signup failures
Compliance
- GDPR compliance for EU businesses using WhatsApp
- Data residency requirements for certain industries
- Facebook Business Policy compliance required
- Regular compliance monitoring and reporting
Migration from Manual Setup
If migrating from manual WhatsApp Business API setup:Preparation Steps
- Document existing WABA configuration
- Export message templates and business profile data
- Plan downtime window for migration
- Backup webhook configurations
Migration Process
- Complete embedded signup for new WABA
- Migrate templates to new WABA
- Update webhook endpoints to Telnyx
- Test messaging functionality thoroughly
- Disable old WABA after successful verification
Post-Migration Validation
- Verify all message templates are approved
- Test inbound and outbound messaging
- Confirm webhook delivery and processing
- Monitor message delivery rates and errors