Body
-
The SID of the Conversations Address. See Address Configuration Resource for configuration details. When a conversation is created on the Flex backend, the callback URL will be set to the corresponding Studio Flow SID or webhook URL in your address configuration.
-
The Conversation's friendly name. See the Conversation resource for an example.
-
The Conversation participant's friendly name. See the Conversation Participant Resource for an example.
-
The pre-engagement data.
POST
/v2/WebChats
curl \
--request POST 'https://flex-api.twilio.com/v2/WebChats' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--header "Ui-Version: string" \
--data 'AddressSid=IGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&ChatFriendlyName=LoquaciousLarry&CustomerFriendlyName=LarryDavid'
Request example
{"AddressSid"=>"IGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "ChatFriendlyName"=>"LoquaciousLarry", "CustomerFriendlyName"=>"LarryDavid"}
Response examples (201)
{
"identity": "seinfeld",
"conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}