[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CJ28R19DNDM8XNPDYRTVS2":3,"skill-same:01M7CJ28R19DNDM8XNPDYRTVS2":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7CJ28R19DNDM8XNPDYRTVS2","twilio-security-api-auth",null,"Choose the right Twilio authentication method and implement it correctly. Covers Auth Token (testing only), API Keys (production standard), OAuth2 client_credentials (time-limited bearer tokens), Access Tokens (client-side SDKs), and test credentials. Use this skill before making any Twilio API calls in production.","rossboyd\u002Fquickque","rossboyd","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3195729?v=4","01M7CG99NTNRFV0TWTZX9JY9CQ","rbyd","01M7CG99PH4WEP5P45VTBNPDB0",0,"MIT","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002F.tmp\u002Fplugins\u002Fplugins\u002Ftwilio-developer-kit\u002Fskills\u002Ftwilio-security-api-auth\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: twilio-security-api-auth\ndescription: >\n  Choose the right Twilio authentication method and implement it correctly.\n  Covers Auth Token (testing only), API Keys (production standard), OAuth2\n  client_credentials (time-limited bearer tokens), Access Tokens (client-side\n  SDKs), and test credentials. Use this skill before making any Twilio API\n  calls in production.\n---\n\n## Overview\n\nTwilio supports four authentication methods. Choosing the wrong one is a security risk — Auth Tokens in production code are the most common credential leak.\n\n| Method | Use for | Token lifetime | Revocable individually |\n|--------|---------|---------------|----------------------|\n| **Auth Token** | Local testing only | Permanent (until rotated) | No — rotation breaks ALL API keys |\n| **API Key + Secret** | Production server-side | Permanent (until deleted) | Yes |\n| **OAuth2 Bearer Token** | Production server-side (enhanced) | 1 hour | Expires automatically |\n| **Access Token (JWT)** | Client-side SDKs (Voice, Video, Chat) | Up to 24 hours | No — delete issuing API key |\n\n**Decision framework:**\n- **Building a quick prototype?** → Auth Token (but switch to API Key before deploying)\n- **Production server-side code?** → API Key + Secret (simplest production auth) or OAuth2 (time-limited tokens)\n- **Browser\u002Fmobile client needs to connect?** → Access Token (JWT) generated server-side\n- **Running tests without charges?** → Test credentials with magic numbers\n\n---\n\n## API Key Authentication (Production Standard)\n\n**Create:** Console → Account → API keys & tokens → Create API key\n\n| Key type | Access | Create via |\n|----------|--------|-----------|\n| **Main** | Full account access | Console only |\n| **Standard** | All resources except \u002FAccounts and \u002FKeys endpoints | Console or API |\n| **Restricted** | Specific resources only (up to 100 permissions) | Console or v1 IAM API only |\n\n**Python**\n```python\nimport os\nfrom twilio.rest import Client\n\nclient = Client(\n    os.environ[\"TWILIO_API_KEY\"],      # SKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\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---\n\n## OAuth2 Authentication (Client Credentials)\n\nTime-limited bearer tokens that expire after 1 hour. More secure than permanent API keys for server-to-server communication.\n\n### Step 1 — Create an OAuth App\n\nCreate an OAuth App in the Twilio Console to get a Client ID and Client Secret.\n\n### Step 2 — Request a Bearer Token\n\n**cURL**\n```bash\ncurl -X POST 'https:\u002F\u002Foauth.twilio.com\u002Fv2\u002Ftoken' \\\n  -H 'Content-Type: application\u002Fx-www-form-urlencoded' \\\n  -d 'client_id={ClientID}' \\\n  -d 'client_secret={ClientSecret}' \\\n  -d 'grant_type=client_credentials'\n```\n\n**Response:**\n```json\n{\n    \"access_token\": \"{BearerToken}\",\n    \"token_type\": \"Bearer\",\n    \"expires_in\": 3600\n}\n```\n\n### Step 3 — Use the Bearer Token\n\n```bash\ncurl 'https:\u002F\u002Fapi.twilio.com\u002F2010-04-01\u002FAccounts\u002F{AccountSID}\u002FMessages.json' \\\n  -H 'Authorization: Bearer {BearerToken}'\n```\n\n### SDK Support\n\nOAuth2 is supported in all Twilio SDKs:\n\n| Language | Minimum version |\n|----------|----------------|\n| Java | 10.6.0 |\n| C#\u002F.NET | 7.6.0 |\n| Node.js | 5.4.0 |\n| Python | 9.4.1 |\n| Ruby | 7.4.0 |\n| PHP | 8.5.0 |\n| Go | 1.25.1 |\n\n**Docs:** [OAuth access tokens](https:\u002F\u002Fwww.twilio.com\u002Fdocs\u002Fiam\u002Foauth-apps\u002Foauth-access-token) | [Segment OAuth connections](https:\u002F\u002Fwww.twilio.com\u002Fdocs\u002Fsegment\u002Fconnections\u002Foauth)\n\n---\n\n## Access Tokens (Client-Side SDKs)\n\nShort-lived JWTs for authenticating browser\u002Fmobile clients. Generate server-side, 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\nGrant types: `VoiceGrant`, `VideoGrant`, `ChatGrant` (Conversations), `SyncGrant`\n\n---\n\n## Test Credentials\n\nMake API calls without charges. Find at Console → Account → API keys & tokens → Test credentials.\n\nMagic numbers: `+15005550006` (valid), `+15005550001` (invalid, error 21211), `+15005550007` (no SMS, error 21612)\n\n---\n\n## CANNOT\n\n- **Standard keys cannot access \u002FAccounts or \u002FKeys endpoints** — Returns 20003 (401). Use Auth Token or Main key.\n- **Cannot create restricted keys via v2010 API** — Silently creates a standard key instead. Use v1 IAM API.\n- **Restricted keys cannot generate Access Tokens** — Only Standard and Main keys can.\n- **Cannot revoke individual Access Tokens** — Valid until expiration (max 24h). Delete the issuing API key to revoke all.\n- **OAuth2 only supports `client_credentials` grant** — No refresh tokens, no authorization code flow.\n- **OAuth2 tokens expire after 1 hour** — Your application must handle token refresh.\n- **API Key Secret shown only at creation** — Cannot be retrieved afterward.\n- **Auth Token rotation breaks ALL API keys** — One-way door. This is why you should use API keys from day one.\n- **Test credentials work with only 4 endpoints** — Messages, Calls, IncomingPhoneNumbers, Lookups. All others return 403.\n\n---\n\n## Next Steps\n\n- **Account setup and sub-accounts:** `twilio-account-setup`\n- **HIPAA account configuration:** `twilio-security-compliance-hipaa`\n- **Webhook signature validation:** `twilio-webhook-architecture`\n- **Credential security patterns:** `twilio-security-hardening`\n","## Overview\n\nTwilio supports four authentication methods. Choosing the wrong one is a security risk — Auth Tokens in production code are the most common credential leak.\n\n| Method | Use for | Token lifetime | Revocable individually |\n|--------|---------|---------------|----------------------|\n| **Auth Token** | Local testing only | Permanent (until rotated) | No — rotation breaks ALL API keys |\n| **API Key + Secret** | Production server-side | Permanent (until deleted) | Yes |\n| **OAuth2 Bearer Token** | Production server-side (enhanced) | 1 hour | Expires automatically |\n| **Access Token (JWT)** | Client-side SDKs (Voice, Video, Chat) | Up to 24 hours | No — delete issuing API key |\n\n**Decision framework:**\n- **Building a quick prototype?** → Auth Token (but switch to API Key before deploying)\n- **Production server-side code?** → API Key + Secret (simplest production auth) or OAuth2 (time-limited tokens)\n- **Browser\u002Fmobile client needs to connect?** → Access Token (JWT) generated server-side\n- **Running tests without charges?** → Test credentials with magic numbers\n\n---\n\n## API Key Authentication (Production Standard)\n\n**Create:** Console → Account → API keys & tokens → Create API key\n\n| Key type | Access | Create via |\n|----------|--------|-----------|\n| **Main** | Full account access | Console only |\n| **Standard** | All resources except \u002FAccounts and \u002FKeys endpoints | Console or API |\n| **Restricted** | Specific resources only (up to 100 permissions) | Console or v1 IAM API only |\n\n**Python**\n```python\nimport os\nfrom twilio.rest import Client\n\nclient = Client(\n    os.environ[\"TWILIO_API_KEY\"],      # SKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\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---\n\n## OAuth2 Authentication (Client Credentials)\n\nTime-limited bearer tokens that expire after 1 hour. More secure than permanent API keys for server-to-server communication.\n\n### Step 1 — Create an OAuth App\n\nCreate an OAuth App in the Twilio Console to get a Client ID and Client Secret.\n\n### Step 2 — Request a Bearer Token\n\n**cURL**\n```bash\ncurl -X POST 'https:\u002F\u002Foauth.twilio.com\u002Fv2\u002Ftoken' \\\n  -H 'Content-Type: application\u002Fx-www-form-urlencoded' \\\n  -d 'client_id={ClientID}' \\\n  -d 'client_secret={ClientSecret}' \\\n  -d 'grant_type=client_credentials'\n```\n\n**Response:**\n```json\n{\n    \"access_token\": \"{BearerToken}\",\n    \"token_type\": \"Bearer\",\n    \"expires_in\": 3600\n}\n```\n\n### Step 3 — Use the Bearer Token\n\n```bash\ncurl 'https:\u002F\u002Fapi.twilio.com\u002F2010-04-01\u002FAccounts\u002F{AccountSID}\u002FMessages.json' \\\n  -H 'Authorization: Bearer {BearerToken}'\n```\n\n### SDK Support\n\nOAuth2 is supported in all Twilio SDKs:\n\n| Language | Minimum version |\n|----------|----------------|\n| Java | 10.6.0 |\n| C#\u002F.NET | 7.6.0 |\n| Node.js | 5.4.0 |\n| Python | 9.4.1 |\n| Ruby | 7.4.0 |\n| PHP | 8.5.0 |\n| Go | 1.25.1 |\n\n**Docs:** [OAuth access tokens](https:\u002F\u002Fwww.twilio.com\u002Fdocs\u002Fiam\u002Foauth-apps\u002Foauth-access-token) | [Segment OAuth connections](https:\u002F\u002Fwww.twilio.com\u002Fdocs\u002Fsegment\u002Fconnections\u002Foauth)\n\n---\n\n## Access Tokens (Client-Side SDKs)\n\nShort-lived JWTs for authenticating browser\u002Fmobile clients. Generate server-side, 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\nGrant types: `VoiceGrant`, `VideoGrant`, `ChatGrant` (Conversations), `SyncGrant`\n\n---\n\n## Test Credentials\n\nMake API calls without charges. Find at Console → Account → API keys & tokens → Test credentials.\n\nMagic numbers: `+15005550006` (valid), `+15005550001` (invalid, error 21211), `+15005550007` (no SMS, error 21612)\n\n---\n\n## CANNOT\n\n- **Standard keys cannot access \u002FAccounts or \u002FKeys endpoints** — Returns 20003 (401). Use Auth Token or Main key.\n- **Cannot create restricted keys via v2010 API** — Silently creates a standard key instead. Use v1 IAM API.\n- **Restricted keys cannot generate Access Tokens** — Only Standard and Main keys can.\n- **Cannot revoke individual Access Tokens** — Valid until expiration (max 24h). Delete the issuing API key to revoke all.\n- **OAuth2 only supports `client_credentials` grant** — No refresh tokens, no authorization code flow.\n- **OAuth2 tokens expire after 1 hour** — Your application must handle token refresh.\n- **API Key Secret shown only at creation** — Cannot be retrieved afterward.\n- **Auth Token rotation breaks ALL API keys** — One-way door. This is why you should use API keys from day one.\n- **Test credentials work with only 4 endpoints** — Messages, Calls, IncomingPhoneNumbers, Lookups. All others return 403.\n\n---\n\n## Next Steps\n\n- **Account setup and sub-accounts:** `twilio-account-setup`\n- **HIPAA account configuration:** `twilio-security-compliance-hipaa`\n- **Webhook signature validation:** `twilio-webhook-architecture`\n- **Credential security patterns:** `twilio-security-hardening`\n",{"name":5,"description":7},"main","907b1d897cc6743f7f133f8ea2021e1331b0b020",".codex\u002F.tmp\u002Fplugins\u002Fplugins\u002Ftwilio-developer-kit\u002Fskills\u002Ftwilio-security-api-auth","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque","https:\u002F\u002Fgithub.com\u002Frossboyd","www.bigideasgroup.co.uk","2026-09-22 02:03:50",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add rossboyd\u002Fquickque --skill twilio-security-api-auth",{"tool":37,"command":38},"bunx","bunx skills add rossboyd\u002Fquickque --skill twilio-security-api-auth",{"tool":40,"command":41},"pnpm","pnpm dlx skills add rossboyd\u002Fquickque --skill twilio-security-api-auth","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002F.tmp\u002Fplugins\u002Fplugins\u002Ftwilio-developer-kit\u002Fskills\u002Ftwilio-security-api-auth\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",229,"https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002F.tmp\u002Fplugins\u002Fplugins\u002Ftwilio-developer-kit\u002Fskills\u002Ftwilio-security-api-auth\u002Fagents\u002Fopenai.yaml",[52,61,69,76,83,91],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":57,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7CJSS21K09H3ZQZMPFR4ZAG","skill-installer","Install Codex skills into $CODEX_HOME\u002Fskills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).","Apache-2.0","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fskill-installer\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fskill-installer\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":65,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CJSM1F4E7RBXCS3C18EFBY","skill-creator","Create or update a Codex skill with appropriately scoped instructions and any needed supporting resources.","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fskill-creator\u002Flicense.txt","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CJSGF2PJM504Q6TZCNT27C","review-agent","Perform a read-only, defect-first review of a specified code change and return every actionable finding. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions.","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Freview-agent\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CJSBQTPFEQYZF4VWS7QZ3N","plugin-creator","Create and scaffold plugin directories for Codex with a required `.codex-plugin\u002Fplugin.json`, optional plugin folders\u002Ffiles, valid manifest defaults, and personal-marketplace entries by default. Use when Codex needs to create a new personal plugin, add optional plugin structure, generate or update marketplace entries for plugin ordering and availability metadata, or update an existing local plugin during development with the CLI-driven cachebuster and reinstall flow.","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fplugin-creator\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7CJS5BHJZKA16353PVZGC50","openai-docs","Use for Codex models\u002Fpricing, scheduled tasks, skills, settings, setup, troubleshooting, customization, automations, and self-knowledge—including 'you,' 'your,' 'this app,' or 'this coding agent' when they refer to Codex—and for OpenAI APIs\u002Fproducts and ChatGPT Work. Also use for model choice\u002Fmigration, prompting, SDKs, Responses, Realtime, agents, evals, and Chat\u002FWork\u002FCodex comparisons. Do not use for generic app\u002Fsoftware tasks that merely mention Codex.","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fopenai-docs\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fopenai-docs\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7CJRY1FC048P3RF4YQZ6J8B","imagegen","Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG\u002Fvector\u002Fcode-native assets, extending an established icon or logo system, or building the visual directly in HTML\u002FCSS\u002Fcanvas.","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fimagegen\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fimagegen\u002FSKILL.md",[],[]]