Update configuration webhook
A Webhook resource manages a service-level set of callback URLs and their configuration for receiving all conversation events.
Body
-
Filters array[string]
The list of webhook event triggers that are enabled for this Service:
onMessageAdded
,onMessageUpdated
,onMessageRemoved
,onConversationUpdated
,onConversationRemoved
,onParticipantAdded
,onParticipantUpdated
,onParticipantRemoved
-
Method string
The HTTP method to be used when sending a webhook request.
-
PostWebhookUrl string
The absolute url the post-event webhook request should be sent to.
-
PreWebhookUrl string
The absolute url the pre-event webhook request should be sent to.
-
Target string
The routing target of the webhook.
Values are
webhook
orflex
.
POST /v1/Configuration/Webhooks
curl \
-X POST https://conversations.twilio.com/v1/Configuration/Webhooks \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'Filters=string&Method=string&PostWebhookUrl=string&PreWebhookUrl=string&Target=webhook'
Request example
{
"Filters": [
"string"
],
"Method": "string",
"PostWebhookUrl": "string",
"PreWebhookUrl": "string",
"Target": "webhook"
}
Request examples
{
"Filters": [
"string"
],
"Method": "string",
"PostWebhookUrl": "string",
"PreWebhookUrl": "string",
"Target": "webhook"
}
Response examples (200)
{
"account_sid": "string",
"filters": [
"string"
],
"method": "GET",
"post_webhook_url": "string",
"pre_webhook_url": "string",
"target": "webhook",
"url": "https://example.com"
}
Response examples (200)
{
"account_sid": "string",
"filters": [
"string"
],
"method": "GET",
"post_webhook_url": "string",
"pre_webhook_url": "string",
"target": "webhook",
"url": "https://example.com"
}