[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-twilio-twilio-iam-auth-setup":3,"mdc--cgttio-key":33,"related-repo-twilio-twilio-iam-auth-setup":1794,"related-org-twilio-twilio-iam-auth-setup":1901},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":31,"mdContent":32},"twilio-iam-auth-setup","manage Twilio authentication and credentials","Set up and manage Twilio authentication credentials: Auth Tokens, API keys (Standard, Main, Restricted), Access Tokens for client-side SDKs, and credential rotation. Use this skill as a prerequisite foundation before making any Twilio API calls.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"twilio","Twilio","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Ftwilio.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"Security","security","tag",{"name":17,"slug":18,"type":15},"Auth","auth",{"name":20,"slug":21,"type":15},"API Development","api-development",{"name":9,"slug":8,"type":15},25,"https:\u002F\u002Fgithub.com\u002Ftwilio\u002Fai","2026-07-17T06:05:55.847898",null,7,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":26},[],"https:\u002F\u002Fgithub.com\u002Ftwilio\u002Fai\u002Ftree\u002FHEAD\u002Fskills\u002Ftwilio\u002Ftwilio-iam-auth-setup","---\nname: twilio-iam-auth-setup\ndescription: >\n  Set up and manage Twilio authentication credentials: Auth Tokens, API keys\n  (Standard, Main, Restricted), Access Tokens for client-side SDKs, and\n  credential rotation. Use this skill as a prerequisite foundation before\n  making any Twilio API calls.\n---\n\n## Overview\n\nTwilio supports multiple authentication methods. For most developers: use Auth Token for local prototyping, then move to API Keys in production.\n\n| Method | Use for | Security |\n|--------|---------|----------|\n| Account SID + Auth Token | Local prototyping, initial testing | Full account access — avoid in production |\n| Account SID + API Key (Standard) + Secret | All production code | Recommended — revocable, no access to \u002FAccounts or \u002FKeys |\n| Account SID + API Key (Restricted) + Secret | Fine-grained production access | Best — limit to specific resources only |\n| Account SID + API Key (Main) + Secret | Account management automation | Full access like Auth Token, but revocable |\n\n**For beginners \u002F vibe-coders:** Start with Auth Token to get your first API call working, then create a Standard API Key before deploying anything. The key difference: if an API Key leaks, you revoke just that key. If your Auth Token leaks, your entire account is exposed until you rotate it.\n\n---\n\n## Prerequisites\n\n- Twilio account — see `twilio-account-setup` if you don't have one\n- Access to the [Twilio Console](https:\u002F\u002Fconsole.twilio.com)\n\n---\n\n## Quickstart\n\nFind your Account SID and Auth Token in the Console dashboard.\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 client = require(\"twilio\")(\n    process.env.TWILIO_ACCOUNT_SID,\n    process.env.TWILIO_AUTH_TOKEN\n);\n```\n\n**Never commit Auth Token to version control or use in production.**\n\n---\n\n## Key Patterns\n\n### API Keys (production)\n\n**Create:** Console > Account > API keys & tokens > Create API key\n\n| Key type | Access | Use case |\n|----------|--------|----------|\n| **Standard** | All resources except \u002FAccounts and \u002FKeys endpoints | Default for production apps |\n| **Restricted** | Only the specific resources you grant | Multi-tenant apps, microservices, least-privilege |\n| **Main** | Full account access (like Auth Token) | Account management automation (Console-only creation) |\n\nAfter creation, copy the **API Key SID** (`SK...`) and **Secret** — the secret is shown only once.\n\n**Python**\n```python\nclient = Client(\n    os.environ[\"TWILIO_API_KEY\"],      # SK...\n    os.environ[\"TWILIO_API_SECRET\"],\n    os.environ[\"TWILIO_ACCOUNT_SID\"]   # required as third argument\n)\n```\n\n**Node.js**\n```node\nconst client = require(\"twilio\")(\n    process.env.TWILIO_API_KEY,\n    process.env.TWILIO_API_SECRET,\n    { accountSid: process.env.TWILIO_ACCOUNT_SID }\n);\n```\n\n### Restricted API Keys\n\nRestricted keys grant access only to specific Twilio API resources you define. Use them for least-privilege access in production.\n\n**Create via the v1 IAM API** (not the v2010 \u002FKeys.json endpoint — see CANNOT section):\n\n**Python**\n```python\nkey = client.iam.v1.api_key.create(\n    account_sid=os.environ[\"TWILIO_ACCOUNT_SID\"],\n    friendly_name=\"messaging-only-key\",\n    key_type=\"restricted\",\n    policy={\n        \"allow\": [\n            \"\u002F2010-04-01\u002FAccounts\u002F{AccountSid}\u002FMessages*\"\n        ]\n    }\n)\n# Store key.sid and key.secret securely — secret shown only once\n```\n\n**Example permission patterns:**\n| Permission | Grants access to |\n|-----------|-----------------|\n| `\u002F2010-04-01\u002FAccounts\u002F{AccountSid}\u002FMessages*` | Send and read messages |\n| `\u002F2010-04-01\u002FAccounts\u002F{AccountSid}\u002FCalls*` | Make and manage calls |\n| `\u002Fv2\u002FServices\u002F*\u002FVerifications*` | Verify API only |\n\n**Docs:** [Restricted API keys](https:\u002F\u002Fwww.twilio.com\u002Fdocs\u002Fiam\u002Fapi-keys\u002Frestricted-api-keys)\n\n### Test Credentials\n\nMake API calls without charges or sending real messages. Find at Console > Account > API keys & tokens > Test credentials.\n\n**Python**\n```python\nclient = Client(\n    os.environ[\"TWILIO_TEST_ACCOUNT_SID\"],\n    os.environ[\"TWILIO_TEST_AUTH_TOKEN\"]\n)\n```\n\n**Node.js**\n```node\nconst client = require(\"twilio\")(\n    process.env.TWILIO_TEST_ACCOUNT_SID,\n    process.env.TWILIO_TEST_AUTH_TOKEN\n);\n```\n\nMagic test numbers:\n- `+15005550006` — valid, can receive messages\n- `+15005550001` — invalid number (triggers error 21211)\n- `+15005550007` — number that cannot receive SMS (triggers error 21612)\n\n### Auth Token Rotation\n\nRotate your Auth Token if it's been exposed or as periodic security hygiene. Twilio uses a **secondary token promotion** model:\n\n1. Console > Account > API keys & tokens > Request a secondary Auth Token\n2. Update your application to use the secondary token\n3. Once confirmed working, promote the secondary to primary\n4. The old primary token is immediately invalidated\n\n**Python**\n```python\n# Promote secondary Auth Token to primary via API\nfrom twilio.rest import Client\n\nclient = Client(os.environ[\"TWILIO_ACCOUNT_SID\"], os.environ[\"TWILIO_AUTH_TOKEN\"])\naccount = client.api.accounts(os.environ[\"TWILIO_ACCOUNT_SID\"]).update(\n    auth_token_promotion=\"promote\"\n)\n```\n\n**Important:** Auth Token rotation invalidates all active sessions using that token. Plan the switchover to minimize downtime.\n\n**API Keys cannot be rotated** — if an API Key is compromised, delete it and create a new one:\n- Console > Account > API keys & tokens > select key > Delete\n- Or via API: `client.keys(key_sid).delete()`\n\n**Docs:** [Auth Token REST API](https:\u002F\u002Fwww.twilio.com\u002Fdocs\u002Fiam\u002Fapi\u002Fauthtoken)\n\n### Access Tokens (client-side SDKs)\n\nShort-lived JWTs for authenticating browser\u002Fmobile clients (Voice JS SDK, Conversations SDK, Video SDK). Generate server-side and pass to the client.\n\n**Python**\n```python\nfrom twilio.jwt.access_token import AccessToken\nfrom twilio.jwt.access_token.grants import VoiceGrant\n\ntoken = AccessToken(\n    os.environ[\"TWILIO_ACCOUNT_SID\"],\n    os.environ[\"TWILIO_API_KEY\"],\n    os.environ[\"TWILIO_API_SECRET\"],\n    identity=\"user-123\",\n    ttl=3600\n)\ntoken.add_grant(VoiceGrant(outgoing_application_sid=\"APxxxx\"))\nprint(token.to_jwt())\n```\n\n**Node.js**\n```node\nconst { AccessToken } = require(\"twilio\").jwt;\nconst { VoiceGrant } = AccessToken;\n\nconst token = new AccessToken(\n    process.env.TWILIO_ACCOUNT_SID,\n    process.env.TWILIO_API_KEY,\n    process.env.TWILIO_API_SECRET,\n    { identity: \"user-123\", ttl: 3600 }\n);\ntoken.addGrant(new VoiceGrant({ outgoingApplicationSid: \"APxxxx\" }));\nconsole.log(token.toJwt());\n```\n\nAvailable grant types: `VoiceGrant`, `VideoGrant`, `ChatGrant` (Conversations), `SyncGrant`\n\n### Environment Variable Reference\n\n```bash\nTWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n\n# Option 1: Auth Token (testing only)\nTWILIO_AUTH_TOKEN=your_auth_token\n\n# Option 2: API Key (production)\nTWILIO_API_KEY=SKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nTWILIO_API_SECRET=your_api_secret\n\n# Test credentials\nTWILIO_TEST_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nTWILIO_TEST_AUTH_TOKEN=your_test_auth_token\n```\n\n---\n\n## CANNOT\n\n- **Standard keys cannot access \u002FAccounts or \u002FKeys endpoints** — Returns error 20003 (401). Must use Auth Token or Main API Key for account management.\n- **No restricted key creation via v2010 API** — The v2010 `\u002FKeys.json` endpoint silently ignores `KeyType=restricted` and `Policy` parameters, creating a standard key instead. Use the v1 IAM API.\n- **Restricted keys cannot generate Access Tokens** — Only Standard and Main keys can create client SDK tokens.\n- **No individual Access Token revocation** — Tokens are valid until expiration (max 24h). To revoke early, delete the API key that issued them.\n- **Subaccount credentials cannot access parent or sibling resources** — Each subaccount has its own Auth Token and API Keys. Use the subaccount's own credentials to access its resources — never the parent account's credentials.\n- **API Keys cannot be rotated** — No key rotation API exists. To replace a compromised key: create a new key, update your app, then delete the old key.\n- **PKCV is an advanced feature for compliance-heavy industries** — Public Key Client Validation adds client-certificate-style auth. Incompatible with Flex, Studio, and TaskRouter. Once enforcement is enabled, Auth Token authentication is disabled (one-way door). See [PKCV docs](https:\u002F\u002Fwww.twilio.com\u002Fdocs\u002Fiam\u002Fpkcv) — consider this only if your security team requires mutual TLS-equivalent authentication.\n- **Test credentials work with only 4 endpoints** — Messages, Calls, IncomingPhoneNumbers, and Lookups. All other endpoints return 403.\n- **API Key Secret shown only at creation** — Cannot be retrieved afterward. If lost, create a new key.\n- **FriendlyName max 64 characters for keys** — 65+ characters returns error 70001.\n- **Restricted keys limited to 100 permissions per key** — Exceeding this limit is rejected at creation.\n- **Cannot create Main API Keys via REST API** — Console only\n- **Cannot set Access Token TTL beyond 24 hours** — Maximum lifetime is 24h\n- **Cannot use test credentials with real numbers** — Test credentials only work with test magic numbers\n\n---\n\n## Next Steps\n\n- **Account setup and phone numbers:** `twilio-account-setup`\n- **Security best practices (credential management, key rotation):** `twilio-security-hardening`\n- **Restricted API keys (fine-grained permissions):** [Docs](https:\u002F\u002Fwww.twilio.com\u002Fdocs\u002Fiam\u002Fapi-keys\u002Frestricted-api-keys)\n- **Auth Token rotation:** [REST API](https:\u002F\u002Fwww.twilio.com\u002Fdocs\u002Fiam\u002Fapi\u002Fauthtoken)\n",{"data":34,"body":35},{"name":4,"description":6},{"type":36,"children":37},"root",[38,47,53,157,168,172,178,211,214,220,225,233,283,291,332,340,343,349,356,366,456,483,490,538,545,590,596,601,611,618,717,725,798,815,821,826,833,870,877,914,919,955,961,973,997,1004,1063,1073,1083,1102,1117,1123,1128,1135,1236,1243,1333,1367,1373,1533,1536,1542,1717,1720,1726,1788],{"type":39,"tag":40,"props":41,"children":43},"element","h2",{"id":42},"overview",[44],{"type":45,"value":46},"text","Overview",{"type":39,"tag":48,"props":49,"children":50},"p",{},[51],{"type":45,"value":52},"Twilio supports multiple authentication methods. For most developers: use Auth Token for local prototyping, then move to API Keys in production.",{"type":39,"tag":54,"props":55,"children":56},"table",{},[57,80],{"type":39,"tag":58,"props":59,"children":60},"thead",{},[61],{"type":39,"tag":62,"props":63,"children":64},"tr",{},[65,71,76],{"type":39,"tag":66,"props":67,"children":68},"th",{},[69],{"type":45,"value":70},"Method",{"type":39,"tag":66,"props":72,"children":73},{},[74],{"type":45,"value":75},"Use for",{"type":39,"tag":66,"props":77,"children":78},{},[79],{"type":45,"value":13},{"type":39,"tag":81,"props":82,"children":83},"tbody",{},[84,103,121,139],{"type":39,"tag":62,"props":85,"children":86},{},[87,93,98],{"type":39,"tag":88,"props":89,"children":90},"td",{},[91],{"type":45,"value":92},"Account SID + Auth Token",{"type":39,"tag":88,"props":94,"children":95},{},[96],{"type":45,"value":97},"Local prototyping, initial testing",{"type":39,"tag":88,"props":99,"children":100},{},[101],{"type":45,"value":102},"Full account access — avoid in production",{"type":39,"tag":62,"props":104,"children":105},{},[106,111,116],{"type":39,"tag":88,"props":107,"children":108},{},[109],{"type":45,"value":110},"Account SID + API Key (Standard) + Secret",{"type":39,"tag":88,"props":112,"children":113},{},[114],{"type":45,"value":115},"All production code",{"type":39,"tag":88,"props":117,"children":118},{},[119],{"type":45,"value":120},"Recommended — revocable, no access to \u002FAccounts or \u002FKeys",{"type":39,"tag":62,"props":122,"children":123},{},[124,129,134],{"type":39,"tag":88,"props":125,"children":126},{},[127],{"type":45,"value":128},"Account SID + API Key (Restricted) + Secret",{"type":39,"tag":88,"props":130,"children":131},{},[132],{"type":45,"value":133},"Fine-grained production access",{"type":39,"tag":88,"props":135,"children":136},{},[137],{"type":45,"value":138},"Best — limit to specific resources only",{"type":39,"tag":62,"props":140,"children":141},{},[142,147,152],{"type":39,"tag":88,"props":143,"children":144},{},[145],{"type":45,"value":146},"Account SID + API Key (Main) + Secret",{"type":39,"tag":88,"props":148,"children":149},{},[150],{"type":45,"value":151},"Account management automation",{"type":39,"tag":88,"props":153,"children":154},{},[155],{"type":45,"value":156},"Full access like Auth Token, but revocable",{"type":39,"tag":48,"props":158,"children":159},{},[160,166],{"type":39,"tag":161,"props":162,"children":163},"strong",{},[164],{"type":45,"value":165},"For beginners \u002F vibe-coders:",{"type":45,"value":167}," Start with Auth Token to get your first API call working, then create a Standard API Key before deploying anything. The key difference: if an API Key leaks, you revoke just that key. If your Auth Token leaks, your entire account is exposed until you rotate it.",{"type":39,"tag":169,"props":170,"children":171},"hr",{},[],{"type":39,"tag":40,"props":173,"children":175},{"id":174},"prerequisites",[176],{"type":45,"value":177},"Prerequisites",{"type":39,"tag":179,"props":180,"children":181},"ul",{},[182,197],{"type":39,"tag":183,"props":184,"children":185},"li",{},[186,188,195],{"type":45,"value":187},"Twilio account — see ",{"type":39,"tag":189,"props":190,"children":192},"code",{"className":191},[],[193],{"type":45,"value":194},"twilio-account-setup",{"type":45,"value":196}," if you don't have one",{"type":39,"tag":183,"props":198,"children":199},{},[200,202],{"type":45,"value":201},"Access to the ",{"type":39,"tag":203,"props":204,"children":208},"a",{"href":205,"rel":206},"https:\u002F\u002Fconsole.twilio.com",[207],"nofollow",[209],{"type":45,"value":210},"Twilio Console",{"type":39,"tag":169,"props":212,"children":213},{},[],{"type":39,"tag":40,"props":215,"children":217},{"id":216},"quickstart",[218],{"type":45,"value":219},"Quickstart",{"type":39,"tag":48,"props":221,"children":222},{},[223],{"type":45,"value":224},"Find your Account SID and Auth Token in the Console dashboard.",{"type":39,"tag":48,"props":226,"children":227},{},[228],{"type":39,"tag":161,"props":229,"children":230},{},[231],{"type":45,"value":232},"Python",{"type":39,"tag":234,"props":235,"children":240},"pre",{"className":236,"code":237,"language":238,"meta":239,"style":239},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import os\nfrom twilio.rest import Client\n\nclient = Client(os.environ[\"TWILIO_ACCOUNT_SID\"], os.environ[\"TWILIO_AUTH_TOKEN\"])\n","python","",[241],{"type":39,"tag":189,"props":242,"children":243},{"__ignoreMap":239},[244,255,264,274],{"type":39,"tag":245,"props":246,"children":249},"span",{"class":247,"line":248},"line",1,[250],{"type":39,"tag":245,"props":251,"children":252},{},[253],{"type":45,"value":254},"import os\n",{"type":39,"tag":245,"props":256,"children":258},{"class":247,"line":257},2,[259],{"type":39,"tag":245,"props":260,"children":261},{},[262],{"type":45,"value":263},"from twilio.rest import Client\n",{"type":39,"tag":245,"props":265,"children":267},{"class":247,"line":266},3,[268],{"type":39,"tag":245,"props":269,"children":271},{"emptyLinePlaceholder":270},true,[272],{"type":45,"value":273},"\n",{"type":39,"tag":245,"props":275,"children":277},{"class":247,"line":276},4,[278],{"type":39,"tag":245,"props":279,"children":280},{},[281],{"type":45,"value":282},"client = Client(os.environ[\"TWILIO_ACCOUNT_SID\"], os.environ[\"TWILIO_AUTH_TOKEN\"])\n",{"type":39,"tag":48,"props":284,"children":285},{},[286],{"type":39,"tag":161,"props":287,"children":288},{},[289],{"type":45,"value":290},"Node.js",{"type":39,"tag":234,"props":292,"children":296},{"className":293,"code":294,"language":295,"meta":239,"style":239},"language-node shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const client = require(\"twilio\")(\n    process.env.TWILIO_ACCOUNT_SID,\n    process.env.TWILIO_AUTH_TOKEN\n);\n","node",[297],{"type":39,"tag":189,"props":298,"children":299},{"__ignoreMap":239},[300,308,316,324],{"type":39,"tag":245,"props":301,"children":302},{"class":247,"line":248},[303],{"type":39,"tag":245,"props":304,"children":305},{},[306],{"type":45,"value":307},"const client = require(\"twilio\")(\n",{"type":39,"tag":245,"props":309,"children":310},{"class":247,"line":257},[311],{"type":39,"tag":245,"props":312,"children":313},{},[314],{"type":45,"value":315},"    process.env.TWILIO_ACCOUNT_SID,\n",{"type":39,"tag":245,"props":317,"children":318},{"class":247,"line":266},[319],{"type":39,"tag":245,"props":320,"children":321},{},[322],{"type":45,"value":323},"    process.env.TWILIO_AUTH_TOKEN\n",{"type":39,"tag":245,"props":325,"children":326},{"class":247,"line":276},[327],{"type":39,"tag":245,"props":328,"children":329},{},[330],{"type":45,"value":331},");\n",{"type":39,"tag":48,"props":333,"children":334},{},[335],{"type":39,"tag":161,"props":336,"children":337},{},[338],{"type":45,"value":339},"Never commit Auth Token to version control or use in production.",{"type":39,"tag":169,"props":341,"children":342},{},[],{"type":39,"tag":40,"props":344,"children":346},{"id":345},"key-patterns",[347],{"type":45,"value":348},"Key Patterns",{"type":39,"tag":350,"props":351,"children":353},"h3",{"id":352},"api-keys-production",[354],{"type":45,"value":355},"API Keys (production)",{"type":39,"tag":48,"props":357,"children":358},{},[359,364],{"type":39,"tag":161,"props":360,"children":361},{},[362],{"type":45,"value":363},"Create:",{"type":45,"value":365}," Console > Account > API keys & tokens > Create API key",{"type":39,"tag":54,"props":367,"children":368},{},[369,390],{"type":39,"tag":58,"props":370,"children":371},{},[372],{"type":39,"tag":62,"props":373,"children":374},{},[375,380,385],{"type":39,"tag":66,"props":376,"children":377},{},[378],{"type":45,"value":379},"Key type",{"type":39,"tag":66,"props":381,"children":382},{},[383],{"type":45,"value":384},"Access",{"type":39,"tag":66,"props":386,"children":387},{},[388],{"type":45,"value":389},"Use case",{"type":39,"tag":81,"props":391,"children":392},{},[393,414,435],{"type":39,"tag":62,"props":394,"children":395},{},[396,404,409],{"type":39,"tag":88,"props":397,"children":398},{},[399],{"type":39,"tag":161,"props":400,"children":401},{},[402],{"type":45,"value":403},"Standard",{"type":39,"tag":88,"props":405,"children":406},{},[407],{"type":45,"value":408},"All resources except \u002FAccounts and \u002FKeys endpoints",{"type":39,"tag":88,"props":410,"children":411},{},[412],{"type":45,"value":413},"Default for production apps",{"type":39,"tag":62,"props":415,"children":416},{},[417,425,430],{"type":39,"tag":88,"props":418,"children":419},{},[420],{"type":39,"tag":161,"props":421,"children":422},{},[423],{"type":45,"value":424},"Restricted",{"type":39,"tag":88,"props":426,"children":427},{},[428],{"type":45,"value":429},"Only the specific resources you grant",{"type":39,"tag":88,"props":431,"children":432},{},[433],{"type":45,"value":434},"Multi-tenant apps, microservices, least-privilege",{"type":39,"tag":62,"props":436,"children":437},{},[438,446,451],{"type":39,"tag":88,"props":439,"children":440},{},[441],{"type":39,"tag":161,"props":442,"children":443},{},[444],{"type":45,"value":445},"Main",{"type":39,"tag":88,"props":447,"children":448},{},[449],{"type":45,"value":450},"Full account access (like Auth Token)",{"type":39,"tag":88,"props":452,"children":453},{},[454],{"type":45,"value":455},"Account management automation (Console-only creation)",{"type":39,"tag":48,"props":457,"children":458},{},[459,461,466,468,474,476,481],{"type":45,"value":460},"After creation, copy the ",{"type":39,"tag":161,"props":462,"children":463},{},[464],{"type":45,"value":465},"API Key SID",{"type":45,"value":467}," (",{"type":39,"tag":189,"props":469,"children":471},{"className":470},[],[472],{"type":45,"value":473},"SK...",{"type":45,"value":475},") and ",{"type":39,"tag":161,"props":477,"children":478},{},[479],{"type":45,"value":480},"Secret",{"type":45,"value":482}," — the secret is shown only once.",{"type":39,"tag":48,"props":484,"children":485},{},[486],{"type":39,"tag":161,"props":487,"children":488},{},[489],{"type":45,"value":232},{"type":39,"tag":234,"props":491,"children":493},{"className":236,"code":492,"language":238,"meta":239,"style":239},"client = Client(\n    os.environ[\"TWILIO_API_KEY\"],      # SK...\n    os.environ[\"TWILIO_API_SECRET\"],\n    os.environ[\"TWILIO_ACCOUNT_SID\"]   # required as third argument\n)\n",[494],{"type":39,"tag":189,"props":495,"children":496},{"__ignoreMap":239},[497,505,513,521,529],{"type":39,"tag":245,"props":498,"children":499},{"class":247,"line":248},[500],{"type":39,"tag":245,"props":501,"children":502},{},[503],{"type":45,"value":504},"client = Client(\n",{"type":39,"tag":245,"props":506,"children":507},{"class":247,"line":257},[508],{"type":39,"tag":245,"props":509,"children":510},{},[511],{"type":45,"value":512},"    os.environ[\"TWILIO_API_KEY\"],      # SK...\n",{"type":39,"tag":245,"props":514,"children":515},{"class":247,"line":266},[516],{"type":39,"tag":245,"props":517,"children":518},{},[519],{"type":45,"value":520},"    os.environ[\"TWILIO_API_SECRET\"],\n",{"type":39,"tag":245,"props":522,"children":523},{"class":247,"line":276},[524],{"type":39,"tag":245,"props":525,"children":526},{},[527],{"type":45,"value":528},"    os.environ[\"TWILIO_ACCOUNT_SID\"]   # required as third argument\n",{"type":39,"tag":245,"props":530,"children":532},{"class":247,"line":531},5,[533],{"type":39,"tag":245,"props":534,"children":535},{},[536],{"type":45,"value":537},")\n",{"type":39,"tag":48,"props":539,"children":540},{},[541],{"type":39,"tag":161,"props":542,"children":543},{},[544],{"type":45,"value":290},{"type":39,"tag":234,"props":546,"children":548},{"className":293,"code":547,"language":295,"meta":239,"style":239},"const client = require(\"twilio\")(\n    process.env.TWILIO_API_KEY,\n    process.env.TWILIO_API_SECRET,\n    { accountSid: process.env.TWILIO_ACCOUNT_SID }\n);\n",[549],{"type":39,"tag":189,"props":550,"children":551},{"__ignoreMap":239},[552,559,567,575,583],{"type":39,"tag":245,"props":553,"children":554},{"class":247,"line":248},[555],{"type":39,"tag":245,"props":556,"children":557},{},[558],{"type":45,"value":307},{"type":39,"tag":245,"props":560,"children":561},{"class":247,"line":257},[562],{"type":39,"tag":245,"props":563,"children":564},{},[565],{"type":45,"value":566},"    process.env.TWILIO_API_KEY,\n",{"type":39,"tag":245,"props":568,"children":569},{"class":247,"line":266},[570],{"type":39,"tag":245,"props":571,"children":572},{},[573],{"type":45,"value":574},"    process.env.TWILIO_API_SECRET,\n",{"type":39,"tag":245,"props":576,"children":577},{"class":247,"line":276},[578],{"type":39,"tag":245,"props":579,"children":580},{},[581],{"type":45,"value":582},"    { accountSid: process.env.TWILIO_ACCOUNT_SID }\n",{"type":39,"tag":245,"props":584,"children":585},{"class":247,"line":531},[586],{"type":39,"tag":245,"props":587,"children":588},{},[589],{"type":45,"value":331},{"type":39,"tag":350,"props":591,"children":593},{"id":592},"restricted-api-keys",[594],{"type":45,"value":595},"Restricted API Keys",{"type":39,"tag":48,"props":597,"children":598},{},[599],{"type":45,"value":600},"Restricted keys grant access only to specific Twilio API resources you define. Use them for least-privilege access in production.",{"type":39,"tag":48,"props":602,"children":603},{},[604,609],{"type":39,"tag":161,"props":605,"children":606},{},[607],{"type":45,"value":608},"Create via the v1 IAM API",{"type":45,"value":610}," (not the v2010 \u002FKeys.json endpoint — see CANNOT section):",{"type":39,"tag":48,"props":612,"children":613},{},[614],{"type":39,"tag":161,"props":615,"children":616},{},[617],{"type":45,"value":232},{"type":39,"tag":234,"props":619,"children":621},{"className":236,"code":620,"language":238,"meta":239,"style":239},"key = client.iam.v1.api_key.create(\n    account_sid=os.environ[\"TWILIO_ACCOUNT_SID\"],\n    friendly_name=\"messaging-only-key\",\n    key_type=\"restricted\",\n    policy={\n        \"allow\": [\n            \"\u002F2010-04-01\u002FAccounts\u002F{AccountSid}\u002FMessages*\"\n        ]\n    }\n)\n# Store key.sid and key.secret securely — secret shown only once\n",[622],{"type":39,"tag":189,"props":623,"children":624},{"__ignoreMap":239},[625,633,641,649,657,665,674,682,691,700,708],{"type":39,"tag":245,"props":626,"children":627},{"class":247,"line":248},[628],{"type":39,"tag":245,"props":629,"children":630},{},[631],{"type":45,"value":632},"key = client.iam.v1.api_key.create(\n",{"type":39,"tag":245,"props":634,"children":635},{"class":247,"line":257},[636],{"type":39,"tag":245,"props":637,"children":638},{},[639],{"type":45,"value":640},"    account_sid=os.environ[\"TWILIO_ACCOUNT_SID\"],\n",{"type":39,"tag":245,"props":642,"children":643},{"class":247,"line":266},[644],{"type":39,"tag":245,"props":645,"children":646},{},[647],{"type":45,"value":648},"    friendly_name=\"messaging-only-key\",\n",{"type":39,"tag":245,"props":650,"children":651},{"class":247,"line":276},[652],{"type":39,"tag":245,"props":653,"children":654},{},[655],{"type":45,"value":656},"    key_type=\"restricted\",\n",{"type":39,"tag":245,"props":658,"children":659},{"class":247,"line":531},[660],{"type":39,"tag":245,"props":661,"children":662},{},[663],{"type":45,"value":664},"    policy={\n",{"type":39,"tag":245,"props":666,"children":668},{"class":247,"line":667},6,[669],{"type":39,"tag":245,"props":670,"children":671},{},[672],{"type":45,"value":673},"        \"allow\": [\n",{"type":39,"tag":245,"props":675,"children":676},{"class":247,"line":27},[677],{"type":39,"tag":245,"props":678,"children":679},{},[680],{"type":45,"value":681},"            \"\u002F2010-04-01\u002FAccounts\u002F{AccountSid}\u002FMessages*\"\n",{"type":39,"tag":245,"props":683,"children":685},{"class":247,"line":684},8,[686],{"type":39,"tag":245,"props":687,"children":688},{},[689],{"type":45,"value":690},"        ]\n",{"type":39,"tag":245,"props":692,"children":694},{"class":247,"line":693},9,[695],{"type":39,"tag":245,"props":696,"children":697},{},[698],{"type":45,"value":699},"    }\n",{"type":39,"tag":245,"props":701,"children":703},{"class":247,"line":702},10,[704],{"type":39,"tag":245,"props":705,"children":706},{},[707],{"type":45,"value":537},{"type":39,"tag":245,"props":709,"children":711},{"class":247,"line":710},11,[712],{"type":39,"tag":245,"props":713,"children":714},{},[715],{"type":45,"value":716},"# Store key.sid and key.secret securely — secret shown only once\n",{"type":39,"tag":48,"props":718,"children":719},{},[720],{"type":39,"tag":161,"props":721,"children":722},{},[723],{"type":45,"value":724},"Example permission patterns:",{"type":39,"tag":54,"props":726,"children":727},{},[728,744],{"type":39,"tag":58,"props":729,"children":730},{},[731],{"type":39,"tag":62,"props":732,"children":733},{},[734,739],{"type":39,"tag":66,"props":735,"children":736},{},[737],{"type":45,"value":738},"Permission",{"type":39,"tag":66,"props":740,"children":741},{},[742],{"type":45,"value":743},"Grants access to",{"type":39,"tag":81,"props":745,"children":746},{},[747,764,781],{"type":39,"tag":62,"props":748,"children":749},{},[750,759],{"type":39,"tag":88,"props":751,"children":752},{},[753],{"type":39,"tag":189,"props":754,"children":756},{"className":755},[],[757],{"type":45,"value":758},"\u002F2010-04-01\u002FAccounts\u002F{AccountSid}\u002FMessages*",{"type":39,"tag":88,"props":760,"children":761},{},[762],{"type":45,"value":763},"Send and read messages",{"type":39,"tag":62,"props":765,"children":766},{},[767,776],{"type":39,"tag":88,"props":768,"children":769},{},[770],{"type":39,"tag":189,"props":771,"children":773},{"className":772},[],[774],{"type":45,"value":775},"\u002F2010-04-01\u002FAccounts\u002F{AccountSid}\u002FCalls*",{"type":39,"tag":88,"props":777,"children":778},{},[779],{"type":45,"value":780},"Make and manage calls",{"type":39,"tag":62,"props":782,"children":783},{},[784,793],{"type":39,"tag":88,"props":785,"children":786},{},[787],{"type":39,"tag":189,"props":788,"children":790},{"className":789},[],[791],{"type":45,"value":792},"\u002Fv2\u002FServices\u002F*\u002FVerifications*",{"type":39,"tag":88,"props":794,"children":795},{},[796],{"type":45,"value":797},"Verify API only",{"type":39,"tag":48,"props":799,"children":800},{},[801,806,808],{"type":39,"tag":161,"props":802,"children":803},{},[804],{"type":45,"value":805},"Docs:",{"type":45,"value":807}," ",{"type":39,"tag":203,"props":809,"children":812},{"href":810,"rel":811},"https:\u002F\u002Fwww.twilio.com\u002Fdocs\u002Fiam\u002Fapi-keys\u002Frestricted-api-keys",[207],[813],{"type":45,"value":814},"Restricted API keys",{"type":39,"tag":350,"props":816,"children":818},{"id":817},"test-credentials",[819],{"type":45,"value":820},"Test Credentials",{"type":39,"tag":48,"props":822,"children":823},{},[824],{"type":45,"value":825},"Make API calls without charges or sending real messages. Find at Console > Account > API keys & tokens > Test credentials.",{"type":39,"tag":48,"props":827,"children":828},{},[829],{"type":39,"tag":161,"props":830,"children":831},{},[832],{"type":45,"value":232},{"type":39,"tag":234,"props":834,"children":836},{"className":236,"code":835,"language":238,"meta":239,"style":239},"client = Client(\n    os.environ[\"TWILIO_TEST_ACCOUNT_SID\"],\n    os.environ[\"TWILIO_TEST_AUTH_TOKEN\"]\n)\n",[837],{"type":39,"tag":189,"props":838,"children":839},{"__ignoreMap":239},[840,847,855,863],{"type":39,"tag":245,"props":841,"children":842},{"class":247,"line":248},[843],{"type":39,"tag":245,"props":844,"children":845},{},[846],{"type":45,"value":504},{"type":39,"tag":245,"props":848,"children":849},{"class":247,"line":257},[850],{"type":39,"tag":245,"props":851,"children":852},{},[853],{"type":45,"value":854},"    os.environ[\"TWILIO_TEST_ACCOUNT_SID\"],\n",{"type":39,"tag":245,"props":856,"children":857},{"class":247,"line":266},[858],{"type":39,"tag":245,"props":859,"children":860},{},[861],{"type":45,"value":862},"    os.environ[\"TWILIO_TEST_AUTH_TOKEN\"]\n",{"type":39,"tag":245,"props":864,"children":865},{"class":247,"line":276},[866],{"type":39,"tag":245,"props":867,"children":868},{},[869],{"type":45,"value":537},{"type":39,"tag":48,"props":871,"children":872},{},[873],{"type":39,"tag":161,"props":874,"children":875},{},[876],{"type":45,"value":290},{"type":39,"tag":234,"props":878,"children":880},{"className":293,"code":879,"language":295,"meta":239,"style":239},"const client = require(\"twilio\")(\n    process.env.TWILIO_TEST_ACCOUNT_SID,\n    process.env.TWILIO_TEST_AUTH_TOKEN\n);\n",[881],{"type":39,"tag":189,"props":882,"children":883},{"__ignoreMap":239},[884,891,899,907],{"type":39,"tag":245,"props":885,"children":886},{"class":247,"line":248},[887],{"type":39,"tag":245,"props":888,"children":889},{},[890],{"type":45,"value":307},{"type":39,"tag":245,"props":892,"children":893},{"class":247,"line":257},[894],{"type":39,"tag":245,"props":895,"children":896},{},[897],{"type":45,"value":898},"    process.env.TWILIO_TEST_ACCOUNT_SID,\n",{"type":39,"tag":245,"props":900,"children":901},{"class":247,"line":266},[902],{"type":39,"tag":245,"props":903,"children":904},{},[905],{"type":45,"value":906},"    process.env.TWILIO_TEST_AUTH_TOKEN\n",{"type":39,"tag":245,"props":908,"children":909},{"class":247,"line":276},[910],{"type":39,"tag":245,"props":911,"children":912},{},[913],{"type":45,"value":331},{"type":39,"tag":48,"props":915,"children":916},{},[917],{"type":45,"value":918},"Magic test numbers:",{"type":39,"tag":179,"props":920,"children":921},{},[922,933,944],{"type":39,"tag":183,"props":923,"children":924},{},[925,931],{"type":39,"tag":189,"props":926,"children":928},{"className":927},[],[929],{"type":45,"value":930},"+15005550006",{"type":45,"value":932}," — valid, can receive messages",{"type":39,"tag":183,"props":934,"children":935},{},[936,942],{"type":39,"tag":189,"props":937,"children":939},{"className":938},[],[940],{"type":45,"value":941},"+15005550001",{"type":45,"value":943}," — invalid number (triggers error 21211)",{"type":39,"tag":183,"props":945,"children":946},{},[947,953],{"type":39,"tag":189,"props":948,"children":950},{"className":949},[],[951],{"type":45,"value":952},"+15005550007",{"type":45,"value":954}," — number that cannot receive SMS (triggers error 21612)",{"type":39,"tag":350,"props":956,"children":958},{"id":957},"auth-token-rotation",[959],{"type":45,"value":960},"Auth Token Rotation",{"type":39,"tag":48,"props":962,"children":963},{},[964,966,971],{"type":45,"value":965},"Rotate your Auth Token if it's been exposed or as periodic security hygiene. Twilio uses a ",{"type":39,"tag":161,"props":967,"children":968},{},[969],{"type":45,"value":970},"secondary token promotion",{"type":45,"value":972}," model:",{"type":39,"tag":974,"props":975,"children":976},"ol",{},[977,982,987,992],{"type":39,"tag":183,"props":978,"children":979},{},[980],{"type":45,"value":981},"Console > Account > API keys & tokens > Request a secondary Auth Token",{"type":39,"tag":183,"props":983,"children":984},{},[985],{"type":45,"value":986},"Update your application to use the secondary token",{"type":39,"tag":183,"props":988,"children":989},{},[990],{"type":45,"value":991},"Once confirmed working, promote the secondary to primary",{"type":39,"tag":183,"props":993,"children":994},{},[995],{"type":45,"value":996},"The old primary token is immediately invalidated",{"type":39,"tag":48,"props":998,"children":999},{},[1000],{"type":39,"tag":161,"props":1001,"children":1002},{},[1003],{"type":45,"value":232},{"type":39,"tag":234,"props":1005,"children":1007},{"className":236,"code":1006,"language":238,"meta":239,"style":239},"# Promote secondary Auth Token to primary via API\nfrom twilio.rest import Client\n\nclient = Client(os.environ[\"TWILIO_ACCOUNT_SID\"], os.environ[\"TWILIO_AUTH_TOKEN\"])\naccount = client.api.accounts(os.environ[\"TWILIO_ACCOUNT_SID\"]).update(\n    auth_token_promotion=\"promote\"\n)\n",[1008],{"type":39,"tag":189,"props":1009,"children":1010},{"__ignoreMap":239},[1011,1019,1026,1033,1040,1048,1056],{"type":39,"tag":245,"props":1012,"children":1013},{"class":247,"line":248},[1014],{"type":39,"tag":245,"props":1015,"children":1016},{},[1017],{"type":45,"value":1018},"# Promote secondary Auth Token to primary via API\n",{"type":39,"tag":245,"props":1020,"children":1021},{"class":247,"line":257},[1022],{"type":39,"tag":245,"props":1023,"children":1024},{},[1025],{"type":45,"value":263},{"type":39,"tag":245,"props":1027,"children":1028},{"class":247,"line":266},[1029],{"type":39,"tag":245,"props":1030,"children":1031},{"emptyLinePlaceholder":270},[1032],{"type":45,"value":273},{"type":39,"tag":245,"props":1034,"children":1035},{"class":247,"line":276},[1036],{"type":39,"tag":245,"props":1037,"children":1038},{},[1039],{"type":45,"value":282},{"type":39,"tag":245,"props":1041,"children":1042},{"class":247,"line":531},[1043],{"type":39,"tag":245,"props":1044,"children":1045},{},[1046],{"type":45,"value":1047},"account = client.api.accounts(os.environ[\"TWILIO_ACCOUNT_SID\"]).update(\n",{"type":39,"tag":245,"props":1049,"children":1050},{"class":247,"line":667},[1051],{"type":39,"tag":245,"props":1052,"children":1053},{},[1054],{"type":45,"value":1055},"    auth_token_promotion=\"promote\"\n",{"type":39,"tag":245,"props":1057,"children":1058},{"class":247,"line":27},[1059],{"type":39,"tag":245,"props":1060,"children":1061},{},[1062],{"type":45,"value":537},{"type":39,"tag":48,"props":1064,"children":1065},{},[1066,1071],{"type":39,"tag":161,"props":1067,"children":1068},{},[1069],{"type":45,"value":1070},"Important:",{"type":45,"value":1072}," Auth Token rotation invalidates all active sessions using that token. Plan the switchover to minimize downtime.",{"type":39,"tag":48,"props":1074,"children":1075},{},[1076,1081],{"type":39,"tag":161,"props":1077,"children":1078},{},[1079],{"type":45,"value":1080},"API Keys cannot be rotated",{"type":45,"value":1082}," — if an API Key is compromised, delete it and create a new one:",{"type":39,"tag":179,"props":1084,"children":1085},{},[1086,1091],{"type":39,"tag":183,"props":1087,"children":1088},{},[1089],{"type":45,"value":1090},"Console > Account > API keys & tokens > select key > Delete",{"type":39,"tag":183,"props":1092,"children":1093},{},[1094,1096],{"type":45,"value":1095},"Or via API: ",{"type":39,"tag":189,"props":1097,"children":1099},{"className":1098},[],[1100],{"type":45,"value":1101},"client.keys(key_sid).delete()",{"type":39,"tag":48,"props":1103,"children":1104},{},[1105,1109,1110],{"type":39,"tag":161,"props":1106,"children":1107},{},[1108],{"type":45,"value":805},{"type":45,"value":807},{"type":39,"tag":203,"props":1111,"children":1114},{"href":1112,"rel":1113},"https:\u002F\u002Fwww.twilio.com\u002Fdocs\u002Fiam\u002Fapi\u002Fauthtoken",[207],[1115],{"type":45,"value":1116},"Auth Token REST API",{"type":39,"tag":350,"props":1118,"children":1120},{"id":1119},"access-tokens-client-side-sdks",[1121],{"type":45,"value":1122},"Access Tokens (client-side SDKs)",{"type":39,"tag":48,"props":1124,"children":1125},{},[1126],{"type":45,"value":1127},"Short-lived JWTs for authenticating browser\u002Fmobile clients (Voice JS SDK, Conversations SDK, Video SDK). Generate server-side and pass to the client.",{"type":39,"tag":48,"props":1129,"children":1130},{},[1131],{"type":39,"tag":161,"props":1132,"children":1133},{},[1134],{"type":45,"value":232},{"type":39,"tag":234,"props":1136,"children":1138},{"className":236,"code":1137,"language":238,"meta":239,"style":239},"from twilio.jwt.access_token import AccessToken\nfrom twilio.jwt.access_token.grants import VoiceGrant\n\ntoken = AccessToken(\n    os.environ[\"TWILIO_ACCOUNT_SID\"],\n    os.environ[\"TWILIO_API_KEY\"],\n    os.environ[\"TWILIO_API_SECRET\"],\n    identity=\"user-123\",\n    ttl=3600\n)\ntoken.add_grant(VoiceGrant(outgoing_application_sid=\"APxxxx\"))\nprint(token.to_jwt())\n",[1139],{"type":39,"tag":189,"props":1140,"children":1141},{"__ignoreMap":239},[1142,1150,1158,1165,1173,1181,1189,1196,1204,1212,1219,1227],{"type":39,"tag":245,"props":1143,"children":1144},{"class":247,"line":248},[1145],{"type":39,"tag":245,"props":1146,"children":1147},{},[1148],{"type":45,"value":1149},"from twilio.jwt.access_token import AccessToken\n",{"type":39,"tag":245,"props":1151,"children":1152},{"class":247,"line":257},[1153],{"type":39,"tag":245,"props":1154,"children":1155},{},[1156],{"type":45,"value":1157},"from twilio.jwt.access_token.grants import VoiceGrant\n",{"type":39,"tag":245,"props":1159,"children":1160},{"class":247,"line":266},[1161],{"type":39,"tag":245,"props":1162,"children":1163},{"emptyLinePlaceholder":270},[1164],{"type":45,"value":273},{"type":39,"tag":245,"props":1166,"children":1167},{"class":247,"line":276},[1168],{"type":39,"tag":245,"props":1169,"children":1170},{},[1171],{"type":45,"value":1172},"token = AccessToken(\n",{"type":39,"tag":245,"props":1174,"children":1175},{"class":247,"line":531},[1176],{"type":39,"tag":245,"props":1177,"children":1178},{},[1179],{"type":45,"value":1180},"    os.environ[\"TWILIO_ACCOUNT_SID\"],\n",{"type":39,"tag":245,"props":1182,"children":1183},{"class":247,"line":667},[1184],{"type":39,"tag":245,"props":1185,"children":1186},{},[1187],{"type":45,"value":1188},"    os.environ[\"TWILIO_API_KEY\"],\n",{"type":39,"tag":245,"props":1190,"children":1191},{"class":247,"line":27},[1192],{"type":39,"tag":245,"props":1193,"children":1194},{},[1195],{"type":45,"value":520},{"type":39,"tag":245,"props":1197,"children":1198},{"class":247,"line":684},[1199],{"type":39,"tag":245,"props":1200,"children":1201},{},[1202],{"type":45,"value":1203},"    identity=\"user-123\",\n",{"type":39,"tag":245,"props":1205,"children":1206},{"class":247,"line":693},[1207],{"type":39,"tag":245,"props":1208,"children":1209},{},[1210],{"type":45,"value":1211},"    ttl=3600\n",{"type":39,"tag":245,"props":1213,"children":1214},{"class":247,"line":702},[1215],{"type":39,"tag":245,"props":1216,"children":1217},{},[1218],{"type":45,"value":537},{"type":39,"tag":245,"props":1220,"children":1221},{"class":247,"line":710},[1222],{"type":39,"tag":245,"props":1223,"children":1224},{},[1225],{"type":45,"value":1226},"token.add_grant(VoiceGrant(outgoing_application_sid=\"APxxxx\"))\n",{"type":39,"tag":245,"props":1228,"children":1230},{"class":247,"line":1229},12,[1231],{"type":39,"tag":245,"props":1232,"children":1233},{},[1234],{"type":45,"value":1235},"print(token.to_jwt())\n",{"type":39,"tag":48,"props":1237,"children":1238},{},[1239],{"type":39,"tag":161,"props":1240,"children":1241},{},[1242],{"type":45,"value":290},{"type":39,"tag":234,"props":1244,"children":1246},{"className":293,"code":1245,"language":295,"meta":239,"style":239},"const { AccessToken } = require(\"twilio\").jwt;\nconst { VoiceGrant } = AccessToken;\n\nconst token = new AccessToken(\n    process.env.TWILIO_ACCOUNT_SID,\n    process.env.TWILIO_API_KEY,\n    process.env.TWILIO_API_SECRET,\n    { identity: \"user-123\", ttl: 3600 }\n);\ntoken.addGrant(new VoiceGrant({ outgoingApplicationSid: \"APxxxx\" }));\nconsole.log(token.toJwt());\n",[1247],{"type":39,"tag":189,"props":1248,"children":1249},{"__ignoreMap":239},[1250,1258,1266,1273,1281,1288,1295,1302,1310,1317,1325],{"type":39,"tag":245,"props":1251,"children":1252},{"class":247,"line":248},[1253],{"type":39,"tag":245,"props":1254,"children":1255},{},[1256],{"type":45,"value":1257},"const { AccessToken } = require(\"twilio\").jwt;\n",{"type":39,"tag":245,"props":1259,"children":1260},{"class":247,"line":257},[1261],{"type":39,"tag":245,"props":1262,"children":1263},{},[1264],{"type":45,"value":1265},"const { VoiceGrant } = AccessToken;\n",{"type":39,"tag":245,"props":1267,"children":1268},{"class":247,"line":266},[1269],{"type":39,"tag":245,"props":1270,"children":1271},{"emptyLinePlaceholder":270},[1272],{"type":45,"value":273},{"type":39,"tag":245,"props":1274,"children":1275},{"class":247,"line":276},[1276],{"type":39,"tag":245,"props":1277,"children":1278},{},[1279],{"type":45,"value":1280},"const token = new AccessToken(\n",{"type":39,"tag":245,"props":1282,"children":1283},{"class":247,"line":531},[1284],{"type":39,"tag":245,"props":1285,"children":1286},{},[1287],{"type":45,"value":315},{"type":39,"tag":245,"props":1289,"children":1290},{"class":247,"line":667},[1291],{"type":39,"tag":245,"props":1292,"children":1293},{},[1294],{"type":45,"value":566},{"type":39,"tag":245,"props":1296,"children":1297},{"class":247,"line":27},[1298],{"type":39,"tag":245,"props":1299,"children":1300},{},[1301],{"type":45,"value":574},{"type":39,"tag":245,"props":1303,"children":1304},{"class":247,"line":684},[1305],{"type":39,"tag":245,"props":1306,"children":1307},{},[1308],{"type":45,"value":1309},"    { identity: \"user-123\", ttl: 3600 }\n",{"type":39,"tag":245,"props":1311,"children":1312},{"class":247,"line":693},[1313],{"type":39,"tag":245,"props":1314,"children":1315},{},[1316],{"type":45,"value":331},{"type":39,"tag":245,"props":1318,"children":1319},{"class":247,"line":702},[1320],{"type":39,"tag":245,"props":1321,"children":1322},{},[1323],{"type":45,"value":1324},"token.addGrant(new VoiceGrant({ outgoingApplicationSid: \"APxxxx\" }));\n",{"type":39,"tag":245,"props":1326,"children":1327},{"class":247,"line":710},[1328],{"type":39,"tag":245,"props":1329,"children":1330},{},[1331],{"type":45,"value":1332},"console.log(token.toJwt());\n",{"type":39,"tag":48,"props":1334,"children":1335},{},[1336,1338,1344,1346,1352,1353,1359,1361],{"type":45,"value":1337},"Available grant types: ",{"type":39,"tag":189,"props":1339,"children":1341},{"className":1340},[],[1342],{"type":45,"value":1343},"VoiceGrant",{"type":45,"value":1345},", ",{"type":39,"tag":189,"props":1347,"children":1349},{"className":1348},[],[1350],{"type":45,"value":1351},"VideoGrant",{"type":45,"value":1345},{"type":39,"tag":189,"props":1354,"children":1356},{"className":1355},[],[1357],{"type":45,"value":1358},"ChatGrant",{"type":45,"value":1360}," (Conversations), ",{"type":39,"tag":189,"props":1362,"children":1364},{"className":1363},[],[1365],{"type":45,"value":1366},"SyncGrant",{"type":39,"tag":350,"props":1368,"children":1370},{"id":1369},"environment-variable-reference",[1371],{"type":45,"value":1372},"Environment Variable Reference",{"type":39,"tag":234,"props":1374,"children":1378},{"className":1375,"code":1376,"language":1377,"meta":239,"style":239},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n\n# Option 1: Auth Token (testing only)\nTWILIO_AUTH_TOKEN=your_auth_token\n\n# Option 2: API Key (production)\nTWILIO_API_KEY=SKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nTWILIO_API_SECRET=your_api_secret\n\n# Test credentials\nTWILIO_TEST_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nTWILIO_TEST_AUTH_TOKEN=your_test_auth_token\n","bash",[1379],{"type":39,"tag":189,"props":1380,"children":1381},{"__ignoreMap":239},[1382,1403,1410,1419,1436,1443,1451,1468,1485,1492,1500,1516],{"type":39,"tag":245,"props":1383,"children":1384},{"class":247,"line":248},[1385,1391,1397],{"type":39,"tag":245,"props":1386,"children":1388},{"style":1387},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[1389],{"type":45,"value":1390},"TWILIO_ACCOUNT_SID",{"type":39,"tag":245,"props":1392,"children":1394},{"style":1393},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[1395],{"type":45,"value":1396},"=",{"type":39,"tag":245,"props":1398,"children":1400},{"style":1399},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[1401],{"type":45,"value":1402},"ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n",{"type":39,"tag":245,"props":1404,"children":1405},{"class":247,"line":257},[1406],{"type":39,"tag":245,"props":1407,"children":1408},{"emptyLinePlaceholder":270},[1409],{"type":45,"value":273},{"type":39,"tag":245,"props":1411,"children":1412},{"class":247,"line":266},[1413],{"type":39,"tag":245,"props":1414,"children":1416},{"style":1415},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[1417],{"type":45,"value":1418},"# Option 1: Auth Token (testing only)\n",{"type":39,"tag":245,"props":1420,"children":1421},{"class":247,"line":276},[1422,1427,1431],{"type":39,"tag":245,"props":1423,"children":1424},{"style":1387},[1425],{"type":45,"value":1426},"TWILIO_AUTH_TOKEN",{"type":39,"tag":245,"props":1428,"children":1429},{"style":1393},[1430],{"type":45,"value":1396},{"type":39,"tag":245,"props":1432,"children":1433},{"style":1399},[1434],{"type":45,"value":1435},"your_auth_token\n",{"type":39,"tag":245,"props":1437,"children":1438},{"class":247,"line":531},[1439],{"type":39,"tag":245,"props":1440,"children":1441},{"emptyLinePlaceholder":270},[1442],{"type":45,"value":273},{"type":39,"tag":245,"props":1444,"children":1445},{"class":247,"line":667},[1446],{"type":39,"tag":245,"props":1447,"children":1448},{"style":1415},[1449],{"type":45,"value":1450},"# Option 2: API Key (production)\n",{"type":39,"tag":245,"props":1452,"children":1453},{"class":247,"line":27},[1454,1459,1463],{"type":39,"tag":245,"props":1455,"children":1456},{"style":1387},[1457],{"type":45,"value":1458},"TWILIO_API_KEY",{"type":39,"tag":245,"props":1460,"children":1461},{"style":1393},[1462],{"type":45,"value":1396},{"type":39,"tag":245,"props":1464,"children":1465},{"style":1399},[1466],{"type":45,"value":1467},"SKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n",{"type":39,"tag":245,"props":1469,"children":1470},{"class":247,"line":684},[1471,1476,1480],{"type":39,"tag":245,"props":1472,"children":1473},{"style":1387},[1474],{"type":45,"value":1475},"TWILIO_API_SECRET",{"type":39,"tag":245,"props":1477,"children":1478},{"style":1393},[1479],{"type":45,"value":1396},{"type":39,"tag":245,"props":1481,"children":1482},{"style":1399},[1483],{"type":45,"value":1484},"your_api_secret\n",{"type":39,"tag":245,"props":1486,"children":1487},{"class":247,"line":693},[1488],{"type":39,"tag":245,"props":1489,"children":1490},{"emptyLinePlaceholder":270},[1491],{"type":45,"value":273},{"type":39,"tag":245,"props":1493,"children":1494},{"class":247,"line":702},[1495],{"type":39,"tag":245,"props":1496,"children":1497},{"style":1415},[1498],{"type":45,"value":1499},"# Test credentials\n",{"type":39,"tag":245,"props":1501,"children":1502},{"class":247,"line":710},[1503,1508,1512],{"type":39,"tag":245,"props":1504,"children":1505},{"style":1387},[1506],{"type":45,"value":1507},"TWILIO_TEST_ACCOUNT_SID",{"type":39,"tag":245,"props":1509,"children":1510},{"style":1393},[1511],{"type":45,"value":1396},{"type":39,"tag":245,"props":1513,"children":1514},{"style":1399},[1515],{"type":45,"value":1402},{"type":39,"tag":245,"props":1517,"children":1518},{"class":247,"line":1229},[1519,1524,1528],{"type":39,"tag":245,"props":1520,"children":1521},{"style":1387},[1522],{"type":45,"value":1523},"TWILIO_TEST_AUTH_TOKEN",{"type":39,"tag":245,"props":1525,"children":1526},{"style":1393},[1527],{"type":45,"value":1396},{"type":39,"tag":245,"props":1529,"children":1530},{"style":1399},[1531],{"type":45,"value":1532},"your_test_auth_token\n",{"type":39,"tag":169,"props":1534,"children":1535},{},[],{"type":39,"tag":40,"props":1537,"children":1539},{"id":1538},"cannot",[1540],{"type":45,"value":1541},"CANNOT",{"type":39,"tag":179,"props":1543,"children":1544},{},[1545,1555,1589,1599,1609,1619,1628,1647,1657,1667,1677,1687,1697,1707],{"type":39,"tag":183,"props":1546,"children":1547},{},[1548,1553],{"type":39,"tag":161,"props":1549,"children":1550},{},[1551],{"type":45,"value":1552},"Standard keys cannot access \u002FAccounts or \u002FKeys endpoints",{"type":45,"value":1554}," — Returns error 20003 (401). Must use Auth Token or Main API Key for account management.",{"type":39,"tag":183,"props":1556,"children":1557},{},[1558,1563,1565,1571,1573,1579,1581,1587],{"type":39,"tag":161,"props":1559,"children":1560},{},[1561],{"type":45,"value":1562},"No restricted key creation via v2010 API",{"type":45,"value":1564}," — The v2010 ",{"type":39,"tag":189,"props":1566,"children":1568},{"className":1567},[],[1569],{"type":45,"value":1570},"\u002FKeys.json",{"type":45,"value":1572}," endpoint silently ignores ",{"type":39,"tag":189,"props":1574,"children":1576},{"className":1575},[],[1577],{"type":45,"value":1578},"KeyType=restricted",{"type":45,"value":1580}," and ",{"type":39,"tag":189,"props":1582,"children":1584},{"className":1583},[],[1585],{"type":45,"value":1586},"Policy",{"type":45,"value":1588}," parameters, creating a standard key instead. Use the v1 IAM API.",{"type":39,"tag":183,"props":1590,"children":1591},{},[1592,1597],{"type":39,"tag":161,"props":1593,"children":1594},{},[1595],{"type":45,"value":1596},"Restricted keys cannot generate Access Tokens",{"type":45,"value":1598}," — Only Standard and Main keys can create client SDK tokens.",{"type":39,"tag":183,"props":1600,"children":1601},{},[1602,1607],{"type":39,"tag":161,"props":1603,"children":1604},{},[1605],{"type":45,"value":1606},"No individual Access Token revocation",{"type":45,"value":1608}," — Tokens are valid until expiration (max 24h). To revoke early, delete the API key that issued them.",{"type":39,"tag":183,"props":1610,"children":1611},{},[1612,1617],{"type":39,"tag":161,"props":1613,"children":1614},{},[1615],{"type":45,"value":1616},"Subaccount credentials cannot access parent or sibling resources",{"type":45,"value":1618}," — Each subaccount has its own Auth Token and API Keys. Use the subaccount's own credentials to access its resources — never the parent account's credentials.",{"type":39,"tag":183,"props":1620,"children":1621},{},[1622,1626],{"type":39,"tag":161,"props":1623,"children":1624},{},[1625],{"type":45,"value":1080},{"type":45,"value":1627}," — No key rotation API exists. To replace a compromised key: create a new key, update your app, then delete the old key.",{"type":39,"tag":183,"props":1629,"children":1630},{},[1631,1636,1638,1645],{"type":39,"tag":161,"props":1632,"children":1633},{},[1634],{"type":45,"value":1635},"PKCV is an advanced feature for compliance-heavy industries",{"type":45,"value":1637}," — Public Key Client Validation adds client-certificate-style auth. Incompatible with Flex, Studio, and TaskRouter. Once enforcement is enabled, Auth Token authentication is disabled (one-way door). See ",{"type":39,"tag":203,"props":1639,"children":1642},{"href":1640,"rel":1641},"https:\u002F\u002Fwww.twilio.com\u002Fdocs\u002Fiam\u002Fpkcv",[207],[1643],{"type":45,"value":1644},"PKCV docs",{"type":45,"value":1646}," — consider this only if your security team requires mutual TLS-equivalent authentication.",{"type":39,"tag":183,"props":1648,"children":1649},{},[1650,1655],{"type":39,"tag":161,"props":1651,"children":1652},{},[1653],{"type":45,"value":1654},"Test credentials work with only 4 endpoints",{"type":45,"value":1656}," — Messages, Calls, IncomingPhoneNumbers, and Lookups. All other endpoints return 403.",{"type":39,"tag":183,"props":1658,"children":1659},{},[1660,1665],{"type":39,"tag":161,"props":1661,"children":1662},{},[1663],{"type":45,"value":1664},"API Key Secret shown only at creation",{"type":45,"value":1666}," — Cannot be retrieved afterward. If lost, create a new key.",{"type":39,"tag":183,"props":1668,"children":1669},{},[1670,1675],{"type":39,"tag":161,"props":1671,"children":1672},{},[1673],{"type":45,"value":1674},"FriendlyName max 64 characters for keys",{"type":45,"value":1676}," — 65+ characters returns error 70001.",{"type":39,"tag":183,"props":1678,"children":1679},{},[1680,1685],{"type":39,"tag":161,"props":1681,"children":1682},{},[1683],{"type":45,"value":1684},"Restricted keys limited to 100 permissions per key",{"type":45,"value":1686}," — Exceeding this limit is rejected at creation.",{"type":39,"tag":183,"props":1688,"children":1689},{},[1690,1695],{"type":39,"tag":161,"props":1691,"children":1692},{},[1693],{"type":45,"value":1694},"Cannot create Main API Keys via REST API",{"type":45,"value":1696}," — Console only",{"type":39,"tag":183,"props":1698,"children":1699},{},[1700,1705],{"type":39,"tag":161,"props":1701,"children":1702},{},[1703],{"type":45,"value":1704},"Cannot set Access Token TTL beyond 24 hours",{"type":45,"value":1706}," — Maximum lifetime is 24h",{"type":39,"tag":183,"props":1708,"children":1709},{},[1710,1715],{"type":39,"tag":161,"props":1711,"children":1712},{},[1713],{"type":45,"value":1714},"Cannot use test credentials with real numbers",{"type":45,"value":1716}," — Test credentials only work with test magic numbers",{"type":39,"tag":169,"props":1718,"children":1719},{},[],{"type":39,"tag":40,"props":1721,"children":1723},{"id":1722},"next-steps",[1724],{"type":45,"value":1725},"Next Steps",{"type":39,"tag":179,"props":1727,"children":1728},{},[1729,1743,1758,1773],{"type":39,"tag":183,"props":1730,"children":1731},{},[1732,1737,1738],{"type":39,"tag":161,"props":1733,"children":1734},{},[1735],{"type":45,"value":1736},"Account setup and phone numbers:",{"type":45,"value":807},{"type":39,"tag":189,"props":1739,"children":1741},{"className":1740},[],[1742],{"type":45,"value":194},{"type":39,"tag":183,"props":1744,"children":1745},{},[1746,1751,1752],{"type":39,"tag":161,"props":1747,"children":1748},{},[1749],{"type":45,"value":1750},"Security best practices (credential management, key rotation):",{"type":45,"value":807},{"type":39,"tag":189,"props":1753,"children":1755},{"className":1754},[],[1756],{"type":45,"value":1757},"twilio-security-hardening",{"type":39,"tag":183,"props":1759,"children":1760},{},[1761,1766,1767],{"type":39,"tag":161,"props":1762,"children":1763},{},[1764],{"type":45,"value":1765},"Restricted API keys (fine-grained permissions):",{"type":45,"value":807},{"type":39,"tag":203,"props":1768,"children":1770},{"href":810,"rel":1769},[207],[1771],{"type":45,"value":1772},"Docs",{"type":39,"tag":183,"props":1774,"children":1775},{},[1776,1781,1782],{"type":39,"tag":161,"props":1777,"children":1778},{},[1779],{"type":45,"value":1780},"Auth Token rotation:",{"type":45,"value":807},{"type":39,"tag":203,"props":1783,"children":1785},{"href":1112,"rel":1784},[207],[1786],{"type":45,"value":1787},"REST API",{"type":39,"tag":1789,"props":1790,"children":1791},"style",{},[1792],{"type":45,"value":1793},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1795,"total":1900},[1796,1809,1829,1840,1852,1867,1884],{"slug":194,"name":194,"fn":1797,"description":1798,"org":1799,"tags":1800,"stars":23,"repoUrl":24,"updatedAt":1808},"configure Twilio accounts and credentials","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`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1801,1802,1805],{"name":20,"slug":21,"type":15},{"name":1803,"slug":1804,"type":15},"Communications","communications",{"name":1806,"slug":1807,"type":15},"SMS","sms","2026-08-01T05:43:28.968968",{"slug":1810,"name":1810,"fn":1811,"description":1812,"org":1813,"tags":1814,"stars":23,"repoUrl":24,"updatedAt":1828},"twilio-agent-augmentation-architect","augment human agents with AI intelligence","Planning skill for augmenting human agents with real-time AI intelligence. Qualifies the developer's use case across coaching, compliance, QA, and routing to recommend the right Conversation Intelligence + Conversation Memory + TaskRouter architecture. Handles both \"I want to add AI coaching to my call center\" and \"configure Conversation Intelligence operators for script adherence.\"\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1815,1818,1821,1824,1827],{"name":1816,"slug":1817,"type":15},"Agents","agents",{"name":1819,"slug":1820,"type":15},"AI","ai",{"name":1822,"slug":1823,"type":15},"Coaching","coaching",{"name":1825,"slug":1826,"type":15},"QA","qa",{"name":9,"slug":8,"type":15},"2026-07-17T06:07:58.250609",{"slug":1830,"name":1830,"fn":1831,"description":1832,"org":1833,"tags":1834,"stars":23,"repoUrl":24,"updatedAt":1839},"twilio-agent-connect","connect AI agents to Twilio channels","Connect third-party AI agents (OpenAI, Bedrock, LangChain, Microsoft Foundry) to Twilio's communication channels using the Twilio Agent Connect SDK. Covers identity resolution, memory and context management via Conversation Memory, conversation orchestration via Conversation Orchestrator, multi-channel handling (Voice, SMS, RCS, WhatsApp, Chat), and AI-to-human escalation. Use this skill when integrating an existing LLM agent with Twilio services.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1835,1836,1837,1838],{"name":1816,"slug":1817,"type":15},{"name":20,"slug":21,"type":15},{"name":1803,"slug":1804,"type":15},{"name":9,"slug":8,"type":15},"2026-07-17T06:06:05.217098",{"slug":1841,"name":1841,"fn":1842,"description":1843,"org":1844,"tags":1845,"stars":23,"repoUrl":24,"updatedAt":1851},"twilio-ai-agent-architect","plan Twilio conversational AI agents","Planning skill for AI-powered conversational agents. Qualifies the developer's use case across outcome sophistication, entry point, and customer profile to recommend the right Twilio Conversations architecture and implementation skills. Handles both high-level requests (\"build me a voice AI assistant\") and specific ones (\"integrate ConversationRelay with my OpenAI backend\").\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1846,1847,1850],{"name":1816,"slug":1817,"type":15},{"name":1848,"slug":1849,"type":15},"Architecture","architecture",{"name":9,"slug":8,"type":15},"2026-07-17T06:07:48.883723",{"slug":1853,"name":1853,"fn":1854,"description":1855,"org":1856,"tags":1857,"stars":23,"repoUrl":24,"updatedAt":1866},"twilio-call-recordings","record and manage Twilio voice calls","Record Twilio voice calls correctly. Covers the critical distinction between Record verb (voicemail) and Dial record (call recording), dual-channel for QA, mid-call pause for PCI, Conference recording, and the ConversationRelay workaround. Use this skill whenever you need to capture call audio for compliance, QA, or analytics.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1858,1861,1864,1865],{"name":1859,"slug":1860,"type":15},"Audio","audio",{"name":1862,"slug":1863,"type":15},"Compliance","compliance",{"name":1825,"slug":1826,"type":15},{"name":9,"slug":8,"type":15},"2026-07-17T06:07:55.268412",{"slug":1868,"name":1868,"fn":1869,"description":1870,"org":1871,"tags":1872,"stars":23,"repoUrl":24,"updatedAt":1883},"twilio-cli-reference","manage Twilio resources via CLI","Twilio CLI reference for managing Twilio resources from the terminal. Covers installation, credential profiles, phone number provisioning, sending SMS and email, webhook configuration, local development with a tunneling service, debugging with watch and logs, serverless deployment, and plugin ecosystem. Use when the developer asks to \"just do it\", \"set this up\", \"run a command\", mentions \"CLI\", \"command line\", or \"terminal\", or when an AI agent can execute a task directly instead of writing application code.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1873,1876,1879,1882],{"name":1874,"slug":1875,"type":15},"CLI","cli",{"name":1877,"slug":1878,"type":15},"Local Development","local-development",{"name":1880,"slug":1881,"type":15},"Operations","operations",{"name":9,"slug":8,"type":15},"2026-07-17T06:07:54.925664",{"slug":1885,"name":1885,"fn":1886,"description":1887,"org":1888,"tags":1889,"stars":23,"repoUrl":24,"updatedAt":1899},"twilio-compliance-onboarding","manage Twilio messaging and voice compliance","Registrations required BEFORE Twilio traffic works. Covers messaging programs (A2P 10DLC, toll-free verification, WhatsApp WABA, RCS, short code, alphanumeric sender) and voice trust programs (STIR\u002FSHAKEN, Voice Integrity, Branded Calling, CNAM). Each number\u002Fsender type has its own program — registration blocks traffic until complete.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1890,1891,1894,1895,1896],{"name":1862,"slug":1863,"type":15},{"name":1892,"slug":1893,"type":15},"Messaging","messaging",{"name":1806,"slug":1807,"type":15},{"name":9,"slug":8,"type":15},{"name":1897,"slug":1898,"type":15},"WhatsApp","whatsapp","2026-07-17T06:05:47.897229",57,{"items":1902,"total":1900},[1903,1909,1917,1924,1930,1937,1944,1952,1966,1979,1995,2013],{"slug":194,"name":194,"fn":1797,"description":1798,"org":1904,"tags":1905,"stars":23,"repoUrl":24,"updatedAt":1808},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1906,1907,1908],{"name":20,"slug":21,"type":15},{"name":1803,"slug":1804,"type":15},{"name":1806,"slug":1807,"type":15},{"slug":1810,"name":1810,"fn":1811,"description":1812,"org":1910,"tags":1911,"stars":23,"repoUrl":24,"updatedAt":1828},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1912,1913,1914,1915,1916],{"name":1816,"slug":1817,"type":15},{"name":1819,"slug":1820,"type":15},{"name":1822,"slug":1823,"type":15},{"name":1825,"slug":1826,"type":15},{"name":9,"slug":8,"type":15},{"slug":1830,"name":1830,"fn":1831,"description":1832,"org":1918,"tags":1919,"stars":23,"repoUrl":24,"updatedAt":1839},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1920,1921,1922,1923],{"name":1816,"slug":1817,"type":15},{"name":20,"slug":21,"type":15},{"name":1803,"slug":1804,"type":15},{"name":9,"slug":8,"type":15},{"slug":1841,"name":1841,"fn":1842,"description":1843,"org":1925,"tags":1926,"stars":23,"repoUrl":24,"updatedAt":1851},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1927,1928,1929],{"name":1816,"slug":1817,"type":15},{"name":1848,"slug":1849,"type":15},{"name":9,"slug":8,"type":15},{"slug":1853,"name":1853,"fn":1854,"description":1855,"org":1931,"tags":1932,"stars":23,"repoUrl":24,"updatedAt":1866},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1933,1934,1935,1936],{"name":1859,"slug":1860,"type":15},{"name":1862,"slug":1863,"type":15},{"name":1825,"slug":1826,"type":15},{"name":9,"slug":8,"type":15},{"slug":1868,"name":1868,"fn":1869,"description":1870,"org":1938,"tags":1939,"stars":23,"repoUrl":24,"updatedAt":1883},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1940,1941,1942,1943],{"name":1874,"slug":1875,"type":15},{"name":1877,"slug":1878,"type":15},{"name":1880,"slug":1881,"type":15},{"name":9,"slug":8,"type":15},{"slug":1885,"name":1885,"fn":1886,"description":1887,"org":1945,"tags":1946,"stars":23,"repoUrl":24,"updatedAt":1899},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1947,1948,1949,1950,1951],{"name":1862,"slug":1863,"type":15},{"name":1892,"slug":1893,"type":15},{"name":1806,"slug":1807,"type":15},{"name":9,"slug":8,"type":15},{"name":1897,"slug":1898,"type":15},{"slug":1953,"name":1953,"fn":1954,"description":1955,"org":1956,"tags":1957,"stars":23,"repoUrl":24,"updatedAt":1965},"twilio-compliance-traffic","ensure compliance for Twilio messaging traffic","Rules you must follow for Twilio messaging and voice traffic. Covers TCPA (consent tiers, quiet hours, DNC), GDPR (EU consent, right to deletion), PCI DSS (payment recording, Pay verb), HIPAA (BAA, PHI), FDCPA (debt collection limits), CAN-SPAM, WhatsApp policies, SHAKEN\u002FSTIR, and consent management patterns. Use this skill proactively when developers have working traffic to ensure they follow the rules.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1958,1959,1960,1963,1964],{"name":1862,"slug":1863,"type":15},{"name":1892,"slug":1893,"type":15},{"name":1961,"slug":1962,"type":15},"Regulatory Compliance","regulatory-compliance",{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-07-17T06:07:55.952779",{"slug":1967,"name":1967,"fn":1968,"description":1969,"org":1970,"tags":1971,"stars":23,"repoUrl":24,"updatedAt":1978},"twilio-conference-calls","build multi-party calls with Twilio Conference","Build multi-party calls using Twilio Conference. Covers warm transfer, cold transfer, coaching (whisper), hold vs mute, participant modes, and supervisor barge. Use this skill for any contact center, support line, or scenario requiring transfers, holds, or multi-party calls.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1972,1973,1974,1977],{"name":1859,"slug":1860,"type":15},{"name":1803,"slug":1804,"type":15},{"name":1975,"slug":1976,"type":15},"Meetings","meetings",{"name":9,"slug":8,"type":15},"2026-07-17T06:07:55.603708",{"slug":1980,"name":1980,"fn":1981,"description":1982,"org":1983,"tags":1984,"stars":23,"repoUrl":24,"updatedAt":1994},"twilio-content-template-builder","create and send message templates with Twilio","Create, manage, and send message templates using Twilio's Content API. Covers template creation for WhatsApp, SMS, RCS, and MMS; variable usage; WhatsApp Meta approval; and sending templates via ContentSid. Use this skill when building structured messages that require pre-approval or consistent formatting across channels.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1985,1988,1989,1990,1993],{"name":1986,"slug":1987,"type":15},"Email","email",{"name":1892,"slug":1893,"type":15},{"name":1806,"slug":1807,"type":15},{"name":1991,"slug":1992,"type":15},"Templates","templates",{"name":9,"slug":8,"type":15},"2026-07-17T06:04:26.637309",{"slug":1996,"name":1996,"fn":1997,"description":1998,"org":1999,"tags":2000,"stars":23,"repoUrl":24,"updatedAt":2012},"twilio-conversation-intelligence","build conversation intelligence pipelines","Twilio Conversation Intelligence development guide. Use when building real-time or post-call conversation analysis, language operator pipelines, sentiment analysis, agent assist, cross-channel analytics, or querying aggregated conversation insights (sentiment trends, escalation rates, dashboards).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2001,2002,2005,2008,2011],{"name":1816,"slug":1817,"type":15},{"name":2003,"slug":2004,"type":15},"Analytics","analytics",{"name":2006,"slug":2007,"type":15},"Monitoring","monitoring",{"name":2009,"slug":2010,"type":15},"NLP","nlp",{"name":9,"slug":8,"type":15},"2026-07-17T06:07:52.545387",{"slug":2014,"name":2014,"fn":2015,"description":2016,"org":2017,"tags":2018,"stars":23,"repoUrl":24,"updatedAt":2024},"twilio-conversation-memory","manage conversation memory with Twilio","Store and retrieve conversation context using Twilio Conversation Memory. Covers Memory Store provisioning, profile management, traits, observations, conversation summaries, and semantic Recall. Use this skill to give AI agents or human agents persistent memory of conversations across sessions and channels.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2019,2020,2023],{"name":1816,"slug":1817,"type":15},{"name":2021,"slug":2022,"type":15},"Memory","memory",{"name":9,"slug":8,"type":15},"2026-07-17T06:04:19.526724"]