Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
twilio avatar

Twilio Account Setup

  • 121 installs
  • 26 repo stars
  • Updated July 29, 2026
  • twilio/ai

twilio-account-setup is an agent skill that creates and configures a Twilio account, credentials, phone number, and first SDK message as a prerequisite for other Twilio skills.

About

The twilio-account-setup skill is the prerequisite onboarding path for every other Twilio agent skill when no account exists yet or a product must be enabled. Quickstart covers signup at twilio.com/try-twilio, email and phone verification, exporting TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN, buying a phone number, installing the Python or Node SDK, and sending a first SMS with client.messages.create. Trial accounts can only message up to five verified recipient numbers until upgraded, with Console steps to add verified caller IDs. A product enablement table maps AI Assistants, Conversations, Verify, WhatsApp sandbox, and ConversationRelay to Console activation links. SDK installation spans Python, Node, Java, C#, Ruby, PHP, and Go with environment-variable-based client initialization and warnings against hardcoding secrets. Subaccount patterns cover creation, inheritance, credential isolation, and limits for multi-tenant setups. Organization governance such as SSO and SCIM routes to twilio-organizations-setup. Use before any Twilio integration when credentials, numbers, or product activation are missing.

  • One-time prerequisite for all Twilio skills covering signup, credentials, and first API call.
  • Documents trial restrictions and verified recipient number workflow.
  • Lists Console steps to enable Verify, Conversations, WhatsApp sandbox, and other products.
  • Provides SDK install matrix across seven languages with env-based auth.
  • Covers subaccount creation, inheritance, and credential isolation patterns.

Twilio Account Setup by the numbers

  • 121 all-time installs (skills.sh)
  • +5 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #2,833 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

twilio-account-setup capabilities & compatibility

Capabilities
account signup and credential export · trial recipient verification workflow · product enablement console map · multi language sdk installation guide · subaccount management overview
Use cases
api development
Pricing
Freemium
From the docs

What twilio-account-setup says it does

Every Twilio skill requires an active Twilio account and credentials.
SKILL.md
npx skills add https://github.com/twilio/ai --skill twilio-account-setup

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs121
repo stars26
Last updatedJuly 29, 2026
Repositorytwilio/ai

How do I create a Twilio account, get credentials, buy a number, and send my first API message?

Create a Twilio trial or paid account, export credentials, buy a number, and send the first SDK message before other Twilio skills.

Who is it for?

Developers starting Twilio integrations who need account signup, credentials, and product activation steps.

Skip if: Skip when the account, credentials, and required products are already configured.

When should I use this skill?

User has no Twilio account yet, needs credentials, must buy a number, or must enable a Twilio product.

What you get

Working Twilio credentials, purchased number, SDK installed, and first message sent with trial constraints understood.

Files

SKILL.mdMarkdownGitHub ↗

Overview

Every Twilio skill requires an active Twilio account and credentials. This skill covers the one-time setup steps that are prerequisites for all other Twilio skills.

---

Quickstart

1. Sign up at twilio.com/try-twilio -- enter name, email, password 2. Verify your email and personal phone number 3. Get your credentials from Console > Account > API keys & tokens:

export TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export TWILIO_AUTH_TOKEN=your_auth_token

4. Buy a phone number at Console > Phone Numbers > Buy a number

5. Install the SDK and send your first message:

Python

pip install twilio
import os
from twilio.rest import Client

client = Client(os.environ["TWILIO_ACCOUNT_SID"], os.environ["TWILIO_AUTH_TOKEN"])
message = client.messages.create(
    to="+15558675310",  # must be verified on trial accounts
    from_="+15017122661",  # your Twilio number
    body="Hello from Twilio!"
)
print(f"Sent: {message.sid}")

Node.js

npm install twilio
const twilio = require("twilio");
const client = twilio(process.env.TWILIO_ACCOUNT_SID, process.env.TWILIO_AUTH_TOKEN);

