View and Create New Twilio Subaccounts

If you have customers of your own, Twilio Subaccounts are a great way to distinguish different groups or numbers and usage on your project. Each subaccount has it's own numbers and usage reporting, as well as unique Account SID and Auth Token credentials, but is billed to the same Twilio project balance.

View or switch between subaccounts

  1. Access the Subaccounts page in Console.
  2. Click the desired subaccount's Account Name to view it's unique dashboard, including the Account SID and Auth Token.
    Sub_02b_400px.png 

Return to the main account view in Console

When viewing a subaccount in Console, you can return to your main project by clicking the account name. If a drop-down is displayed, select the account again.

Create a new subaccount from Console

  1. Access the Subaccounts page in Console.
  2. Click Create new Subaccount, or the Icon_New.png icon.
  3. Enter the desired subaccount name, and then click Create.
    Sub_04.png 

Create a New Subaccount from the REST API

To programmatically create a subaccount, make an HTTP POST request to Twilio's Accounts List REST API resource. Here’s an example cURL script:

curl -X POST https://api.twilio.com/2010-04-01/Accounts.json \
--data-urlencode "FriendlyName=newSubaccount" \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token

This example will create a new subaccount called newSubaccount under the project ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. To make this script work for you, make the following updates, and then paste it into a terminal window:

  • Line 2 update with the desired subaccount name, or remove this line to automatically name your subaccount the date and time of the API request
  • Line 3 update with your Account SID and Auth Token.

For full details on creating, suspending, and deleting subaccounts, including Helper Library (SDK) code samples, please see REST API: Subaccounts (Twilio Docs).

Additional Resources

Have more questions? Submit a request
Powered by Zendesk