github.com/twilio/twilio-go@v1.20.1/rest/conversations/v1/docs/ServicesConfigurationWebhooksApi.md (about) 1 # ServicesConfigurationWebhooksApi 2 3 All URIs are relative to *https://conversations.twilio.com* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**FetchServiceWebhookConfiguration**](ServicesConfigurationWebhooksApi.md#FetchServiceWebhookConfiguration) | **Get** /v1/Services/{ChatServiceSid}/Configuration/Webhooks | 8 [**UpdateServiceWebhookConfiguration**](ServicesConfigurationWebhooksApi.md#UpdateServiceWebhookConfiguration) | **Post** /v1/Services/{ChatServiceSid}/Configuration/Webhooks | 9 10 11 12 ## FetchServiceWebhookConfiguration 13 14 > ConversationsV1ServiceWebhookConfiguration FetchServiceWebhookConfiguration(ctx, ChatServiceSid) 15 16 17 18 Fetch a specific service webhook configuration. 19 20 ### Path Parameters 21 22 23 Name | Type | Description 24 ------------- | ------------- | ------------- 25 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 26 **ChatServiceSid** | **string** | The unique ID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) this conversation belongs to. 27 28 ### Other Parameters 29 30 Other parameters are passed through a pointer to a FetchServiceWebhookConfigurationParams struct 31 32 33 Name | Type | Description 34 ------------- | ------------- | ------------- 35 36 ### Return type 37 38 [**ConversationsV1ServiceWebhookConfiguration**](ConversationsV1ServiceWebhookConfiguration.md) 39 40 ### Authorization 41 42 [accountSid_authToken](../README.md#accountSid_authToken) 43 44 ### HTTP request headers 45 46 - **Content-Type**: Not defined 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 53 54 ## UpdateServiceWebhookConfiguration 55 56 > ConversationsV1ServiceWebhookConfiguration UpdateServiceWebhookConfiguration(ctx, ChatServiceSidoptional) 57 58 59 60 Update a specific Webhook. 61 62 ### Path Parameters 63 64 65 Name | Type | Description 66 ------------- | ------------- | ------------- 67 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 68 **ChatServiceSid** | **string** | The unique ID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) this conversation belongs to. 69 70 ### Other Parameters 71 72 Other parameters are passed through a pointer to a UpdateServiceWebhookConfigurationParams struct 73 74 75 Name | Type | Description 76 ------------- | ------------- | ------------- 77 **PreWebhookUrl** | **string** | The absolute url the pre-event webhook request should be sent to. 78 **PostWebhookUrl** | **string** | The absolute url the post-event webhook request should be sent to. 79 **Filters** | **[]string** | The list of events that your configured webhook targets will receive. Events not configured here will not fire. Possible values are `onParticipantAdd`, `onParticipantAdded`, `onDeliveryUpdated`, `onConversationUpdated`, `onConversationRemove`, `onParticipantRemove`, `onConversationUpdate`, `onMessageAdd`, `onMessageRemoved`, `onParticipantUpdated`, `onConversationAdded`, `onMessageAdded`, `onConversationAdd`, `onConversationRemoved`, `onParticipantUpdate`, `onMessageRemove`, `onMessageUpdated`, `onParticipantRemoved`, `onMessageUpdate` or `onConversationStateUpdated`. 80 **Method** | **string** | The HTTP method to be used when sending a webhook request. One of `GET` or `POST`. 81 82 ### Return type 83 84 [**ConversationsV1ServiceWebhookConfiguration**](ConversationsV1ServiceWebhookConfiguration.md) 85 86 ### Authorization 87 88 [accountSid_authToken](../README.md#accountSid_authToken) 89 90 ### HTTP request headers 91 92 - **Content-Type**: application/x-www-form-urlencoded 93 - **Accept**: application/json 94 95 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 96 [[Back to Model list]](../README.md#documentation-for-models) 97 [[Back to README]](../README.md) 98