Interface WebhookServiceAsync
-
- All Implemented Interfaces:
public interface WebhookServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceWebhookServiceAsync.WithRawResponseA view of WebhookServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract WebhookServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract WebhookServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
create
CompletableFuture<BetaNewOrganizationWebhookEndpoint> create(WebhookCreateParams params)
Create an organization webhook endpoint.
An organization webhook endpoint belongs to the organization rather than to one of its workspaces. An organization can have at most 32 organization webhook endpoints, enabled or disabled.
The response includes the endpoint's signing secret. No read returns it, so store it when you receive it.
Every request must include the beta header
anthropic-beta: webhooks-2026-10-07. A request without it returns404, exactly as if this API did not exist. Anthropic turns organization webhook endpoints on for each organization; until yours is on, requests also return404. Organization webhook endpoints are in beta and are not available to organizations with HIPAA readiness enabled.
-
create
abstract CompletableFuture<BetaNewOrganizationWebhookEndpoint> create(WebhookCreateParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<BetaOrganizationWebhookEndpoint> retrieve(String webhookEndpointId)
Retrieve an organization webhook endpoint by ID.
Every request must include the beta header
anthropic-beta: webhooks-2026-10-07. A request without it returns404, exactly as if this API did not exist. Anthropic turns organization webhook endpoints on for each organization; until yours is on, requests also return404. Organization webhook endpoints are in beta and are not available to organizations with HIPAA readiness enabled.
-
retrieve
CompletableFuture<BetaOrganizationWebhookEndpoint> retrieve(String webhookEndpointId, WebhookRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<BetaOrganizationWebhookEndpoint> retrieve(String webhookEndpointId, WebhookRetrieveParams params)
-
retrieve
abstract CompletableFuture<BetaOrganizationWebhookEndpoint> retrieve(WebhookRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<BetaOrganizationWebhookEndpoint> retrieve(WebhookRetrieveParams params)
-
retrieve
CompletableFuture<BetaOrganizationWebhookEndpoint> retrieve(String webhookEndpointId, RequestOptions requestOptions)
-
update
CompletableFuture<BetaOrganizationWebhookEndpoint> update(String webhookEndpointId)
Update an organization webhook endpoint. Only the fields you send are changed.
Every request must include the beta header
anthropic-beta: webhooks-2026-10-07. A request without it returns404, exactly as if this API did not exist. Anthropic turns organization webhook endpoints on for each organization; until yours is on, requests also return404. Organization webhook endpoints are in beta and are not available to organizations with HIPAA readiness enabled.
-
update
CompletableFuture<BetaOrganizationWebhookEndpoint> update(String webhookEndpointId, WebhookUpdateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<BetaOrganizationWebhookEndpoint> update(String webhookEndpointId, WebhookUpdateParams params)
-
update
abstract CompletableFuture<BetaOrganizationWebhookEndpoint> update(WebhookUpdateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<BetaOrganizationWebhookEndpoint> update(WebhookUpdateParams params)
-
update
CompletableFuture<BetaOrganizationWebhookEndpoint> update(String webhookEndpointId, RequestOptions requestOptions)
-
list
CompletableFuture<WebhookListPageAsync> list()
List the organization's webhook endpoints.
An organization webhook endpoint belongs to the organization rather than to one of its workspaces. The list does not include webhook endpoints that belong to a workspace.
Every request must include the beta header
anthropic-beta: webhooks-2026-10-07. A request without it returns404, exactly as if this API did not exist. Anthropic turns organization webhook endpoints on for each organization; until yours is on, requests also return404. Organization webhook endpoints are in beta and are not available to organizations with HIPAA readiness enabled.
-
list
abstract CompletableFuture<WebhookListPageAsync> list(WebhookListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<WebhookListPageAsync> list(WebhookListParams params)
-
list
CompletableFuture<WebhookListPageAsync> list(RequestOptions requestOptions)
-
delete
CompletableFuture<BetaDeletedOrganizationWebhookEndpoint> delete(String webhookEndpointId)
Delete an organization webhook endpoint.
Every request must include the beta header
anthropic-beta: webhooks-2026-10-07. A request without it returns404, exactly as if this API did not exist. Anthropic turns organization webhook endpoints on for each organization; until yours is on, requests also return404. Organization webhook endpoints are in beta and are not available to organizations with HIPAA readiness enabled.
-
delete
CompletableFuture<BetaDeletedOrganizationWebhookEndpoint> delete(String webhookEndpointId, WebhookDeleteParams params, RequestOptions requestOptions)
-
delete
CompletableFuture<BetaDeletedOrganizationWebhookEndpoint> delete(String webhookEndpointId, WebhookDeleteParams params)
-
delete
abstract CompletableFuture<BetaDeletedOrganizationWebhookEndpoint> delete(WebhookDeleteParams params, RequestOptions requestOptions)
-
delete
CompletableFuture<BetaDeletedOrganizationWebhookEndpoint> delete(String webhookEndpointId, RequestOptions requestOptions)
-
regenerateSigningSecret
CompletableFuture<BetaOrganizationWebhookEndpointSigningSecret> regenerateSigningSecret(String webhookEndpointId)
Replace an organization webhook endpoint's signing secret. The old secret stops working immediately. The new secret is returned only in this response.
Every request must include the beta header
anthropic-beta: webhooks-2026-10-07. A request without it returns404, exactly as if this API did not exist. Anthropic turns organization webhook endpoints on for each organization; until yours is on, requests also return404. Organization webhook endpoints are in beta and are not available to organizations with HIPAA readiness enabled.
-
regenerateSigningSecret
CompletableFuture<BetaOrganizationWebhookEndpointSigningSecret> regenerateSigningSecret(String webhookEndpointId, WebhookRegenerateSigningSecretParams params, RequestOptions requestOptions)
-
regenerateSigningSecret
CompletableFuture<BetaOrganizationWebhookEndpointSigningSecret> regenerateSigningSecret(String webhookEndpointId, WebhookRegenerateSigningSecretParams params)
-
regenerateSigningSecret
abstract CompletableFuture<BetaOrganizationWebhookEndpointSigningSecret> regenerateSigningSecret(WebhookRegenerateSigningSecretParams params, RequestOptions requestOptions)
-
regenerateSigningSecret
CompletableFuture<BetaOrganizationWebhookEndpointSigningSecret> regenerateSigningSecret(WebhookRegenerateSigningSecretParams params)
-
regenerateSigningSecret
CompletableFuture<BetaOrganizationWebhookEndpointSigningSecret> regenerateSigningSecret(String webhookEndpointId, RequestOptions requestOptions)
-
-
-
-