One read of Claude Developer Platformapi-20261203T220715Z
3 pages moved out of 996 read.
Pages moved
3
significant first
Pages read
996
in this capture
Captured
22:07 UTC
Corpus hash
cff94002bfa8
corpus-hash
What this read moved
1-3 of 3manage-claude/inference-hooks-endpoint Changed · +4 / -4 lines
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
manage-claude/inference-hooks Changed · +2 / -2 lines
from line 35
3535
3636The Inference hooks system doesn’t keep its own copy of prompt or response content. It stores only your hook configuration and metadata about hook activity, such as verdicts, timestamps, and request identifiers. The Claude product you use stores prompts and responses under its own data retention rules, whether or not hooks are on. For example, a message that a hook blocks on claude.ai stays in the conversation.
3737
38If your AI security server is unreachable, returns an error, or doesn’t respond within the timeout, your organization’s failure handling setting determines the outcome: block the request, or allow it to proceed without inspection. Sustained failures attributable to your server trip a circuit breaker: Anthropic stops contacting it and applies your failure handling setting to every request, then resets the breaker automatically once it detects that your server is returning verdicts again; see [Circuit breaker](https://platform.claude.com/docs/en/manage-claude/inference-hooks-configuration#circuit-breaker).
38If your AI security server is unreachable, returns an error, or doesn’t respond within the timeout, your organization’s failure handling setting determines the outcome: block the request, or allow it to proceed without inspection. Sustained failures attributable to your server trip a circuit breaker. Anthropic then stops contacting your server and applies your failure handling setting to every request. The breaker can reset automatically when your server returns verdicts again; see [Circuit breaker](https://platform.claude.com/docs/en/manage-claude/inference-hooks-configuration#circuit-breaker).
3939
40Enforcement can roll out at your pace, so nobody has to be blocked on day one: shadow mode observes verdicts on live traffic without blocking anything, a rollout percentage inspects a chosen fraction of requests, and exclusions exempt members of chosen roles entirely. See [Configure Inference hooks](https://platform.claude.com/docs/en/manage-claude/inference-hooks-configuration).
40Enforcement can roll out at your pace, so nobody has to be blocked on day one: shadow mode observes verdicts on live traffic without blocking anything, a rollout percentage inspects a chosen fraction of requests, and exclusions exempt only members who are set to **Custom roles** and are assigned a chosen role. See [Configure Inference hooks](https://platform.claude.com/docs/en/manage-claude/inference-hooks-configuration).
4141
4242For the full request and response schemas, signature verification, and operational details, see [Develop an Inference hooks integration](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint).
4343
manage-claude/inference-hooks-configuration Changed · +1 / -1 lines
from line 107
107107
108108## Exclusions
109109
110Under **Who is inspected**, with **Limit by role** turned on, select roles whose members are not covered by Inference hooks: their prompts are never sent to your AI security server. Only custom roles your organization created can be excluded; the built-in roles aren’t offered. Select them in the role selector, whose placeholder reads **Select roles to exclude**, and manage who holds each role from the roles admin page (**Manage roles**); changing exclusions requires identity management permission. The list is empty by default, and with no roles excluded, every governed request is inspected, unless **Inspect** is set to **Only selected roles**.
110Under **Who is inspected**, with **Limit by role** turned on, select the roles to exclude from Inference hooks. A member who is assigned an excluded role is left out of inspection only if that member is set to **Custom roles**. Only custom roles your organization created can be excluded; the built-in roles aren’t offered. Select them in the role selector, whose placeholder reads **Select roles to exclude**, and manage who holds each role from the roles admin page (**Manage roles**); changing exclusions requires identity management permission. The list is empty by default, and with no roles excluded, every governed request is inspected, unless **Inspect** is set to **Only selected roles**.
111111
112112Exclusion applies to a user’s interactive sessions. Changes to the exclusion list are recorded in your organization’s [Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed) as role permission changes (`rbac_role_permission_added` and `rbac_role_permission_removed`).
113113