github.com/twilio/twilio-go@v1.20.1/rest/flex/v2/docs/WebChatsApi.md (about) 1 # WebChatsApi 2 3 All URIs are relative to *https://flex-api.twilio.com* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**CreateWebChannel**](WebChatsApi.md#CreateWebChannel) | **Post** /v2/WebChats | 8 9 10 11 ## CreateWebChannel 12 13 > FlexV2WebChannel CreateWebChannel(ctx, optional) 14 15 16 17 18 19 ### Path Parameters 20 21 This endpoint does not need any path parameter. 22 23 ### Other Parameters 24 25 Other parameters are passed through a pointer to a CreateWebChannelParams struct 26 27 28 Name | Type | Description 29 ------------- | ------------- | ------------- 30 **UiVersion** | **string** | The Ui-Version HTTP request header 31 **AddressSid** | **string** | The SID of the Conversations Address. See [Address Configuration Resource](https://www.twilio.com/docs/conversations/api/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. 32 **ChatFriendlyName** | **string** | The Conversation's friendly name. See the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource) for an example. 33 **CustomerFriendlyName** | **string** | The Conversation participant's friendly name. See the [Conversation Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) for an example. 34 **PreEngagementData** | **string** | The pre-engagement data. 35 36 ### Return type 37 38 [**FlexV2WebChannel**](FlexV2WebChannel.md) 39 40 ### Authorization 41 42 [accountSid_authToken](../README.md#accountSid_authToken) 43 44 ### HTTP request headers 45 46 - **Content-Type**: application/x-www-form-urlencoded 47 - **Accept**: application/json 48 49 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 50 [[Back to Model list]](../README.md#documentation-for-models) 51 [[Back to README]](../README.md) 52