const message = await client.messages.create({
    to: "+15558675310",  // must be verified on trial accounts
    from: "+15017122661",  // your Twilio number
    body: "Hello from Twilio!",
});
console.log(`Sent: ${message.sid}`);

You're ready to use any Twilio skill. Trial accounts have restrictions -- see Constraints below.

---

Key Patterns

Verify Recipient Numbers (trial accounts only)

Trial accounts can only send to verified phone numbers (up to 5 per account).

1. Go to Console > Phone Numbers > Verified Caller IDs 2. Click Add a new Caller ID and verify via SMS code

Verified numbers work across both messaging and voice. Remove this restriction by upgrading your account.

Enable Specific Products

Some products require explicit activation:

ProductHow to enable
AI AssistantsConsole > Explore Products > AI Assistants > Get started
ConversationsConsole > Conversations > Manage > Overview > Enable Conversations
VerifyConsole > Verify > Services > Create new
WhatsApp (sandbox)Console > Messaging > Try it out > Send a WhatsApp message
ConversationRelayConsole > Voice > ConversationRelay > complete onboarding form

SDK Installation

LanguageInstallSDK package
Pythonpip install twiliotwilio
Node.jsnpm install twiliotwilio
JavaMaven/Gradlecom.twilio.sdk:twilio
C#dotnet add package TwilioTwilio
Rubygem install twilio-rubytwilio-ruby
PHPcomposer require twilio/sdktwilio/sdk
Gogo get github.com/twilio/twilio-gotwilio-go

Initialize the Client

Always load credentials from environment variables -- never hardcode them.

Python

import os
from twilio.rest import Client

client = Client(os.environ["TWILIO_ACCOUNT_SID"], os.environ["TWILIO_AUTH_TOKEN"])

Node.js

const twilio = require("twilio");
const client = twilio(process.env.TWILIO_ACCOUNT_SID, process.env.TWILIO_AUTH_TOKEN);

For production, use API Keys instead of Auth Token. See twilio-iam-auth-setup.

Twilio CLI Setup

The CLI is useful for quick operations and local webhook testing.

# Install (macOS)
brew tap twilio/brew && brew install twilio

# Install (npm -- all platforms)
npm install -g twilio-cli

# Login (creates an API key automatically)
twilio login

# Verify setup
twilio phone-numbers:list

The CLI stores profiles for switching between accounts:

# List profiles
twilio profiles:list

# Switch active profile
twilio profiles:use my-project

# Use environment variables instead of profiles
export TWILIO_ACCOUNT_SID=ACxxxxxxxx
export TWILIO_AUTH_TOKEN=xxxxxxxx

Precedence: --profile flag > environment variables > active profile.

Accounts and Subaccounts

Creating a new Twilio account: Accounts can only be created from the Console UI — there is no API for creating top-level accounts. A new account is automatically created when a user signs up. Additional accounts can be created from Console > My Accounts (or "View all accounts").

To see all your accounts: Console > My Accounts shows all accounts and subaccounts you have access to. For Organization-wide visibility, see Console > Admin > Accounts (requires Organization admin role). See twilio-organizations-setup for Organization-level governance.

Subaccounts

Subaccounts are child accounts under your main (parent) account. Use them for multi-tenant apps, per-customer isolation, or team separation.

How they differ from the parent account:

  • Resources (numbers, calls, messages) are isolated — a subaccount cannot see the parent's resources or other subaccounts' resources
  • Billing is consolidated to the parent — a single Twilio balance for all subaccounts
  • Voice and SMS permissions inherit from the parent
  • Phone numbers can be transferred between parent and subaccounts

Create via Console: Console > My Accounts > Create Subaccount

Create via API:

Python

subaccount = client.api.accounts.create(friendly_name="Customer A")
print(f"Subaccount SID: {subaccount.sid}")
# Store securely — auth_token is only shown at creation time
# e.g., secrets_manager.store("subaccount_auth_token", subaccount.auth_token)

