Twilio 系列 · 1 / 2 · 功能概覽Twilio Series · 1 / 2 · Feature Overview 完整參考手冊 →Complete Reference →

開發者文檔 & API 參考 Developer Documentation & API Reference

Twilio 平台Twilio 開發者平台完整功能總覽 Twilio PlatformComplete Feature Overview

6,986 docs • 40 repos • 54 OpenAPI specs • 7 SDKs

文檔庫統計 Documentation Archive

本地鏡像統計 Local Mirror Stats

6,986
Markdown Pages
文檔頁面
40
GitHub Repos
GitHub 庫
54
OpenAPI Specs
API 規格文件
7
SDK Languages
程式語言 SDK
702MB
Total Size
總計磁碟空間
2,573
Error Codes
錯誤碼參考
01

通訊 API Communications APIs

Voice, Messaging, Video, Email

可程式化語音 Programmable Voice

Voice API

  • TwiMLXML-based call control (Say, Play, Gather, Record, Dial)XML 呼叫控制指令(Say、Play、Gather、Record、Dial)
  • SIP TrunkingElastic SIP with 27+ config pages彈性 SIP 中繼,27+ 設定頁
  • WebRTC / JS SDKBrowser-based calling瀏覽器語音通話
  • Call RecordingDual-channel, transcription雙聲道錄音與轉錄
  • IVR / StudioVisual flow builder for voice menus視覺化語音選單建構器
  • ConversationRelayReal-time STT/TTS via WebSocket即時語音轉文字/文字轉語音
270 PAGES

訊息服務 Messaging

短訊、多媒體訊息與 WhatsApp SMS, MMS & WhatsApp

  • Programmable SMSSend/receive globally全球收發短訊
  • WhatsApp BusinessTemplates & media範本與多媒體
  • Content APIRich templates (cards, carousels, quick replies)豐富訊息範本(卡片、輪播、快速回覆)
  • A2P 10DLCUS compliance registration美國合規註冊
  • Sender PoolsMulti-number sending多號碼發送池

對話 API Conversations

全渠道聊天 Omnichannel Chat

  • Conversations APIUnified multi-party messaging統一多方訊息
  • ProxyMasked number communication號碼遮蔽通訊
  • WebchatEmbeddable React widget可嵌入式 React 組件
  • Chat SDKv1, v2, v3 REST APIs三代 REST API

視頻與電子郵件 Video & Email

可程式化視頻與 SendGrid Programmable Video & SendGrid

  • Video JS SDKWebRTC rooms, recording, compositionWebRTC 房間、錄影與合成
  • Video iOS/AndroidNative mobile quickstarts原生行動端快速開始
  • SendGrid864 pages: email delivery, templates, analytics864 頁:郵件投遞、範本、分析
  • Segment1,226 pages: CDP, connections, sources, destinations1,226 頁:客戶數據平台
86+ VIDEO PAGES
02

AI 與智慧功能 AI & Intelligence

ConversationRelay, AI Assistants, Copilot

AI 平台 AI Platform

對話中繼與 AI 助理 ConversationRelay & AI Assistants

  • ConversationRelayReal-time STT/TTS via WebSocket for AI agents即時語音 AI 代理(WebSocket STT/TTS)
  • AI AssistantsLLM-powered assistants with knowledge bases & toolsLLM 驅動助理,含知識庫與工具
  • Conversational IntelligenceAI analysis of calls (24 pages)AI 通話分析(24 頁)
  • Language OperatorsPre-built & custom LLM classification/summarization預設與自訂 LLM 分類/摘要
  • Agent CopilotReal-time assist, wrap-up notes, customer profiles即時輔助、結案摘要、客戶檔案
  • OpenAI IntegrationRealtime API + ConversationRelay samplesOpenAI 即時 API 整合範例
AI NEURAL HUB
03

Flex 聯絡中心 Flex Contact Center

