删除组织 Webhook 端点
DELETE/v1/organizations/webhooks/{webhook_endpoint_id}
Requires
anthropic-beta: webhooks-2026-10-07. How to send beta headers删除组织 webhook 端点。
每个请求都必须包含 beta 标头 anthropic-beta: webhooks-2026-10-07。不带该标头的请求将返回 404,就如同此 API 不存在一样。Anthropic 会为每个组织单独开启组织 webhook 端点功能;在您的组织开启之前,请求同样会返回 404。组织 webhook 端点目前处于 beta 阶段,不适用于已启用 HIPAA 就绪的组织。
Parameters
Returns
删除组织 Webhook 端点
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Anthropic\Client;
use Anthropic\Beta\AnthropicBeta;
$client = new Client(apiKey: 'my-anthropic-api-key');
$betaDeletedOrganizationWebhookEndpoint = $client
->beta
->organization
->webhooks
->delete(
'webhook_endpoint_id', betas: [AnthropicBeta::MESSAGE_BATCHES_2024_09_24]
);
var_dump($betaDeletedOrganizationWebhookEndpoint);Response 200
{
"id": "id",
"type": "webhook_endpoint_deleted"
}Returns Examples
Response 200
{
"id": "id",
"type": "webhook_endpoint_deleted"
}