刪除組織 Webhook 端點
DELETE/v1/organizations/webhooks/{webhook_endpoint_id}
Requires
anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.刪除組織 webhook 端點。
每個請求都必須包含 beta 標頭 anthropic-beta: webhooks-2026-10-07。未包含此標頭的請求會傳回 404,就如同此 API 不存在一樣。Anthropic 會為每個組織個別開啟組織 webhook 端點功能;在您的組織開啟之前,請求也會傳回 404。組織 webhook 端點目前為 beta 版,且不適用於已啟用 HIPAA 就緒的組織。
刪除組織 Webhook 端點
import os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get(
"ANTHROPIC_API_KEY"
), # This is the default and can be omitted
)
beta_deleted_organization_webhook_endpoint = client.beta.organization.webhooks.delete(
webhook_endpoint_id="webhook_endpoint_id",
)
print(beta_deleted_organization_webhook_endpoint.id)Response 200
{
"id": "id",
"type": "webhook_endpoint_deleted"
}Returns Examples
Response 200
{
"id": "id",
"type": "webhook_endpoint_deleted"
}