The largest product — 368 documentation pages最大產品 — 368 頁文檔

管理員與終端用戶 Flex Admin & End-User

客服人員與主管工具 Agent & Supervisor Tools

  • Webchat, SMS, WhatsApp, Email, FB Messenger channelsWebchat、SMS、WhatsApp、Email、FB Messenger 多渠道支援
  • Warm/cold transfer, parking interactions暖/冷轉接,暫停互動
  • Flex Insights: dashboards, KPIs, conversation scoringFlex Insights:儀表板、KPI、對話評分
  • Real-time adherence monitoring即時遵守度監控
  • SSO (Okta, Azure AD, Google, Auth0, Salesforce)SSO 單一登入整合

開發者工具 Flex Developer

外掛與 SDK 系統 Plugin & SDK System

  • React-based plugin architecture (v1 & v2)React 外掛架構(v1 和 v2)
  • Flex SDK (public beta) with REST APIsFlex SDK(公開測試版)REST API
  • TaskRouter: skills-based routingTaskRouter:技能導向路由
  • Integrations: Salesforce, Zendesk, Calabrio, Veridas整合:Salesforce、Zendesk、Calabrio、Veridas
  • Flex Mobile (iOS/Android, public beta)Flex 行動端 iOS/Android(公開測試版)
04

平台與基礎設施 Platform & Infrastructure

SDKs, Serverless, Studio, Global Infrastructure

Twilio 平台架構 Twilio Platform Architecture

