Learning resourcesReviewed · Anthropic

Claude Managed Agents: Subscribe to webhooks

This guide teaches developers to receive Claude Managed Agents webhook notifications, but the beta feature can lose events and requires a public HTTPS endpoint. It explains subscriptions, signature verification, resource retrieval and delivery failure handling.

Researched 23 Nov 2026

In short.

This guide explains Claude Managed Agents webhooks for developers building agent integrations, but deliveries can be lost, duplicated or received out of order. It provides endpoint requirements, SDK examples and operational rules for receiving major lifecycle notifications. Applications must verify signatures, handle duplicates and fetch current resource state; completeness requirements also call for API reconciliation. Actual implementation behavior and reliability were not tested.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is the complete supplied documentation page at [https://platform.claude.com/docs/en/managed-agents/webhooks.md], including its metadata, event tables, endpoint registration, language examples, verification instructions, delivery rules, availability and data-handling notices. Linked pages and their contents are excluded. Prices, licenses, minimum SDK versions and unspecified operational thresholds remain unknown. All implementation and service behavior is untested.

The overview

Resource identity

Subscribe to webhooks is a Claude Managed Agents documentation guide at [https://platform.claude.com/docs/en/managed-agents/webhooks.md]. Its displayed page address is [https://platform.claude.com/docs/en/managed-agents/webhooks]. It explains how applications receive notifications about major changes to long-running AI sessions and related resources.

The page describes webhooks as a beta feature available through the Claude API and Claude Platform on AWS. It specifies the beta header managed-agents-2026-04-01.

Practical assessment

The guide is useful when an application needs to react to an agent waiting for input, a session reaching its budget, a credential refresh failing or a scheduled deployment encountering trouble. Its strongest practical detail is the delivery contract: it explains what failures mean, when retries stop and how endpoints become disabled.

It fits applications that can combine notifications with resource retrieval and reconciliation. An application requiring a complete event history cannot assume these webhooks supply one. Delivery latency, operating reliability and the effort required to integrate a particular application are not assessed.

Who it is for

The primary audience is developers integrating Claude Managed Agents into a backend service. Beginners need familiarity with HTTP requests, server routes, environment variables and API calls to use the examples effectively.

Experienced developers will find details relevant to asynchronous processing, duplicate handling, workspace subscriptions and lifecycle monitoring across sessions, agents, vaults, deployments, environments and memory stores. The page assumes access to Managed Agents resources; it does not teach their initial creation in depth.

What the guide covers

Session notifications cover running, waiting for input, automatic rescheduling, termination, budget pauses, thread activity, completed outcome-evaluation iterations, property changes and deletion. A budget event fires at most once for each budget value set; changing that value arms it again.

Other event families cover vault and credential lifecycles, failed OAuth credential refreshes, agent resources, deployments, scheduled deployment runs, environments and memory stores. Agent update events indicate publication of a new agent version, rather than every resource edit.

Scheduled deployment run events distinguish starting, successfully creating a session and failing to create one. A succeeded event does not establish that the session completed its work. Manual runs do not emit deployment_run events. Environment work items, individual memories and memory versions emit no webhook events.

Using it

Requirements

An endpoint belongs to one workspace and must use HTTPS on port 443 with a publicly resolvable hostname. Its address must resolve to a public IP when Anthropic connects. The receiving application needs access to the relevant APIs to retrieve resource details after a notification.

Endpoint creation generates a 32-byte signing secret with a whsec_ prefix. It is shown only once. The examples read it through ANTHROPIC_WEBHOOK_SIGNING_KEY. Implementations must retain the request body in the form required for signature verification.

The page supplies examples for Python, TypeScript, C#, Go, Java, PHP and Ruby, but does not specify minimum SDK versions. Python verification uses the anthropic[webhooks] installation extra. C# requires a separate Standard Webhooks library for verification.

How delivery works

A webhook is an HTTP notification containing an event envelope rather than the complete changed resource. The top-level id identifies the event, created_at records when it occurred, and data contains the event type, resource ID, organization ID and workspace ID. The handler switches on data.type and normally fetches the resource by data.id to obtain current state.

Every delivery includes webhook-id, webhook-timestamp and webhook-signature headers. SDK verification helpers validate the signature and reject payloads whose delivery timestamp is more than five minutes old. Retries receive a newly generated delivery timestamp; use the payload's created_at to determine when the event occurred.

The top-level event.id remains the same across retries and matches webhook-id, making it the duplicate-detection key. Arrival order is not guaranteed. Deletion events are terminal notifications because the deleted object is no longer available to fetch. Any 2xx response acknowledges delivery.

Setup guidance

In the Claude Console, select the intended workspace and open [https://platform.claude.com/settings/workspaces/default/webhooks]. Register the public HTTPS URL, choose event types and securely retain the signing secret. Subscribe before events are needed: adding a subscription later does not deliver earlier events.

Configure ANTHROPIC_WEBHOOK_SIGNING_KEY and verify deliveries before acting on them. Most documented SDKs provide an unwrap helper, named Unwrap in Go. The C# SDK lacks this helper: verify with a Standard Webhooks library, then deserialize into UnwrapWebhookEvent.

The TypeScript example uses express.raw() rather than express.json() because signature verification depends on the original request bytes. After verification, handle the subscribed data.type values, retrieve resources where applicable and return a 2xx acknowledgment.

Example use

For an application that alerts a person when an agent needs input, the documented pattern is to subscribe to session.status_idled, verify the incoming notification and retrieve the session using event.data.id. The application can then use the retrieved state to decide what notification to send.

The Python examples demonstrate verification in a Flask route and session retrieval through client.beta.sessions.retrieve. The notify_user function is illustrative application code that the developer must supply. An idle session may be awaiting a tool permission or another message; it does not by itself mean the work finished. These examples were not executed.

Assessment & evidence

Delivery and coverage limits

Anthropic makes up to three delivery attempts per endpoint and event, using jittered exponential backoff between 5 and 120 seconds. Failures that immediately disable the endpoint are not retried. After the final failed attempt, the event is dropped without a loss notification. Events emitted without an active subscription, including while an endpoint is disabled, are not replayed.

A 3xx response or resolution to a non-public IP disables an endpoint immediately. Sustained uninterrupted delivery failures can also disable it, but the duration threshold is unspecified. One 2xx response resets that failure window. After resolving the problem, an endpoint can be re-enabled in Console; missed events remain unreplayed.

Lifecycle details can affect application logic. Child-thread termination events exclude the primary thread, whose termination appears as session.status_terminated. A subagent that finishes normally goes idle, while advisor and workflow threads have different termination rules. No-op environment updates and repeated archival of an already archived environment or memory store emit nothing. Deleting a memory store emits one store event rather than events for each deleted memory.

Integration implications

The documented design treats a notification as a prompt to inspect current state. Fetching the resource avoids treating an old retry as a fresh snapshot, but it also means a notification does not preserve the resource's complete state at the time of the event. Reconciliation can check current state; this page does not establish a replayable history of every missed transition.

Applications should distinguish related signals carefully. Session event-stream names differ from some webhook names: session.status_idle corresponds to session.status_idled, and session.status_running corresponds to session.status_run_started. Likewise, deployment_run.succeeded means session creation succeeded, rather than agent work succeeding.

Endpoint migration needs explicit configuration changes. The page recommends creating a new endpoint with the new URL and subscriptions, then deleting the old one. The replacement has its own signing secret, so the receiver configuration must change too; an HTTP redirect would disable the old endpoint.

Related approaches

The page identifies the server-sent events stream as the channel for most real-time session interactions. Webhooks serve major lifecycle changes. This supports choosing the stream for an actively connected session interface and webhooks for asynchronous notifications, although the linked streaming documentation is outside the supplied evidence.

Listing or fetching resources through the API is the documented reconciliation approach when delivery completeness matters. Webhooks can trigger retrieval without constant polling, while API reconciliation addresses missed notifications. The page supplies no measured latency, cost or reliability comparison between these approaches.

Evidence and confidence

The Subscribe to webhooks documentation [https://platform.claude.com/docs/en/managed-agents/webhooks.md] provides event tables, endpoint requirements, signature-verification examples, delivery rules, and availability and data-handling notices.

The documentation supports the described event types, configuration requirements, verification helpers and delivery rules. No code, SDK, endpoint, signature check, delivery sequence or recovery behavior was run or tested. Linked pages were not included, so their contents cannot establish additional functionality, terms or guarantees.

Access & freshness

Costs

Webhook pricing is unknown from this page. It gives no separate delivery price, included allowance, account-plan requirement or worked cost example. It also does not establish that webhook delivery is free.

Potential implementation costs include hosting the HTTPS handler, retaining duplicate-handling state and making follow-up resource retrieval or reconciliation calls. These are architectural considerations, not documented charges or measured costs. The Managed Agents budget event describes a session pause condition, not a price schedule.

Rights and data handling

The supplied page does not state a documentation license, a license for its code examples or redistribution terms. Permission to redistribute the captured page or examples is therefore not established by this evidence. Commercial service terms are also not supplied.

The data-handling notice says Managed Agents is not eligible for zero data retention, except for self-hosted Managed Agents. Sessions are stateful, and transcripts persist until deleted. Conditions for the self-hosted exception are not explained on this page.

The page states that Managed Agents and all its sub-features are not eligible for HIPAA. Its applicable-endpoint notice lists /v1/agents, /v1/sessions and /v1/environments.

Freshness

The page was captured on 23 November 2026 at 11:22:48.441 UTC. It describes beta availability on every model through the Claude API and Claude Platform on AWS. The supplied text gives no publication or last-updated date.

The date in managed-agents-2026-04-01 identifies the required beta header; it does not establish the page's publication date. Availability, SDK compatibility and delivery behavior after the capture are unknown. No independent current-state verification was performed.

Suggested next steps

Before adopting the integration, confirm current beta access, SDK compatibility, pricing and whether the documented retention and HIPAA limitations fit the application. Identify the required event types and establish subscriptions before relying on notifications.

Implement signature verification against the original request body, duplicate handling using event.id, resource retrieval and API reconciliation appropriate to the application's completeness requirements. Account explicitly for deletion events and distinguish session creation, waiting for input and work completion.

Validate valid, invalid and stale signatures; duplicate and out-of-order delivery; resource deletion; failed acknowledgments; and endpoint disablement and recovery. Monitor endpoint status and plan replacement-secret handling when moving URLs. These are recommended validation tasks, not completed tests.

Evidence for this report

selected-page.txtselected · checked 2026-11-23