Class WebhookCreateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class WebhookCreateParams implements 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWebhookCreateParams.BuilderA builder for WebhookCreateParams.
public final classWebhookCreateParams.Bodypublic final classWebhookCreateParams.EnabledEvent
-
Method Summary
Modifier and Type Method Description final Optional<List<AnthropicBeta>>betas()This endpoint is in beta: requests must send webhooks-2026-10-07in this header.final List<WebhookCreateParams.EnabledEvent>enabledEvents()The event types to deliver to the endpoint. final Stringurl()The HTTPS URL that deliveries are sent to. final Optional<String>description()Notes about the endpoint. final Optional<String>name()A short label for the endpoint. final JsonField<List<WebhookCreateParams.EnabledEvent>>_enabledEvents()Returns the raw JSON value of enabledEvents. final JsonField<String>_url()Returns the raw JSON value of url. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<String>_name()Returns the raw JSON value of name. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final WebhookCreateParams.BuildertoBuilder()final WebhookCreateParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static WebhookCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of WebhookCreateParams. -
-
Method Detail
-
betas
final Optional<List<AnthropicBeta>> betas()
This endpoint is in beta: requests must send
webhooks-2026-10-07in this header.
-
enabledEvents
final List<WebhookCreateParams.EnabledEvent> enabledEvents()
The event types to deliver to the endpoint. Must list at least one.
-
description
final Optional<String> description()
Notes about the endpoint.
-
_enabledEvents
final JsonField<List<WebhookCreateParams.EnabledEvent>> _enabledEvents()
Returns the raw JSON value of enabledEvents.
Unlike enabledEvents, this method doesn't throw if the JSON field has an unexpected type.
-
_url
final JsonField<String> _url()
Returns the raw JSON value of url.
Unlike url, this method doesn't throw if the JSON field has an unexpected type.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final WebhookCreateParams.Builder toBuilder()
-
_body
final WebhookCreateParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
builder
final static WebhookCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of WebhookCreateParams.
The following fields are required:
.enabledEvents() .url()
-
-
-
-