Claude Platform Docs

Excluir endpoint de webhook da organização

$client->beta->organization->webhooks->delete(string webhookEndpointID, ?list<AnthropicBeta> betas): DeletedOrganizationWebhookEndpoint
DELETE/v1/organizations/webhooks/{webhook_endpoint_id}
Requires anthropic-beta: webhooks-2026-10-07. How to send beta headers

Exclua um endpoint de webhook da organização.

Toda solicitação deve incluir o cabeçalho beta anthropic-beta: webhooks-2026-10-07. Uma solicitação sem ele retorna 404, exatamente como se esta API não existisse. A Anthropic ativa os endpoints de webhook da organização para cada organização; até que a sua esteja ativada, as solicitações também retornam 404. Os endpoints de webhook da organização estão em beta e não estão disponíveis para organizações com prontidão para HIPAA habilitada.

Parameters
webhookEndpointID: string⁠Path parameter

ID of the webhook endpoint.

betas?: optional list<AnthropicBeta>⁠Header parameter

This endpoint is in beta: requests must send webhooks-2026-10-07 in this header.

Returns
class DeletedOrganizationWebhookEndpoint { $type = 'webhook_endpoint_deleted'; $id; }
"webhook_endpoint_deleted" type

Always webhook_endpoint_deleted.

string id

ID of the deleted webhook endpoint.

Excluir endpoint de webhook da organização
<?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);
Returns Examples
Response 200
{
  "id": "id",
  "type": "webhook_endpoint_deleted"
}