Conversations API
Skalieren Sie Ihre Gespräche mit einer einheitlichen API für SMS-, Chat- und Messaging-Apps für Gruppen.
Eine einzige API für skalierbare,
kanalübergreifende Gespräche mit mehreren Teilnehmenden

Unterstützen Sie Gespräche nativ über SMS, MMS, Chatfunktionen und Messaging-Apps. Integrieren Sie eine vereinheitlichte API zur Verwaltung von Teilnehmern und Nachrichtenarchiven. Fügen Sie Integrationen hinzu und analysieren Sie Interaktionen mit WebHooks.
Funktionen
Implementieren Sie ganz einfach
Conversational Messaging
- Node.js
- Python
- C#
- Java
- Go
- PHP
- Ruby
- twilio-cli
- curl
//Downloadthehelperlibraryfromhttps://www.twilio.com/docs/node/install//FindyourAccountSIDandAuthTokenattwilio.com/console//andsettheenvironmentvariables.Seehttp://twil.io/secureconstaccountSid=process.env.TWILIO_ACCOUNT_SID;constauthToken=process.env.TWILIO_AUTH_TOKEN;constclient=require('twilio')(accountSid,authToken);client.conversations.v1.conversations.create().then(conversation=>console.log(conversation.sid));
# Download the helper library from https://www.twilio.com/docs/python/installimportosfromtwilio.restimportClient# Find your Account SID and Auth Token at 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.v1.conversations.create()print(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 Auth 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);}}
// 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 Auth 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());}}
// Download the helper library from https://www.twilio.com/docs/go/installpackagemainimport("fmt""github.com/twilio/twilio-go"conversations"github.com/twilio/twilio-go/rest/conversations/v1")funcmain(){// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secureclient:=twilio.NewRestClient()params:=&conversations.CreateConversationParams{}resp,err:=client.ConversationsV1.CreateConversation(params)iferr!=nil{fmt.Println(err.Error())}else{ifresp.Sid!=nil{fmt.Println(*resp.Sid)}else{fmt.Println(resp.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'# Find your Account SID and Auth Token at 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.v1.conversations.createputsconversation.sid
# Install the twilio-cli from https://twil.io/cli
twilio api:conversations:v1:conversations:create
curl -X POST "https://conversations.twilio.com/v1/Conversations"\-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
Unterstützen Sie Multimedia-Gespräche auf mehreren Kanälen
- Multichannel-Messaging: Orchestrieren Sie Nachrichten als SMS, MMS, Chat und WhatsApp ohne zusätzlichen Code
- Mediensupport: Zeigen Sie nahtlos Fotos, Videos und andere Dateitypen in allen Kanälen an
- Intelligente Verkettung: Segmentieren Sie lange Nachrichten automatisch mit einem Header, den Netzbetreiber für die Wiederzusammensetzung verwenden
- Intelligente Kodierung: Versenden Sie SMS-Nachrichten in der kompaktesten Kodierungsform (Fallback zu UCS-2 für alle Zeichensätze außer GSM-7)
- Node.js
- Python
- C#
- Java
- Go
- PHP
- Ruby
- twilio-cli
- curl
//Downloadthehelperlibraryfromhttps://www.twilio.com/docs/node/install//FindyourAccountSIDandAuthTokenattwilio.com/console//andsettheenvironmentvariables.Seehttp://twil.io/secureconstaccountSid=process.env.TWILIO_ACCOUNT_SID;constauthToken=process.env.TWILIO_AUTH_TOKEN;constclient=require('twilio')(accountSid,authToken);client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').participants.create().then(participant=>console.log(participant.sid));
# Download the helper library from https://www.twilio.com/docs/python/installimportosfromtwilio.restimportClient# Find your Account SID and Auth Token at 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 \
.v1 \
.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.participants \
.create()print(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 Auth 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);}}
// 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 Auth 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());}}
// Download the helper library from https://www.twilio.com/docs/go/installpackagemainimport("fmt""github.com/twilio/twilio-go"conversations"github.com/twilio/twilio-go/rest/conversations/v1")funcmain(){// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secureclient:=twilio.NewRestClient()params:=&conversations.CreateConversationParticipantParams{}resp,err:=client.ConversationsV1.CreateConversationParticipant("CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",params)iferr!=nil{fmt.Println(err.Error())}else{ifresp.Sid!=nil{fmt.Println(*resp.Sid)}else{fmt.Println(resp.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'# Find your Account SID and Auth Token at 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.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').participants.createputsparticipant.sid
# Install the twilio-cli from https://twil.io/cli
twilio api:conversations:v1:conversations:participants:create \
--conversation-sid CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
curl -X POST "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants"\-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
Verwalten Sie Teilnehmer und Berechtigungen zur flexiblen Kontrolle
- Skalieren von Gesprächen: Führen Sie 1-zu-1-Gespräche mit Tausenden von Kunden oder ein Gespräch mit bis zu 1.000 Teilnehmern
- Teilnehmerverwaltung: Fügen Sie Teilnehmer hinzu oder entfernen Sie diese und weisen Sie per API Rollen zu
- Erweiterte Opt-Out-Funktion: Passen Sie in der Konsole Zustimmungen und Widersprüche an örtliche Vorschriften und die jeweilige Landessprache an
- Native Gruppennachrichten: Unterstützen Sie Gruppennachrichten mit MMS-Protokoll, das die Absenderidentität für jede Nachricht anzeigt (USA und Kanada)
- Node.js
- Python
- C#
- Java
- Go
- PHP
- Ruby
- twilio-cli
- curl
//Downloadthehelperlibraryfromhttps://www.twilio.com/docs/node/install//FindyourAccountSIDandAuthTokenattwilio.com/console//andsettheenvironmentvariables.Seehttp://twil.io/secureconstaccountSid=process.env.TWILIO_ACCOUNT_SID;constauthToken=process.env.TWILIO_AUTH_TOKEN;constclient=require('twilio')(accountSid,authToken);client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update({friendlyName:'friendly_name'}).then(conversation=>console.log(conversation.friendlyName));
# Download the helper library from https://www.twilio.com/docs/python/installimportosfromtwilio.restimportClient# Find your Account SID and Auth Token at 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 \
.v1 \
.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.update(friendly_name='friendly_name')print(conversation.friendly_name)
// 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 Auth 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);}}
// 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 Auth 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());}}
// Download the helper library from https://www.twilio.com/docs/go/installpackagemainimport("fmt""github.com/twilio/twilio-go"conversations"github.com/twilio/twilio-go/rest/conversations/v1")funcmain(){// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secureclient:=twilio.NewRestClient()params:=&conversations.UpdateConversationParams{}params.SetFriendlyName("friendly_name")resp,err:=client.ConversationsV1.UpdateConversation("CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",params)iferr!=nil{fmt.Println(err.Error())}else{ifresp.FriendlyName!=nil{fmt.Println(*resp.FriendlyName)}else{fmt.Println(resp.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'# Find your Account SID and Auth Token at 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.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update(friendly_name:'friendly_name')putsconversation.friendly_name
# Install the twilio-cli from https://twil.io/cli
twilio api:conversations:v1:conversations:update \
--sid CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
--friendly-name friendly_name
curl -X POST "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"\--data-urlencode "FriendlyName=friendly_name"\-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
Sorgen Sie für Konformität und verbessern Sie die Kundenerfahrung
- Cloudbasierte Archive: Verwalten Sie ein Thread-Archiv der Teilnehmer und Nachrichtenverläufe
- Status und Timer: Legen Sie fest, ob Gespräche aktiv, inaktiv oder geschlossen sind, und legen Sie fest, wann Gespräche ablaufen
- Zustellstatus: Zeigen Sie Zustellbelege für SMS und WhatsApp-Lesebestätigungen in Nachrichtenprotokollen an
- HIPAA-Berechtigungen: Stellen Sie HIPAA-konforme Patientenversorgung über SMS und Chat bereit
- curl
curl -X GET "https://conversations.twilio.com/v1/Conversations/Webhooks"\-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
Sorgen Sie für eine schnelle Markteinführung mit einer maßgeschneiderten Gesprächserfahrung
- Chatclient-SDKs: Verwenden Sie integrierte SDKs für mobile und Web-Anwendungen
- WebHooks: Implementieren Sie eine Integration, zum Beispiel einen Schimpfwortfilter oder ein Analysetool, für den gesamten Gesprächsservice
- Im Umfang festgelegte WebHooks: Fügen Sie einen intelligenten Assistenten oder einen Twilio Studio Workflow für ein bestimmtes Gespräch hinzu
- Schnelle Bereitstellung von Anwendungen und UI-Kits: Mit den voll ausgestatteten Swift- und Kotlin-Apps für iOS und Android beschleunigen Sie die Markteinführung
Codebeispiele
Beginnen Sie mit Codebeispielen zum Aufbau von
häufigen Anwendungsfällen
Chat-Support
(In-App und Web)
Programmieren Sie Ihren skalierbaren chatbasierten Kundensupport für Web, iOS und Android.
WhatsApp Business
API-Gespräche
Wickeln Sie Verkauf und Support mit Ihren Kunden über die beliebteste Messaging-App der Welt ab.
Anonyme SMS-Konversationen
Schützen Sie Telefonnummern, während Sie es Kunden und Mitarbeitern gleichzeitig leicht machen, miteinander zu sprechen.
Schnelle Bereitstellung von Anwendungen
Starten Sie mit Swift oder Kotlin innerhalb von wenigen Minuten eine produktionsfähige Konversations-App.
Einführung
Erstellen Sie Nachrichten
in Ihrer Sprache
Twilio Conversations – Schnellstart
Erstellen Sie Ihre erste Konversation, fügen Sie Kanäle und Teilnehmer hinzu oder entfernen Sie sie wieder, bis Ihre Proof‑of‑Concept‑Anwendung fertig ist.
Erste Schritte
Conversations und WhatsApp Business API
Twilio Conversations unterstützt WhatsApp von Anfang an. Verwenden Sie diese Anleitung für die Einrichtung häufiger, bidirektionaler Anwendungsfälle.
Dokumentation aufrufen
Chat
Fügen Sie mit Twilio APIs Chatfunktionen zu Ihrer Web- oder mobilen App in einer von Ihnen ausgewählten Sprache hinzu.
Dokumentation aufrufen
Conversations API
Erstellen Sie Zwei‑Wege‑Messaging zwischen Kanälen mit mehreren Teilnehmern. Verwenden Sie dazu die Conversations REST API und Ressourcen, damit Sie loslegen können.
Dokumentation aufrufen
Medienunterstützung in Conversations
Erfahren Sie, wie Sie im chatbasierten Teil eines Gesprächs mithilfe von kundenseitigen SDKs und der REST Media Content Service (MCS) API Medien (Fotos, Videos und andere Dateitypen) versenden und anzeigen.
Dokumentation aufrufen
Preise
Bezahlen Sie nur so viel, wie Sie nutzen
Durch die Abrechnung pro Benutzer zahlen Sie nur das, was Sie auch wirklich nutzen. Sie müssen die Nutzung oder das Nachrichtenvolumen nicht selbst vorhersagen. Conversations skaliert die Daten für jeden Anwendungsfall.

"Twilio setzte sich aufgrund seiner Vielzahl an Services und APIs durch. Sie hatten für all unsere Bedürfnisse einen Service parat und bieten einen großartigen Support. Außerdem setzte sich das Unternehmen von sich aus mit uns in Verbindung, um herauszufinden, was wir eventuell brauchen könnten.
Warum Twilio
Bauen Sie auf Twilio. Programmieren Sie mit Selbstvertrauen.
Branchenführende Channel‑APIs, um die Konversation über alle Kanäle hinweg aufrechtzuerhalten
Globale Reichweite und unübertroffene Skalierung mit Unterstützung für über
8 Millionen Entwickler:innen
Leistungsstarke serverlose Tools und vollständig programmierbare Lösungen, die in wenigen Minuten einsatzbereit sind
Sicherheit und Zuverlässigkeit der Enterprise‑Klasse, genutzt von über 190.000 angesehenen Marken