Claude Platform Docs

Webhook

建立組織 Webhook 端點
client.Beta.Organization.Webhooks.New(ctx, params) (*BetaNewOrganizationWebhookEndpoint, error)
POST/v1/organizations/webhooks
Requires anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.

建立組織 webhook 端點。

列出組織 Webhook 端點
client.Beta.Organization.Webhooks.List(ctx, params) (*Page[BetaOrganizationWebhookEndpoint], error)
GET/v1/organizations/webhooks
Requires anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.

列出組織的 webhook 端點。

取得組織 Webhook 端點
client.Beta.Organization.Webhooks.Get(ctx, webhookEndpointID, query) (*BetaOrganizationWebhookEndpoint, error)
GET/v1/organizations/webhooks/{webhook_endpoint_id}
Requires anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.

依 ID 擷取組織 webhook 端點。

更新組織 Webhook 端點
client.Beta.Organization.Webhooks.Update(ctx, webhookEndpointID, params) (*BetaOrganizationWebhookEndpoint, error)
POST/v1/organizations/webhooks/{webhook_endpoint_id}
Requires anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.

更新組織 webhook 端點。只有您傳送的欄位會被變更。

刪除組織 Webhook 端點
client.Beta.Organization.Webhooks.Delete(ctx, webhookEndpointID, body) (*BetaDeletedOrganizationWebhookEndpoint, error)
DELETE/v1/organizations/webhooks/{webhook_endpoint_id}
Requires anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.

刪除組織 webhook 端點。

重新產生組織 Webhook 端點簽署密鑰
client.Beta.Organization.Webhooks.RegenerateSigningSecret(ctx, webhookEndpointID, body) (*BetaOrganizationWebhookEndpointSigningSecret, error)
POST/v1/organizations/webhooks/{webhook_endpoint_id}/regenerate_signing_secret
Requires anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.

替換組織 webhook 端點的簽署密鑰。舊密鑰會立即失效。新密鑰僅會在此回應中傳回。

Models
type BetaDeletedOrganizationWebhookEndpoint struct { Type: "webhook_endpoint_deleted"; ID }

A deleted organization webhook endpoint.

Type WebhookEndpointDeleted

Always webhook_endpoint_deleted.

defaultwebhook_endpoint_deleted
ID string

ID of the deleted webhook endpoint.

type BetaNewOrganizationWebhookEndpoint struct { ID; CreatedAt; Description; /* 7 more */ }

A new organization webhook endpoint, with its signing secret.

type BetaOrganizationWebhookEndpoint struct { ID; CreatedAt; Description; /* 6 more */ }

A webhook endpoint that belongs to the organization rather than to one of its workspaces.

type BetaOrganizationWebhookEndpointSigningSecret struct { SigningSecret }

An organization webhook endpoint's new signing secret.

SigningSecret string

The new signing secret. Deliveries are signed with it from now on, and no other response returns it.

type BetaOrganizationWebhookEndpointState string

Whether deliveries are sent to an organization webhook endpoint.

One of the following:
const BetaOrganizationWebhookEndpointStateDisabled BetaOrganizationWebhookEndpointState = "disabled"
const BetaOrganizationWebhookEndpointStateEnabled BetaOrganizationWebhookEndpointState = "enabled"