Class Webhook

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.assistant.v1.model.Webhook
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class Webhook
extends com.ibm.cloud.sdk.core.service.model.GenericModel
A webhook that can be used by dialog nodes to make programmatic calls to an external function.

**Note:** Currently, only a single webhook named `main_webhook` is supported.

  • Method Details

    • newBuilder

      public Webhook.Builder newBuilder()
      New builder.
      Returns:
      a Webhook builder
    • url

      public String url()
      Gets the url.

      The URL for the external service or application to which you want to send HTTP POST requests.

      Returns:
      the url
    • name

      public String name()
      Gets the name.

      The name of the webhook. Currently, `main_webhook` is the only supported value.

      Returns:
      the name
    • headers

      public List<WebhookHeader> headers()
      Gets the headers.

      An optional array of HTTP headers to pass with the HTTP request.

      Returns:
      the headers