Class AsyncWebhookSubscriptionsClient


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

      • AsyncWebhookSubscriptionsClient

        public AsyncWebhookSubscriptionsClient​(ClientOptions clientOptions)
    • Method Detail

      • list

        public java.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<WebhookSubscription> retrieve​(java.lang.String id)
        Retrieve a webhook subscription by ID.
      • retrieve

        public java.util.concurrent.CompletableFuture<WebhookSubscription> retrieve​(java.lang.String id,
                                                                                    RequestOptions requestOptions)
        Retrieve a webhook subscription by ID.
      • delete

        public java.util.concurrent.CompletableFuture<WebhookSubscriptionsDeleteResponse> delete​(java.lang.String id)
        Delete a webhook subscription. This operation is permanent and cannot be undone.