Sub-Accounts: How Platforms Give Every Customer Their Own Number, Registration and Bill
If you run a platform that gives AI agents to your own customers, sub-accounts let each customer have isolated numbers, conversations and 10DLC registration under one API key and one bill.

If you build a platform that gives AI agents to other businesses (an AI receptionist for clinics, a booking agent for salons, a sales assistant for agencies), the first question before onboarding a client is always the same: how do I keep each customer's numbers, messages and compliance separate without running a separate account for each one? On AgentPhone the answer is sub-accounts. One API key, an isolated sub-account per customer, and one rolled-up bill. This post explains how that works and what an ISV messaging platform needs to know before it scales.
The multi-tenant problem
When you put many customers on one messaging account, three things go wrong:
- 1Data mixes. Customer A's conversations, contacts and webhooks sit next to customer B's, and one bug can expose the wrong thread.
- 2Compliance mixes. In the US, every business that texts needs its own 10DLC brand and campaign. You cannot register "my platform" once and text for a dental clinic and a car dealer under the same campaign.
- 3Risk mixes. If one customer sends spam and gets flagged, you do not want every other customer's texts to stop.
Sub-accounts solve all three.
How sub-accounts work
A sub-account is a fully isolated account linked to your main (master) account:
Master account (billing, API keys)├── Sub-account "Northside Dental" (own agents, numbers, messages, calls)├── Sub-account "Harbour Salon" (own agents, numbers, messages, calls)└── Sub-account "Client X" (own agents, numbers, messages, calls)
| Shared with master | Isolated per sub-account | |
|---|---|---|
| Billing wallet | Yes | |
| API keys | Yes | |
| Team members | Yes | |
| Agents | Yes | |
| Phone numbers | Yes | |
| Conversations and messages | Yes | |
| Voice calls | Yes | |
| Webhooks | Yes | |
| 10DLC registration | Yes | |
| Contacts | Yes |
You can have up to 500 sub-accounts per master account. Sub-accounts cannot create their own sub-accounts, API keys or billing settings, so control stays with you.
One API key, one header
You never manage a key per customer. Use your master key and add X-Sub-Account-Id to act inside a customer's sub-account.
Create a sub-account:
curl -X POST https://api.agentphone.ai/v1/sub-accounts \-H "Authorization: Bearer $AGENTPHONE_API_KEY" \-H "Content-Type: application/json" \-d '{"name": "Northside Dental"}'
Then create that customer's agent and number in the same scope:
SUB_ID="the id returned above"AGENT_ID=$(curl -sS "https://api.agentphone.ai/v1/agents" \-H "Authorization: Bearer $AGENTPHONE_API_KEY" -H "X-Sub-Account-Id: $SUB_ID" \-H "Content-Type: application/json" \-d '{"name":"Northside Receptionist","voiceMode":"hosted","systemPrompt":"You book and reschedule dental appointments."}' | jq -r '.id')curl -sS "https://api.agentphone.ai/v1/numbers" \-H "Authorization: Bearer $AGENTPHONE_API_KEY" -H "X-Sub-Account-Id: $SUB_ID" \-H "Content-Type: application/json" \-d "{\"country\":\"US\",\"agentId\":\"$AGENT_ID\"}"
Use the header consistently on every request for that customer: agents, numbers, messages, calls and webhooks. Most requests without the header go to the master account.
Registration per customer
Each sub-account has its own 10DLC registration, so each of your customers registers as their own brand with their own use case. When you file with POST /v1/register from the master account, it creates a new sub-account by default (create_sub_account: true) and returns its sub_account_id. Save it and create that customer's numbers and agents there.
You can read each customer's registration status from your own backend and show it in your product:
curl "https://api.agentphone.ai/v1/register/status" \-H "Authorization: Bearer $AGENTPHONE_API_KEY" \-H "X-Sub-Account-Id: $SUB_ID"
{"campaign_status":"none","message":"No registration submitted.","stage":null,"issue":null,"sub_account_id":null}
As review progresses, stage moves through received, verifying_business, registering_campaign, carrier_review, provisioning and complete, or action_required with an explanation if something needs fixing. Approval typically takes 1 to 3 business days.
Do not make customers wait for SMS approval
Registration only applies to SMS. A clinic or merchant can start on an iMessage line while its 10DLC registration is pending, because iMessage needs no carrier registration. Your customer goes live on day one, and adds SMS when the campaign is approved.
Misuse stays contained
Restrictions are isolated too. If one customer's sub-account is flagged for misuse, the flag applies to that sub-account. Your master account and your other customers keep sending. That protects your whole platform from one bad tenant.
One bill, custom rates
All sub-accounts draw from your master account's wallet, so you get one rolled-up bill instead of hundreds. Usage is still tracked per sub-account, so you can see what each customer costs and bill them however you like. Custom per-customer rates are available on request. Sub-accounts themselves are included at no extra cost.
Also useful for
- Separate campaigns for one brand, for example marketing and customer care, which carriers treat as different use cases.
- Multiple brands under one company, each with its own phone presence.
- Agencies managing clients.
- Dev and staging environments next to production.
Dashboard access
From Settings on the master account, open Sub-Accounts, click Create, and click any sub-account to switch into its full dashboard. A "Back to main account" banner takes you home.
FAQ
What is a sub-account? An isolated account under your master account with its own agents, numbers, conversations, calls, webhooks, contacts and 10DLC registration, sharing your billing and API keys.
How many sub-accounts can I create? Up to 500 per master account.
Do I need a separate API key for each customer? No. Use your master key with the X-Sub-Account-Id header.
Can each customer have its own 10DLC registration? Yes. Registration is isolated per sub-account, and you can read each one's status through the API.
If one customer gets flagged, are the others affected? No. Misuse flags stay on that customer's sub-account.
Is this a Twilio subaccounts alternative? Yes. Sub-accounts give you the same tenant isolation, plus agents, conversation history and iMessage built in.
Read the sub-accounts docs and the SMS registration guide.


