LLM API Guide

How to Set Up Claude Organization Webhooks with the Admin API

Request access, then register an HTTPS endpoint through the Admin API with anthropic-beta: webhooks-2026-10-07 to receive user-profile enforcement events.

Editorial illustration: How to Set Up Claude Organization Webhooks with the Admin API
Photo-style image, AI-generated

Summary

  1. Organization webhooks notify you when a user-profile restriction or ban starts or ends.
  2. Ask your Anthropic account team for access; the Admin API requires the webhooks-2026-10-07 beta header.
  3. Verify delivery signatures, deduplicate events, and acknowledge within 5 seconds.
On this page

Does your integration need organization webhooks?

Use organization webhooks to react when Anthropic restricts or bans an end customer's user profile, or ends that enforcement action. The feature launched in beta on October 20, 2026. Request access through your Anthropic account team and send anthropic-beta: webhooks-2026-10-07 with Admin API requests (release notes). For profile creation and request headers, see setting up profiles for Claude requests.

For other notifications, use the corresponding feature:

  • Managed Agents webhooks report resource changes, including session events. Register them through the workspace's Webhooks page in Claude Console (Managed Agents documentation).
  • Claude Code hooks run handlers at points in a coding session, such as before a tool executes. Configure those in Claude Code's settings files (hooks reference).

1. Get access and an Admin API key

Confirm that organization webhooks are enabled and HIPAA readiness is off. Creating endpoints requires an admin, owner, or primary owner role (organization webhook prerequisites).

For a Claude Console organization, sign in as an organization admin and open Admin keys settings. Click Create admin key, name it, choose its expiration, then click Add. Copy the secret into your secrets manager; Console displays it only once. Console Admin API keys have broad administrative access, so keep this credential on your backend (Admin API key instructions).

The examples below use the Anthropic Python SDK with ANTHROPIC_API_KEY supplied through your environment. The Python code is the same on Windows, macOS, and Linux.

2. Register your receiver

Use a public HTTPS hostname on port 443. Replace the example URL with your receiver's address, then create the endpoint with both supported subscriptions (endpoint configuration):

python
import anthropic

client = anthropic.Anthropic()

endpoint = client.beta.organization.webhooks.create(
    url="https://example.com/anthropic-webhooks",
    name="Enforcement actions",
    enabled_events=[
        "user_profile.enforcement_action_opened",
        "user_profile.enforcement_action_resolved",
    ],
)

print(endpoint.id)

The SDK supplies the beta header. Save the returned signing_secret securely.

Check registration separately:

python
import anthropic

client = anthropic.Anthropic()

for endpoint in client.beta.organization.webhooks.list():
    print(f"{endpoint.id}: {endpoint.url} ({endpoint.state})")

Look for your URL and enabled state. Registration alone does not demonstrate event delivery.

3. Verify signatures before processing events

Verify webhook-id, webhook-timestamp, and webhook-signature with the endpoint secret using a Standard Webhooks library. Deduplicate by event ID, and return a 2xx response within 5 seconds (organization delivery rules).

Design the receiver to verify, persist the event, and acknowledge it before a worker performs slower processing. Keep the original request body available for signature verification.

Anthropic's Managed Agents receiver example illustrates passing the raw body and request headers to a verifier. Its session subscriptions and retry schedule belong to Managed Agents; retain the organization-specific rules above for this integration.

4. Read current profile state

Retrieve the profile using data.id; events can arrive out of order. Failed deliveries are eventually dropped. Reconcile with enforcement_status[]=restricted and enforcement_status[]=banned, paging until next_page is null (profile reconciliation).

Schedule reconciliation independently of webhook receipt so a missing notification does not prevent recovery.

If registration fails

Use the status-specific checks in Anthropic's organization webhook error reference:

  • 400: Check URL, event types, default workspace, customer-managed encryption, and the 32-endpoint limit.
  • 403: Check the permission named in the response.
  • 404: Check the beta header, access enablement, HIPAA readiness, credential type, and endpoint ID.
  • 409: Check duplicate enabled URLs; retry concurrent-update conflicts.

Not confirmed yet

The organization webhook documentation does not specify an exact retry schedule or a test-event operation. Build recovery around profile reconciliation, and confirm delivery when a supported enforcement event occurs.

Sources and checks

  1. Claude Platform release notes
  2. Organization webhooks
  3. Create an Admin API key
  4. Subscribe to webhooks
  5. Hooks reference