inference-hooks-endpoint changedmanage-claude/inference-hooks-endpoint
Nearest release: v2.1.336, published 3 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+4added
Lines−4removed
From line
166
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits24to this page, all time
The whole hunk
from line 166, old and new numbered
/
from line 166
166166
167167| Field | Type | Description |
168168| ----- | ----- | ----- |
169| `type` | string | The hook event: `"prompt"` or `"tool_call"` (see [The tool call frame](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#the-tool-call-frame)). Other event types will be introduced in the future, so handle an unrecognized value gracefully (see [Forward compatibility](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#forward-compatibility)). |
169| `type` | string | The hook event: `"prompt"` or `"tool_call"` (see [The tool call frame](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#the-tool-call-frame)). Handle an unrecognized value gracefully (see [Forward compatibility](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#forward-compatibility)). |
170170| `request_id` | string | Opaque per-frame identifier for correlation. Equals the `webhook-id` header. |
171171| `tenant_id` | string or null | Opaque identifier for the organization the request belongs to. |
172172| `actor` | object | The principal the request is attributed to, discriminated on `type` (`"user"` is the only value sent today): `id` (a tagged identifier, stable across requests for the same account) and `email_address` (when available). Both `id` and `email_address` can be null. |
from line 755
755755
756756Sustained webhook failures attributable to your AI security server trip a circuit breaker that stops enforcement: Anthropic stops contacting your server, and failure handling applies to every request.
757757
758Starting 3 minutes after the trip, Anthropic checks whether your server has recovered. At most about once per minute, it sends your server the same synthetic test request that **Test connection** sends (`source.application` is `config-test`). The request is signed like any other request and carries no user content. Respond to it normally. A valid verdict, allow or deny, resets the breaker and enforcement resumes; a webhook failure leaves the breaker tripped, and the checks continue. An administrator can also reset the breaker at any time, and administrator configuration changes stop the automatic checks; see [Circuit breaker in Configure Inference hooks](https://platform.claude.com/docs/en/manage-claude/inference-hooks-configuration#circuit-breaker).
758Starting 3 minutes after the trip, Anthropic checks whether your server has recovered. At most about once per minute, it sends your server the same synthetic test request that **Test connection** sends (`source.application` is `config-test`). The request is signed like any other request and carries no user content. Respond to it normally. A valid verdict, allow or deny, resets the breaker and enforcement resumes; a webhook failure leaves the breaker tripped, and the checks continue. An Owner can turn **Enforce verdicts** back on at any time. Configuration changes by an Owner stop the automatic checks; see [Circuit breaker in Configure Inference hooks](https://platform.claude.com/docs/en/manage-claude/inference-hooks-configuration#circuit-breaker).
759759
760760Prompt frames and tool call frames share one circuit breaker, and failures on either count toward it.
761761
from line 773
773773
774774The protocol grows without breaking correctly written servers. Your server must ignore:
775775
776* Unknown top-level fields on either frame.
776* Unknown fields anywhere in a frame.
777777* Unknown keys in `metadata`.
778778* New `source.application` values.
779779* New `actor.type` values. `actor` is a union discriminated on `type`, and `"user"` is the only kind sent today; a future kind guarantees only that `type` is present.
from line 782
782782
783783Never reject a request because of an unrecognized block type or field; read the fields you know and skip the rest.
784784
785Other hook event types will be introduced in the future. A new event type is an addition your server can’t handle by skipping a field: the request still needs a verdict. When the top-level `type` is a value you don’t recognize, return an allow verdict rather than an error status; an error response is a [webhook failure](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#webhook-failures), and sustained failures trip the [circuit breaker](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#circuit-breaker).
785A frame of a new event type is an addition your server can’t handle by skipping a field: the request still needs a verdict. When the top-level `type` is a value you don’t recognize, return an allow verdict rather than an error status; an error response is a [webhook failure](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#webhook-failures), and sustained failures trip the [circuit breaker](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#circuit-breaker).
786786
787787## Design your integration
788788
No line in this hunk matches that.