What you’ll build
By the end of this guide, Marcus will be able to send WhatsApp messages on behalf of your company, with:- A Meta-approved number (not your personal one)
- Meta’s 24-hour messaging window respected automatically
- Reply tracking arriving in the chat
- A complete audit trail for every message
Prerequisites
Twilio account
Pay-as-you-go is enough. twilio.com
A new phone number
Preferably NOT a personal or team number. Use a number dedicated to the
company.
Company documents
Company registration (CNPJ), legal name, and address. Meta verifies these
before approving.
Verified domain (recommended)
Speeds up Meta approval. Not required, but helps avoid rejection.
Step 1: Create a Twilio account
Go to twilio.com and sign up. The standard process includes email and phone verification — nothing unusual here.New account vs. sub-account. If you’re already running other things on
Twilio (OTP SMS, voice flows), consider creating a dedicated sub-account
for ApolloSpace AI. Billing isolation and permissions stay cleaner that way.
Step 2: Get your WhatsApp number approved
In the Twilio dashboard: Develop → Messaging → Senders → WhatsApp senders → Get started. Twilio walks you through a wizard:- Confirm company details (CNPJ, legal name, address)
- Register the number (ideally a new, dedicated number)
- Submit for Meta approval
- Wait
Step 3: Create a Messaging Service
Still in Twilio: Develop → Messaging → Services → Create new.
Save and copy the Messaging Service SID (format
MGxxxx...). You’ll paste
it into ApolloSpace AI in Step 5.
Step 4: Get your Account SID and Auth Token
In the Twilio dashboard, go to Account Dashboard → Account Info:Step 5: Connect to ApolloSpace AI
In ApolloSpace AI: Settings → Integrations → WhatsApp → Connect Twilio. Paste the three values:
Click Connect. ApolloSpace AI handles the following automatically:
- Validates the credentials against the Twilio API
- Updates the inbound webhook and status callback on the Messaging Service to point at ApolloSpace AI (you don’t need to do this manually)
- Marks the integration as active
Step 6: Send a test message
In Settings → Integrations → WhatsApp → Send test message:- Enter your own WhatsApp number as the recipient
- Choose a Meta-approved template (or free-form text if you’ve recently exchanged messages with this number)
- Click Send
Troubleshooting — common errors
Where to find logs:
Production tips
Before operating at real scale, it’s worth reviewing these:Credential rotation
Credential rotation
Rotate the Twilio Auth Token:
- Always when someone with access leaves the team
- Periodically (every 6 months is a reasonable cadence) for hygiene
- Immediately if there’s any suspicion of a leak
Quality Rating in Meta Business
Quality Rating in Meta Business
Meta assigns a Quality Rating to your number (green / yellow / red). If
it drops to red:
- You lose the right to initiate marketing conversations
- You may receive a temporary number suspension
- In extreme cases, a permanent ban
Multiple numbers (scaling)
Multiple numbers (scaling)
As volume grows, consider adding multiple numbers to the same Messaging
Service. Twilio automatically distributes load and isolates the impact if
one number is penalized.Cost: each approved number carries a monthly Twilio hosting fee, regardless
of volume.
Approved templates
Approved templates
Create templates in your Twilio account, not in ApolloSpace AI. Why:
- Twilio submits them to Meta and manages the approval cycle
- Templates are available to any tool using the same Messaging Service (not just ApolloSpace AI)
- ApolloSpace AI reads your approved templates automatically
Disconnect
In Settings → Integrations → WhatsApp → Disconnect:- ApolloSpace AI removes the credentials from storage
- ApolloSpace AI reverts the webhooks in Twilio (you’ll need to point them at another endpoint afterward — Twilio does not allow an empty webhook)
- Active campaigns using WhatsApp pause until you reconnect
Next steps
Marcus in action
How the outbound agent operates the channel you just connected.
Outbound — feature
Campaign types, cadence, and metrics.
Costs
How WhatsApp usage factors into your org’s billing.