Class WebhookSubscriptionsClient


  • public class WebhookSubscriptionsClient
    extends java.lang.Object
    • Constructor Detail

      • WebhookSubscriptionsClient

        public WebhookSubscriptionsClient​(ClientOptions clientOptions)
    • Method Detail

      • list

        public WebhookSubscriptionsListResponse list()
        List webhook subscriptions. You can filter by webhookEndpointId to see all subscriptions for a given endpoint, or by resourceId to see all subscriptions for a given resource.
      • list

        public WebhookSubscriptionsListResponse list​(RequestOptions requestOptions)
        List webhook subscriptions. You can filter by webhookEndpointId to see all subscriptions for a given endpoint, or by resourceId to see all subscriptions for a given resource.
      • create

        public WebhookSubscription create​(WebhookSubscriptionsCreateRequest request)
        Create a resource-scoped webhook subscription on an existing webhook endpoint.

        Subscriptions let you receive events for a specific resource (e.g., a single extractor or workflow) rather than all resources of that type. The enabledEvents must be valid for the given resourceType and the endpoint's apiVersion.

        If a subscription already exists for the same endpoint and resource, it will be updated with the new enabledEvents instead of creating a duplicate.

      • create

        public WebhookSubscription create​(WebhookSubscriptionsCreateRequest request,
                                          RequestOptions requestOptions)
        Create a resource-scoped webhook subscription on an existing webhook endpoint.

        Subscriptions let you receive events for a specific resource (e.g., a single extractor or workflow) rather than all resources of that type. The enabledEvents must be valid for the given resourceType and the endpoint's apiVersion.

        If a subscription already exists for the same endpoint and resource, it will be updated with the new enabledEvents instead of creating a duplicate.

      • retrieve

        public WebhookSubscription retrieve​(java.lang.String id)
        Retrieve a webhook subscription by ID.