Class WebhookEndpointsClient
- java.lang.Object
-
- ai.extend.resources.webhookendpoints.WebhookEndpointsClient
-
public class WebhookEndpointsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description WebhookEndpointsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookEndpointCreatecreate(WebhookEndpointsCreateRequest request)Create a new webhook endpoint.WebhookEndpointCreatecreate(WebhookEndpointsCreateRequest request, RequestOptions requestOptions)Create a new webhook endpoint.WebhookEndpointsDeleteResponsedelete(java.lang.String id)Delete a webhook endpoint and all of its subscriptions.WebhookEndpointsDeleteResponsedelete(java.lang.String id, RequestOptions requestOptions)Delete a webhook endpoint and all of its subscriptions.WebhookEndpointsDeleteResponsedelete(java.lang.String id, WebhookEndpointsDeleteRequest request)Delete a webhook endpoint and all of its subscriptions.WebhookEndpointsDeleteResponsedelete(java.lang.String id, WebhookEndpointsDeleteRequest request, RequestOptions requestOptions)Delete a webhook endpoint and all of its subscriptions.WebhookEndpointsListResponselist()List all webhook endpoints.WebhookEndpointsListResponselist(RequestOptions requestOptions)List all webhook endpoints.WebhookEndpointsListResponselist(WebhookEndpointsListRequest request)List all webhook endpoints.WebhookEndpointsListResponselist(WebhookEndpointsListRequest request, RequestOptions requestOptions)List all webhook endpoints.WebhookEndpointretrieve(java.lang.String id)Retrieve a webhook endpoint by ID.WebhookEndpointretrieve(java.lang.String id, RequestOptions requestOptions)Retrieve a webhook endpoint by ID.WebhookEndpointretrieve(java.lang.String id, WebhookEndpointsRetrieveRequest request)Retrieve a webhook endpoint by ID.WebhookEndpointretrieve(java.lang.String id, WebhookEndpointsRetrieveRequest request, RequestOptions requestOptions)Retrieve a webhook endpoint by ID.WebhookEndpointupdate(java.lang.String id)Update a webhook endpoint.WebhookEndpointupdate(java.lang.String id, RequestOptions requestOptions)Update a webhook endpoint.WebhookEndpointupdate(java.lang.String id, WebhookEndpointsUpdateRequest request)Update a webhook endpoint.WebhookEndpointupdate(java.lang.String id, WebhookEndpointsUpdateRequest request, RequestOptions requestOptions)Update a webhook endpoint.RawWebhookEndpointsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
WebhookEndpointsClient
public WebhookEndpointsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawWebhookEndpointsClient withRawResponse()
Get responses with HTTP metadata like headers
-
list
public WebhookEndpointsListResponse list()
List all webhook endpoints.
-
list
public WebhookEndpointsListResponse list(RequestOptions requestOptions)
List all webhook endpoints.
-
list
public WebhookEndpointsListResponse list(WebhookEndpointsListRequest request)
List all webhook endpoints.
-
list
public WebhookEndpointsListResponse list(WebhookEndpointsListRequest request, RequestOptions requestOptions)
List all webhook endpoints.
-
create
public WebhookEndpointCreate create(WebhookEndpointsCreateRequest request)
Create a new webhook endpoint. The response includes asigningSecretthat is only returned once — store it securely for verifying webhook signatures.The
enabledEventsarray specifies which global event types this endpoint should receive. Use the Webhook Events reference to see available event types.To subscribe to events scoped to a specific resource (e.g., a single extractor or workflow), use Create Webhook Subscription after creating the endpoint.
-
create
public WebhookEndpointCreate create(WebhookEndpointsCreateRequest request, RequestOptions requestOptions)
Create a new webhook endpoint. The response includes asigningSecretthat is only returned once — store it securely for verifying webhook signatures.The
enabledEventsarray specifies which global event types this endpoint should receive. Use the Webhook Events reference to see available event types.To subscribe to events scoped to a specific resource (e.g., a single extractor or workflow), use Create Webhook Subscription after creating the endpoint.
-
retrieve
public WebhookEndpoint retrieve(java.lang.String id)
Retrieve a webhook endpoint by ID.
-
retrieve
public WebhookEndpoint retrieve(java.lang.String id, RequestOptions requestOptions)
Retrieve a webhook endpoint by ID.
-
retrieve
public WebhookEndpoint retrieve(java.lang.String id, WebhookEndpointsRetrieveRequest request)
Retrieve a webhook endpoint by ID.
-
retrieve
public WebhookEndpoint retrieve(java.lang.String id, WebhookEndpointsRetrieveRequest request, RequestOptions requestOptions)
Retrieve a webhook endpoint by ID.
-
update
public WebhookEndpoint update(java.lang.String id)
Update a webhook endpoint. Only the fields you include in the request body will be updated; omitted fields remain unchanged.The
apiVersionof a webhook endpoint cannot be changed after creation.
-
update
public WebhookEndpoint update(java.lang.String id, RequestOptions requestOptions)
Update a webhook endpoint. Only the fields you include in the request body will be updated; omitted fields remain unchanged.The
apiVersionof a webhook endpoint cannot be changed after creation.
-
update
public WebhookEndpoint update(java.lang.String id, WebhookEndpointsUpdateRequest request)
Update a webhook endpoint. Only the fields you include in the request body will be updated; omitted fields remain unchanged.The
apiVersionof a webhook endpoint cannot be changed after creation.
-
update
public WebhookEndpoint update(java.lang.String id, WebhookEndpointsUpdateRequest request, RequestOptions requestOptions)
Update a webhook endpoint. Only the fields you include in the request body will be updated; omitted fields remain unchanged.The
apiVersionof a webhook endpoint cannot be changed after creation.
-
delete
public WebhookEndpointsDeleteResponse delete(java.lang.String id)
Delete a webhook endpoint and all of its subscriptions. This operation is permanent and cannot be undone.
-
delete
public WebhookEndpointsDeleteResponse delete(java.lang.String id, RequestOptions requestOptions)
Delete a webhook endpoint and all of its subscriptions. This operation is permanent and cannot be undone.
-
delete
public WebhookEndpointsDeleteResponse delete(java.lang.String id, WebhookEndpointsDeleteRequest request)
Delete a webhook endpoint and all of its subscriptions. This operation is permanent and cannot be undone.
-
delete
public WebhookEndpointsDeleteResponse delete(java.lang.String id, WebhookEndpointsDeleteRequest request, RequestOptions requestOptions)
Delete a webhook endpoint and all of its subscriptions. This operation is permanent and cannot be undone.
-
-