Update configuration webhook

POST /v1/Configuration/Webhooks

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.

  • The absolute url the post-event webhook request should be sent to.

  • The absolute url the pre-event webhook request should be sent to.

  • Target string

    The routing target of the webhook.

    Values are webhook or flex.

Responses

  • OK

    Hide response attributes Show response attributes object
    • account_sid string | null

      The unique ID of the Account responsible for this conversation.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • filters array[string] | null

      The list of webhook event triggers that are enabled for this Service.

    • method string | null

      The HTTP method to be used when sending a webhook request.

      Values are GET or POST.

    • post_webhook_url string | null

      The absolute url the post-event webhook request should be sent to.

    • pre_webhook_url string | null

      The absolute url the pre-event webhook request should be sent to.

    • target string | null

      The routing target of the webhook.

      Values are webhook or flex.

    • url string(uri) | null

      An absolute URL for this webhook.

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"
}