Interface WebhookService
-
- All Implemented Interfaces:
public interface WebhookService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceWebhookService.WithRawResponseA view of WebhookService that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract WebhookService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract WebhookService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
create
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 BetaNewOrganizationWebhookEndpoint create(WebhookCreateParams params, RequestOptions requestOptions)
-
retrieve
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
BetaOrganizationWebhookEndpoint retrieve(String webhookEndpointId, WebhookRetrieveParams params, RequestOptions requestOptions)
-
retrieve
BetaOrganizationWebhookEndpoint retrieve(String webhookEndpointId, WebhookRetrieveParams params)
-
retrieve
abstract BetaOrganizationWebhookEndpoint retrieve(WebhookRetrieveParams params, RequestOptions requestOptions)
-
retrieve
BetaOrganizationWebhookEndpoint retrieve(WebhookRetrieveParams params)
-
retrieve
BetaOrganizationWebhookEndpoint retrieve(String webhookEndpointId, RequestOptions requestOptions)
-
update
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
BetaOrganizationWebhookEndpoint update(String webhookEndpointId, WebhookUpdateParams params, RequestOptions requestOptions)
-
update
BetaOrganizationWebhookEndpoint update(String webhookEndpointId, WebhookUpdateParams params)
-
update
abstract BetaOrganizationWebhookEndpoint update(WebhookUpdateParams params, RequestOptions requestOptions)
-
update
BetaOrganizationWebhookEndpoint update(WebhookUpdateParams params)
-
update
BetaOrganizationWebhookEndpoint update(String webhookEndpointId, RequestOptions requestOptions)
-
list
WebhookListPage 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 WebhookListPage list(WebhookListParams params, RequestOptions requestOptions)
-
list
WebhookListPage list(WebhookListParams params)
-
list
WebhookListPage list(RequestOptions requestOptions)
-
delete
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
BetaDeletedOrganizationWebhookEndpoint delete(String webhookEndpointId, WebhookDeleteParams params, RequestOptions requestOptions)
-
delete
BetaDeletedOrganizationWebhookEndpoint delete(String webhookEndpointId, WebhookDeleteParams params)
-
delete
abstract BetaDeletedOrganizationWebhookEndpoint delete(WebhookDeleteParams params, RequestOptions requestOptions)
-
delete
BetaDeletedOrganizationWebhookEndpoint delete(WebhookDeleteParams params)
-
delete
BetaDeletedOrganizationWebhookEndpoint delete(String webhookEndpointId, RequestOptions requestOptions)
-
regenerateSigningSecret
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
BetaOrganizationWebhookEndpointSigningSecret regenerateSigningSecret(String webhookEndpointId, WebhookRegenerateSigningSecretParams params, RequestOptions requestOptions)
-
regenerateSigningSecret
BetaOrganizationWebhookEndpointSigningSecret regenerateSigningSecret(String webhookEndpointId, WebhookRegenerateSigningSecretParams params)
-
regenerateSigningSecret
abstract BetaOrganizationWebhookEndpointSigningSecret regenerateSigningSecret(WebhookRegenerateSigningSecretParams params, RequestOptions requestOptions)
-
regenerateSigningSecret
BetaOrganizationWebhookEndpointSigningSecret regenerateSigningSecret(WebhookRegenerateSigningSecretParams params)
-
regenerateSigningSecret
BetaOrganizationWebhookEndpointSigningSecret regenerateSigningSecret(String webhookEndpointId, RequestOptions requestOptions)
-
-
-
-