{"id":7471,"plugin_id":"Plugin_c266c85897248191be15eb07c415f89e","kind":"skill","collection_source":null,"comparison_source":null,"observed_at":"2026-09-30T22:50:42.357Z","digest":"677743f50272a52ddc1304d06d63000fe9ad383ed0a216b90b1bff951d0121a8","against":null,"payload":{"name":"twilio-account-setup","description":"Create and configure a Twilio account from scratch. Covers free trial signup, trial limitations, getting credentials (Account SID and Auth Token), buying a phone number, verifying recipient numbers for trial use, SDK installation, first API call, subaccount management (creation, inheritance, credential isolation, limits), and enabling specific products (AI Assistants, Conversations, Verify, ConversationRelay, WhatsApp). Use this skill before any other Twilio skill if you do not yet have a Twilio account or need to enable a product. For Organization-level governance (SSO, SCIM, multi-team), see `twilio-organizations-setup`.","included_files":[{"relative_path":"agents/openai.yaml","size_in_bytes":221}],"skill_md_contents":"---\nname: twilio-account-setup\ndescription: >\n  Create and configure a Twilio account from scratch. Covers free trial signup,\n  trial limitations, getting credentials (Account SID and Auth Token), buying\n  a phone number, verifying recipient numbers for trial use, SDK installation,\n  first API call, subaccount management (creation, inheritance, credential\n  isolation, limits), and enabling specific products (AI Assistants,\n  Conversations, Verify, ConversationRelay, WhatsApp). Use this skill before\n  any other Twilio skill if you do not yet have a Twilio account or need to\n  enable a product. For Organization-level governance (SSO, SCIM, multi-team),\n  see `twilio-organizations-setup`.\n---\n\n## Overview\n\nEvery 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.\n\n---\n\n## Quickstart\n\n1. Sign up at [twilio.com/try-twilio](https://www.twilio.com/try-twilio) -- enter name, email, password\n2. Verify your email and personal phone number\n3. Get your credentials from [Console > Account > API keys & tokens](https://console.twilio.com/us1/account/keys-credentials/api-keys):\n\n```bash\nexport TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nexport TWILIO_AUTH_TOKEN=your_auth_token\n```\n\n4. Buy a phone number at [Console > Phone Numbers > Buy a number](https://console.twilio.com/us1/develop/phone-numbers/search)\n\n5. Install the SDK and send your first message:\n\n**Python**\n```bash\npip install twilio\n```\n```python\nimport os\nfrom twilio.rest import Client\n\nclient = Client(os.environ[\"TWILIO_ACCOUNT_SID\"], os.environ[\"TWILIO_AUTH_TOKEN\"])\nmessage = client.messages.create(\n    to=\"+15558675310\",  # must be verified on trial accounts\n    from_=\"+15017122661\",  # your Twilio number\n    body=\"Hello from Twilio!\"\n)\nprint(f\"Sent: {message.sid}\")\n```\n\n**Node.js**\n```bash\nnpm install twilio\n```\n```node\nconst twilio = require(\"twilio\");\nconst client = twilio(process.env.TWILIO_ACCOUNT_SID, process.env.TWILIO_AUTH_TOKEN);\n\nconst message = await client.messages.create({\n    to: \"+15558675310\",  // must be verified on trial accounts\n    from: \"+15017122661\",  // your Twilio number\n    body: \"Hello from Twilio!\",\n});\nconsole.log(`Sent: ${message.sid}`);\n```\n\nYou're ready to use any Twilio skill. Trial accounts have restrictions -- see Constraints below.\n\n---\n\n## Key Patterns\n\n### Verify Recipient Numbers (trial accounts only)\n\nTrial accounts can only send to **verified phone numbers** (up to 5 per account).\n\n1. Go to [Console > Phone Numbers > Verified Caller IDs](https://console.twilio.com/us1/develop/phone-numbers/verified-caller-ids)\n2. Click **Add a new Caller ID** and verify via SMS code\n\nVerified numbers work across both messaging and voice. Remove this restriction by upgrading your account.\n\n### Enable Specific Products\n\nSome products require explicit activation:\n\n| Product | How to enable |\n|---------|--------------|\n| AI Assistants | [Console > Explore Products > AI Assistants](https://console.twilio.com/us1/develop/ai-assistants) > **Get started** |\n| Conversations | [Console > Conversations > Manage > Overview](https://console.twilio.com/us1/develop/conversations/manage/overview) > **Enable Conversations** |\n| Verify | [Console > Verify > Services](https://console.twilio.com/us1/verify/services) > **Create new** |\n| WhatsApp (sandbox) | [Console > Messaging > Try it out > Send a WhatsApp message](https://console.twilio.com/us1/develop/sms/try-it-out/whatsapp-learn) |\n| ConversationRelay | [Console > Voice > ConversationRelay](https://console.twilio.com/us1/voice/conversation-relay) > complete onboarding form |\n\n### SDK Installation\n\n| Language | Install | SDK package |\n|----------|---------|-------------|\n| Python | `pip install twilio` | `twilio` |\n| Node.js | `npm install twilio` | `twilio` |\n| Java | Maven/Gradle | `com.twilio.sdk:twilio` |\n| C# | `dotnet add package Twilio` | `Twilio` |\n| Ruby | `gem install twilio-ruby` | `twilio-ruby` |\n| PHP | `composer require twilio/sdk` | `twilio/sdk` |\n| Go | `go get github.com/twilio/twilio-go` | `twilio-go` |\n\n### Initialize the Client\n\nAlways load credentials from environment variables -- never hardcode them.\n\n**Python**\n```python\nimport os\nfrom twilio.rest import Client\n\nclient = Client(os.environ[\"TWILIO_ACCOUNT_SID\"], os.environ[\"TWILIO_AUTH_TOKEN\"])\n```\n\n**Node.js**\n```node\nconst twilio = require(\"twilio\");\nconst client = twilio(process.env.TWILIO_ACCOUNT_SID, process.env.TWILIO_AUTH_TOKEN);\n```\n\nFor production, use API Keys instead of Auth Token. See `twilio-iam-auth-setup`.\n\n### Twilio CLI Setup\n\nThe CLI is useful for quick operations and local webhook testing.\n\n```bash\n# Install (macOS)\nbrew tap twilio/brew && brew install twilio\n\n# Install (npm -- all platforms)\nnpm install -g twilio-cli\n\n# Login (creates an API key automatically)\ntwilio login\n\n# Verify setup\ntwilio phone-numbers:list\n```\n\nThe CLI stores profiles for switching between accounts:\n```bash\n# List profiles\ntwilio profiles:list\n\n# Switch active profile\ntwilio profiles:use my-project\n\n# Use environment variables instead of profiles\nexport TWILIO_ACCOUNT_SID=ACxxxxxxxx\nexport TWILIO_AUTH_TOKEN=xxxxxxxx\n```\n\nPrecedence: `--profile` flag > environment variables > active profile.\n\n### Accounts and Subaccounts\n\n**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\").\n\n**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.\n\n### Subaccounts\n\nSubaccounts are child accounts under your main (parent) account. Use them for multi-tenant apps, per-customer isolation, or team separation.\n\n**How they differ from the parent account:**\n- Resources (numbers, calls, messages) are **isolated** — a subaccount cannot see the parent's resources or other subaccounts' resources\n- Billing is **consolidated** to the parent — a single Twilio balance for all subaccounts\n- Voice and SMS permissions **inherit** from the parent\n- Phone numbers can be transferred between parent and subaccounts\n\n**Create via Console:** Console > My Accounts > Create Subaccount\n\n**Create via API:**\n\n**Python**\n```python\nsubaccount = client.api.accounts.create(friendly_name=\"Customer A\")\nprint(f\"Subaccount SID: {subaccount.sid}\")\n# Store securely — auth_token is only shown at creation time\n# e.g., secrets_manager.store(\"subaccount_auth_token\", subaccount.auth_token)\n```\n\n**Node.js**\n```javascript\nconst subaccount = await client.api.accounts.create({ friendlyName: \"Customer A\" });\nconsole.log(`Subaccount SID: ${subaccount.sid}`);\n```\n\n### Subaccount Credential Isolation\n\n**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.\n\n**Python — access subaccount resources**\n```python\n# Correct: use subaccount credentials\nsub_client = Client(subaccount.sid, subaccount.auth_token)\ncall = sub_client.calls.create(\n    to=\"+15558675310\",\n    from_=\"+15017122661\",  # number owned by this subaccount\n    url=\"https://yourapp.com/voice\"\n)\n\n# Also correct: parent credentials with subaccount SID (v2010 API only)\nparent_client = Client(os.environ[\"TWILIO_ACCOUNT_SID\"], os.environ[\"TWILIO_AUTH_TOKEN\"])\ncalls = parent_client.api.accounts(subaccount.sid).calls.list()\n```\n\n**Critical:** Resources on separate subdomains (`studio.twilio.com`, `taskrouter.twilio.com`) **require subaccount-specific credentials**. Parent account credentials will not work on these subdomains.\n\n### Subaccount Limits\n\n- **Default limit:** 1,000 subaccounts per parent account\n- **Trial accounts:** Can create only 1 subaccount — upgrade to create more\n- **At the limit:** Contact Twilio Support with your use case to request an increase\n- **Closing:** Set status to `closed` via API or Console. Closed subaccounts are automatically deleted after 30 days\n- **Suspension cascade:** Suspending the parent account automatically suspends ALL subaccounts\n\n### Upgrade from Trial\n\n1. Click **Upgrade** at the top of the Console, or go to [Console > Admin > Account billing](https://console.twilio.com/us1/admin/billing)\n2. Provide name, address, and payment details\n3. Your trial phone number carries over; trial balance does not\n\n---\n\n## Trial Restrictions at a Glance\n\n| Feature | Trial | Upgraded |\n|---------|-------|----------|\n| Phone numbers | 1 | Unlimited |\n| Send to unverified numbers | No | Yes |\n| Outbound message prefix | Yes (visible to recipient) | No |\n| Verified caller IDs | Up to 5 | Not needed |\n| A2P 10DLC registration | No | Yes |\n| Daily WhatsApp messages | 50 | Unlimited |\n| ConversationRelay | No | Yes (after onboarding) |\n| Voice: outbound calls | Domestic only | International |\n\n---\n\n## CANNOT\n\n- **Cannot create top-level accounts via API** — Only Console UI. A new account is created at signup; additional accounts from Console > My Accounts.\n- **Cannot create more than 1 subaccount on trial** — Upgrade your account first, then you can create up to 1,000.\n- **Cannot access subdomain resources with parent credentials** — Studio, TaskRouter, and other subdomain APIs require subaccount-specific credentials. Parent credentials return auth errors.\n- **Cannot undo a closed subaccount after 30 days** — Closed subaccounts are permanently deleted. Suspension is reversible; closure is not.\n- **Cannot transfer trial balance to a paid account** — Trial credits are forfeited on upgrade.\n- **Cannot send to unverified numbers on trial** — Only verified Caller IDs (up to 5) can receive messages or calls.\n- **Auth Token rotation invalidates ALL API keys** — This is a one-way door. Use API Keys from day one. See `twilio-security-api-auth`.\n- **API Key secrets shown only once at creation** — Store them immediately. Cannot be retrieved afterward.\n- **AI Assistants and ConversationRelay require approval** — Limited access products. Activation is not instant.\n\n---\n\n## Next Steps\n\n- **Organization governance (SSO, SCIM, multi-team):** `twilio-organizations-setup`\n- **Secure credential management and API Keys:** `twilio-security-api-auth`\n- **Send your first SMS:** `twilio-sms-send-message`\n- **Send your first WhatsApp message:** `twilio-whatsapp-send-message`\n- **Receive incoming messages:** `twilio-messaging-webhooks`\n- **US SMS compliance (A2P 10DLC):** `twilio-compliance-onboarding`\n- **Webhook setup:** `twilio-webhook-architecture`\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}