単一APIが多人数、複数チャネルの
通話を可能にします

SMS、MMS、WhatsApp、チャットでの通話をネイティブサポート。共通のAPIを使用し、参加者やメッセージアーカイブの管理、連携システムの追加、Webhook通信の分析を行えます。
機能性
対話型メッセージング
の実装を簡易化
- Node.js
- C#
- PHP
- Ruby
- Python
- Java
- curl
- twilio-cli
// Download the helper library from https://www.twilio.com/docs/node/install// Your Account Sid and Auth Token from twilio.com/console// and set the environment variables. See http://twil.io/secureconstaccountSid=process.env.TWILIO_ACCOUNT_SID;constauthToken=process.env.TWILIO_AUTH_TOKEN;constclient=require('twilio')(accountSid,authToken);client.conversations.conversations.create().then(conversation=>console.log(conversation.sid));
// Install the C# / .NET helper library from twilio.com/docs/csharp/installusingSystem;usingTwilio;usingTwilio.Rest.Conversations.V1;classProgram{staticvoidMain(string[]args){// Find your Account Sid and Token at twilio.com/console// and set the environment variables. See http://twil.io/securestringaccountSid=Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");stringauthToken=Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");TwilioClient.Init(accountSid,authToken);varconversation=ConversationResource.Create();Console.WriteLine(conversation.Sid);}}
<?php// Update the path below to your autoload.php,// see https://getcomposer.org/doc/01-basic-usage.mdrequire_once'/path/to/vendor/autoload.php';useTwilio\Rest\Client;// Find your Account Sid and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secure$sid=getenv("TWILIO_ACCOUNT_SID");$token=getenv("TWILIO_AUTH_TOKEN");$twilio=newClient($sid,$token);$conversation=$twilio->conversations->v1->conversations->create();print($conversation->sid);
# Download the helper library from https://www.twilio.com/docs/ruby/installrequire'rubygems'require'twilio-ruby'# Your Account Sid and Auth Token from twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=ENV['TWILIO_ACCOUNT_SID']auth_token=ENV['TWILIO_AUTH_TOKEN']@client=Twilio::REST::Client.new(account_sid,auth_token)conversation=@client.conversations.conversations.createputsconversation.sid
# Download the helper library from https://www.twilio.com/docs/python/installimportosfromtwilio.restimportClient# Your Account Sid and Auth Token from twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=os.environ['TWILIO_ACCOUNT_SID']auth_token=os.environ['TWILIO_AUTH_TOKEN']client=Client(account_sid,auth_token)conversation=client.conversations.conversations.create()print(conversation.sid)
// Install the Java helper library from twilio.com/docs/java/installimportcom.twilio.Twilio;importcom.twilio.rest.conversations.v1.Conversation;publicclassExample{// Find your Account Sid and Token at twilio.com/console// and set the environment variables. See http://twil.io/securepublicstaticfinalStringACCOUNT_SID=System.getenv("TWILIO_ACCOUNT_SID");publicstaticfinalStringAUTH_TOKEN=System.getenv("TWILIO_AUTH_TOKEN");publicstaticvoidmain(String[]args){Twilio.init(ACCOUNT_SID,AUTH_TOKEN);Conversationconversation=Conversation.creator().create();System.out.println(conversation.getSid());}}
curl -X POST https://conversations.twilio.com/v1/Conversations \-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
#Installthetwilio-clifromhttps://twil.io/clitwilioapi:conversations:v1:conversations:create
複数チャネルでのマルチメディア通話をサポート
- マルチチャネルメッセージング: コードの追加なしに、SMS、MMS、チャット、WhatsAppのメッセージをオーケストレーション可能
- メディアサポート: 写真、ビデオなどのファイル種別を、複数チャネル上でシームレスに表示
- インテリジェントに文字連結: 長いメッセージを自動的に分割後、キャリア用のヘッダーを付与し文字を再連結
- スマートエンコーディング: SMSメッセージをエンコーディングし、最小サイズで送信(GSM-7以外の文字はUCS-2に変換)
- Node.js
- C#
- PHP
- Ruby
- Python
- Java
- curl
- twilio-cli
// Download the helper library from https://www.twilio.com/docs/node/install// Your Account Sid and Auth Token from twilio.com/console// and set the environment variables. See http://twil.io/secureconstaccountSid=process.env.TWILIO_ACCOUNT_SID;constauthToken=process.env.TWILIO_AUTH_TOKEN;constclient=require('twilio')(accountSid,authToken);client.conversations.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').participants.create().then(participant=>console.log(participant.sid));
// Install the C# / .NET helper library from twilio.com/docs/csharp/installusingSystem;usingTwilio;usingTwilio.Rest.Conversations.V1.Conversation;classProgram{staticvoidMain(string[]args){// Find your Account Sid and Token at twilio.com/console// and set the environment variables. See http://twil.io/securestringaccountSid=Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");stringauthToken=Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");TwilioClient.Init(accountSid,authToken);varparticipant=ParticipantResource.Create(pathConversationSid:"CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");Console.WriteLine(participant.Sid);}}
<?php// Update the path below to your autoload.php,// see https://getcomposer.org/doc/01-basic-usage.mdrequire_once'/path/to/vendor/autoload.php';useTwilio\Rest\Client;// Find your Account Sid and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secure$sid=getenv("TWILIO_ACCOUNT_SID");$token=getenv("TWILIO_AUTH_TOKEN");$twilio=newClient($sid,$token);$participant=$twilio->conversations->v1->conversations("CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")->participants->create();print($participant->sid);
# Download the helper library from https://www.twilio.com/docs/ruby/installrequire'rubygems'require'twilio-ruby'# Your Account Sid and Auth Token from twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=ENV['TWILIO_ACCOUNT_SID']auth_token=ENV['TWILIO_AUTH_TOKEN']@client=Twilio::REST::Client.new(account_sid,auth_token)participant=@client.conversations.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').participants.createputsparticipant.sid
# Download the helper library from https://www.twilio.com/docs/python/installimportosfromtwilio.restimportClient# Your Account Sid and Auth Token from twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=os.environ['TWILIO_ACCOUNT_SID']auth_token=os.environ['TWILIO_AUTH_TOKEN']client=Client(account_sid,auth_token)participant=client.conversations \
.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.participants \
.create()print(participant.sid)
// Install the Java helper library from twilio.com/docs/java/installimportcom.twilio.Twilio;importcom.twilio.rest.conversations.v1.conversation.Participant;publicclassExample{// Find your Account Sid and Token at twilio.com/console// and set the environment variables. See http://twil.io/securepublicstaticfinalStringACCOUNT_SID=System.getenv("TWILIO_ACCOUNT_SID");publicstaticfinalStringAUTH_TOKEN=System.getenv("TWILIO_AUTH_TOKEN");publicstaticvoidmain(String[]args){Twilio.init(ACCOUNT_SID,AUTH_TOKEN);Participantparticipant=Participant.creator("CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").create();System.out.println(participant.getSid());}}
curl -X POST https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants \-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
#Installthetwilio-clifromhttps://twil.io/clitwilioapi:conversations:v1:conversations:participants:create\--conversation-sid CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
参加者・権限の管理による最適化が可能
- 通話規模の拡張: 何千人ものお客様と1対1の通話をすることも、最大1,000名と同時に通話することも可能
- 参加者の管理: APIを使用し、参加者の追加や管理、役割の割り当てを実施
- 高度なオプトアウト機能: 各国の法規制や言語にあわせ、オプトインやオプトアウトをコンソールでカスタマイズ
- Node.js
- C#
- PHP
- Ruby
- Python
- Java
- curl
- twilio-cli
// Download the helper library from https://www.twilio.com/docs/node/install// Your Account Sid and Auth Token from twilio.com/console// and set the environment variables. See http://twil.io/secureconstaccountSid=process.env.TWILIO_ACCOUNT_SID;constauthToken=process.env.TWILIO_AUTH_TOKEN;constclient=require('twilio')(accountSid,authToken);client.conversations.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update({friendlyName:'friendly_name'}).then(conversation=>console.log(conversation.friendlyName));
// Install the C# / .NET helper library from twilio.com/docs/csharp/installusingSystem;usingTwilio;usingTwilio.Rest.Conversations.V1;classProgram{staticvoidMain(string[]args){// Find your Account Sid and Token at twilio.com/console// and set the environment variables. See http://twil.io/securestringaccountSid=Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");stringauthToken=Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");TwilioClient.Init(accountSid,authToken);varconversation=ConversationResource.Update(friendlyName:"friendly_name",pathSid:"CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");Console.WriteLine(conversation.FriendlyName);}}
<?php// Update the path below to your autoload.php,// see https://getcomposer.org/doc/01-basic-usage.mdrequire_once'/path/to/vendor/autoload.php';useTwilio\Rest\Client;// Find your Account Sid and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secure$sid=getenv("TWILIO_ACCOUNT_SID");$token=getenv("TWILIO_AUTH_TOKEN");$twilio=newClient($sid,$token);$conversation=$twilio->conversations->v1->conversations("CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")->update(["friendlyName"=>"friendly_name"]);print($conversation->friendlyName);
# Download the helper library from https://www.twilio.com/docs/ruby/installrequire'rubygems'require'twilio-ruby'# Your Account Sid and Auth Token from twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=ENV['TWILIO_ACCOUNT_SID']auth_token=ENV['TWILIO_AUTH_TOKEN']@client=Twilio::REST::Client.new(account_sid,auth_token)conversation=@client.conversations.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update(friendly_name:'friendly_name')putsconversation.friendly_name
# Download the helper library from https://www.twilio.com/docs/python/installimportosfromtwilio.restimportClient# Your Account Sid and Auth Token from twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=os.environ['TWILIO_ACCOUNT_SID']auth_token=os.environ['TWILIO_AUTH_TOKEN']client=Client(account_sid,auth_token)conversation=client.conversations \
.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.update(friendly_name='friendly_name')print(conversation.friendly_name)
// Install the Java helper library from twilio.com/docs/java/installimportcom.twilio.Twilio;importcom.twilio.rest.conversations.v1.Conversation;publicclassExample{// Find your Account Sid and Token at twilio.com/console// and set the environment variables. See http://twil.io/securepublicstaticfinalStringACCOUNT_SID=System.getenv("TWILIO_ACCOUNT_SID");publicstaticfinalStringAUTH_TOKEN=System.getenv("TWILIO_AUTH_TOKEN");publicstaticvoidmain(String[]args){Twilio.init(ACCOUNT_SID,AUTH_TOKEN);Conversationconversation=Conversation.updater("CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").setFriendlyName("friendly_name").update();System.out.println(conversation.getFriendlyName());}}
curl -X POST https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \--data-urlencode "FriendlyName=friendly_name"\-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
#Installthetwilio-clifromhttps://twil.io/clitwilioapi:conversations:v1:conversations:update\--sid CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \--friendly-name friendly_name
- curl
curl -X GET 'https://conversations.twilio.com/v1/Conversations/Webhooks'\-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
短時間で通話機能をカスタマイズ・サービス開始
- チャットクライアントSDK: SDKを組み込み、モバイル・Webに対応
- Webhook: 通話サービス全体に、不適切な言葉のフィルタリング機能や分析ツールなどを実装可能
- Scoped Webhook: インテリジェントアシスタントやTwilio Studioのフローを、特定の通話に追加可能
コードサンプル
一般的なユースケースの
コードサンプル
Chat support
(in-app and web)
Build scalable chat-based customer support for web, iOS, and Android.
WhatsApp Business
API conversations
Engage customers for sales and support over the most popular messaging app in the world.
Anonymous SMS conversations
Protect phone numbers while making it easy for customers and employees to talk to each other.
初めての方へ
使い慣れた開発言語を
お選びいただけます
料金
ご利用分に応じたお支払い
料金はユーザー単位の従量制。ご利用分に応じてお支払いいただけます。Conversations APIはあらゆるユースケースに対応しているため、使用量やメッセージボリュームを心配する必要がありません。
"Twilioは多彩なサービスとAPIを提供している点で、他社より優れていました。当社のさまざまなニーズに最適なサービス、手厚いサポートを提供してくれただけでなく、潜在的なニーズも積極的に理解・提案してもらえました」
Why Twilio
Build on Twilio. Code with Confidence.
Best-in-class channel APIs to keep the conversation going across all channels
Global reach and unrivaled scale that supports over
8 million developers
Powerful serverless tools and fully-programmable solutions that deploy in minutes
Enterprise-grade security and reliability, powering over 190,000 respected brands