Supprimer un point de terminaison de webhook d'organisation
DELETE/v1/organizations/webhooks/{webhook_endpoint_id}
Requires
anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.Supprimez un point de terminaison de webhook d'organisation.
Chaque requête doit inclure l'en-tête bêta anthropic-beta: webhooks-2026-10-07. Une requête sans cet en-tête renvoie 404, exactement comme si cette API n'existait pas. Anthropic active les points de terminaison de webhook d'organisation pour chaque organisation ; tant que ce n'est pas le cas pour la vôtre, les requêtes renvoient également 404. Les points de terminaison de webhook d'organisation sont en bêta et ne sont pas disponibles pour les organisations dont la préparation HIPAA est activée.
Supprimer un point de terminaison de webhook d'organisation
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"
}