Organisations-Webhook-Endpunkt erstellen
anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.Erstellt einen Organisations-Webhook-Endpunkt.
Ein Organisations-Webhook-Endpunkt gehört zur Organisation und nicht zu einem ihrer Workspaces. Eine Organisation kann höchstens 32 Organisations-Webhook-Endpunkte haben, aktiviert oder deaktiviert.
Die Antwort enthält das Signatur-Secret des Endpunkts. Kein Lesevorgang gibt es zurück, speichere es also, wenn du es erhältst.
Jede Anfrage muss den Beta-Header anthropic-beta: webhooks-2026-10-07 enthalten. Eine Anfrage ohne ihn gibt 404 zurück, genau so, als gäbe es diese API nicht. Anthropic schaltet Organisations-Webhook-Endpunkte für jede Organisation einzeln frei; bis deine freigeschaltet ist, geben Anfragen ebenfalls 404 zurück. Organisations-Webhook-Endpunkte befinden sich in der Beta und sind für Organisationen mit aktivierter HIPAA-Readiness nicht verfügbar.
Parameters
Returns
require "anthropic"
anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")
beta_new_organization_webhook_endpoint = anthropic.beta.organization.webhooks.create(
enabled_events: [:"user_profile.enforcement_action_opened", :"user_profile.enforcement_action_resolved"],
url: "https://example.com/anthropic-webhooks"
)
puts(beta_new_organization_webhook_endpoint){
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"disabled_reason": "disabled_reason",
"enabled_events": [
"external_key.failed"
],
"name": "name",
"signing_secret": "signing_secret",
"state": "disabled",
"updated_at": "2019-12-27T18:11:19.117Z",
"url": "url"
}Returns Examples
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"disabled_reason": "disabled_reason",
"enabled_events": [
"external_key.failed"
],
"name": "name",
"signing_secret": "signing_secret",
"state": "disabled",
"updated_at": "2019-12-27T18:11:19.117Z",
"url": "url"
}