Node.js

const subaccount = await client.api.accounts.create({ friendlyName: "Customer A" });
console.log(`Subaccount SID: ${subaccount.sid}`);

Subaccount Credential Isolation

Always use the subaccount's own credentials (API Keys or Auth Token) when accessing subaccount resources — do NOT use the parent account's credentials as a shortcut.

Python — access subaccount resources

# Correct: use subaccount credentials
sub_client = Client(subaccount.sid, subaccount.auth_token)
call = sub_client.calls.create(
    to="+15558675310",
    from_="+15017122661",  # number owned by this subaccount
    url="https://yourapp.com/voice"
)

# Also correct: parent credentials with subaccount SID (v2010 API only)
parent_client = Client(os.environ["TWILIO_ACCOUNT_SID"], os.environ["TWILIO_AUTH_TOKEN"])
calls = parent_client.api.accounts(subaccount.sid).calls.list()

Critical: Resources on separate subdomains (studio.twilio.com, taskrouter.twilio.com) require subaccount-specific credentials. Parent account credentials will not work on these subdomains.

Subaccount Limits

  • Default limit: 1,000 subaccounts per parent account
  • Trial accounts: Can create only 1 subaccount — upgrade to create more
  • At the limit: Contact Twilio Support with your use case to request an increase
  • Closing: Set status to closed via API or Console. Closed subaccounts are automatically deleted after 30 days
  • Suspension cascade: Suspending the parent account automatically suspends ALL subaccounts

Upgrade from Trial

1. Click Upgrade at the top of the Console, or go to Console > Admin > Account billing 2. Provide name, address, and payment details 3. Your trial phone number carries over; trial balance does not

---

Trial Restrictions at a Glance

FeatureTrialUpgraded
Phone numbers1Unlimited
Send to unverified numbersNoYes
Outbound message prefixYes (visible to recipient)No
Verified caller IDsUp to 5Not needed
A2P 10DLC registrationNoYes
Daily WhatsApp messages50Unlimited
ConversationRelayNoYes (after onboarding)
Voice: outbound callsDomestic onlyInternational

---

CANNOT

  • Cannot create top-level accounts via API — Only Console UI. A new account is created at signup; additional accounts from Console > My Accounts.
  • Cannot create more than 1 subaccount on trial — Upgrade your account first, then you can create up to 1,000.
  • Cannot access subdomain resources with parent credentials — Studio, TaskRouter, and other subdomain APIs require subaccount-specific credentials. Parent credentials return auth errors.
  • Cannot undo a closed subaccount after 30 days — Closed subaccounts are permanently deleted. Suspension is reversible; closure is not.
  • Cannot transfer trial balance to a paid account — Trial credits are forfeited on upgrade.
  • Cannot send to unverified numbers on trial — Only verified Caller IDs (up to 5) can receive messages or calls.
  • Auth Token rotation invalidates ALL API keys — This is a one-way door. Use API Keys from day one. See twilio-security-api-auth.
  • API Key secrets shown only once at creation — Store them immediately. Cannot be retrieved afterward.
  • AI Assistants and ConversationRelay require approval — Limited access products. Activation is not instant.

---

Next Steps

  • Organization governance (SSO, SCIM, multi-team): twilio-organizations-setup
  • Secure credential management and API Keys: twilio-security-api-auth
  • Send your first SMS: twilio-sms-send-message
  • Send your first WhatsApp message: twilio-whatsapp-send-message
  • Receive incoming messages: twilio-messaging-webhooks
  • US SMS compliance (A2P 10DLC): twilio-compliance-onboarding
  • Webhook setup: twilio-webhook-architecture

Related skills

FAQ

What does twilio-account-setup cover?

Trial signup, Account SID and Auth Token, phone number purchase, SDK install, first message, and product enablement links.

When should I use twilio-account-setup?

Before any other Twilio skill when credentials, numbers, or product activation are missing.

Is twilio-account-setup safe to install?

Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.