graph TB
  Client["Client Apps"] --> API["REST APIs"]
  Client --> SDK["SDKs
7 Languages"] Client --> WH["Webhooks"] API --> Voice["Voice"] API --> MSG["Messaging"] API --> VID["Video"] API --> CONV["Conversations"] Voice --> CR["ConversationRelay"] Voice --> SIP["SIP Trunking"] Voice --> TwiML["TwiML"] MSG --> SMS["SMS/MMS"] MSG --> WA["WhatsApp"] MSG --> SG["SendGrid"] CR --> AI["AI Assistants"] AI --> CI["Conv. Intelligence"] API --> FLEX["Flex"] FLEX --> TR["TaskRouter"] FLEX --> INS["Insights"] API --> INFRA["Infrastructure"] INFRA --> FN["Functions"] INFRA --> STU["Studio"] INFRA --> SEG["Segment CDP"] classDef primary fill:#a8552e22,stroke:#a8552e,stroke-width:2px classDef comm fill:#4a7c6f22,stroke:#4a7c6f,stroke-width:2px classDef ai fill:#9c7b3022,stroke:#9c7b30,stroke-width:2px classDef platform fill:#3a5a4022,stroke:#3a5a40,stroke-width:2px classDef flex fill:#5a6e8a22,stroke:#5a6e8a,stroke-width:2px class Client,API,SDK,WH primary class Voice,MSG,VID,CONV,CR,SIP,TwiML,SMS,WA,SG comm class AI,CI ai class FLEX,TR,INS flex class INFRA,FN,STU,SEG platform

SDK 覆蓋範圍 SDK Coverage

官方 SDK 與輔助庫 Official SDKs & Helper Libraries

語言Language Repo Stars 功能Features
Pythontwilio-python2,049REST API, TwiML generation, async supportREST API、TwiML 生成、異步支援
Node.jstwilio-node1,521REST API, TwiML, webhook validationREST API、TwiML、Webhook 驗證
PHPtwilio-php1,632REST API, TwiML, Composer packageREST API、TwiML、Composer 套件
Rubytwilio-ruby1,377REST API, TwiML, Rack middlewareREST API、TwiML、Rack 中介軟體
C#/.NETtwilio-csharp710REST API, TwiML, ASP.NET helpersREST API、TwiML、ASP.NET 輔助工具
Javatwilio-java522REST API, TwiML, Maven artifactREST API、TwiML、Maven 套件
Gotwilio-go366REST API, auto-generated from OpenAPIREST API、由 OpenAPI 自動生成

開發者工具 Developer Tools

無伺服器與視覺化工作流 Serverless & Studio

  • Twilio FunctionsServerless Node.js execution (64 pages)無伺服器 Node.js 執行(64 頁)
  • StudioVisual drag-and-drop flow builder (65 pages)視覺化拖放工作流建構器(65 頁)
  • Twilio CLICommand-line interface (23 pages)命令列介面(23 頁)
  • Event StreamsUnified event pipeline (70 pages)統一事件串流(70 頁)
  • TaskRouterAttribute-based task routing (168 pages)基於屬性的任務路由(168 頁)
  • SyncReal-time state synchronization (39 pages)即時狀態同步(39 頁)
FN STUDIO CLI

安全與身份驗證 Security & Identity

驗證與 Authy Verify & Authy

  • Verify APIPhone verification via SMS, Voice, Email, WhatsApp (95 pages)多渠道電話驗證:SMS、語音、Email、WhatsApp(95 頁)
  • Authy2FA and passwordless login (73 pages)雙因素驗證與無密碼登入(73 頁)
  • Lookup APIPhone number intelligence (24 pages)電話號碼情報查詢(24 頁)
  • Webhook SecurityRequest validation & signature verificationWebhook 請求驗證與簽名
  • Fraud PreventionGeographic permissions, safe list, anti-fraud guides地理權限、安全名單、防欺詐指南
VERIFIED
05

程式碼範例與樣本 Code Examples & Samples

40 GitHub repos, 11,636+ sample files

範例庫 Sample Repositories

重要 GitHub 庫 Key GitHub Repos

Repo 說明Description Stars Size
sample-codeOfficial code samples for all products所有產品官方程式碼49MB
api-snippetsAPI code snippets in multiple languages多語言 API 程式碼片段37MB
function-templatesTwilio Functions templates for all use cases無伺服器函式範本40131MB
call-gptGenAI phone call toolkit with Media StreamsGenAI 電話工具組485580K
speech-assistant-*OpenAI Realtime + ConversationRelay (Node/Python)語音 AI 助理696352K
mcpTwilio MCP server — all APIs as MCP toolsMCP 伺服器,所有 API 作為 MCP 工具961.1MB
pasteTwilio design system (React components)Twilio 設計系統(React 組件)473235MB
twilio-oaiOpenAPI specs for all 54 Twilio APIs54 個 OpenAPI 規格文件15920MB

全球基礎設施 Global Infrastructure

多區域與邊緣部署 Multi-Region & Edge

  • Regional APIsUS, EU (Ireland), AU regions美國、歐盟(愛爾蘭)、澳洲區域
  • Edge LocationsLow-latency media processing worldwide全球低延遲媒體處理
  • SIP Domain LocalizationRegional SIP URIs區域化 SIP 網域
  • Firewall ConfigIP ranges, ports, media streamsIP 範圍、連接埠設定
  • Region MigrationBest practices for moving workloads工作負載遷移最佳實踐
US EU AU 35 PAGES
We didn't set out to build a phone company. We set out to fuel the future of communications. 我們不是要建立一家電話公司。我們要推動通訊的未來。
— Jeff Lawson, Twilio Founder

總結 Summary

完整 Twilio 開發者文檔庫 Complete Twilio Developer Archive

  • 6,986 documentation pages across all products覆蓋所有產品的文檔頁面
  • 40 GitHub repos with SDKs, samples & tools包含 SDK、範例與工具的 GitHub 庫
  • 54 OpenAPI specs for every Twilio API每個 API 的 OpenAPI 規格
  • 7 language SDKs (Python, Node, PHP, Ruby, C#, Java, Go)七種語言 SDK(Python、Node、PHP、Ruby、C#、Java、Go)

~/Developer/dev-docs/twilio-docs/ • ~/Developer/dev-docs/twilio-*/