inference-hooks-file-checks changedmanage-claude/inference-hooks-file-checks
Nearest release: v2.1.337, published under an hour 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+70added
Lines−0removed
From line
—
no hunk to open at
First seen
4 Dec 2026
this site's first read of the page
Recorded edits1to this page, all time
## How a file check works ## What a file check covers ## What a file check doesn’t cover
The whole hunk
70 lines, new page
/
lines
A whole new page. There's nothing to diff it against, so here is what it says.
---
title: File checks (beta)
url: https://platform.claude.com/docs/en/manage-claude/inference-hooks-file-checks
description: Check files that members upload on claude.ai with your AI security server before they're stored.
---
A file check sends the details of a file that a member uploads on claude.ai to your AI security server. It does so before the file is stored or reaches Claude. The request, called a file frame, holds the file’s metadata and sensitivity labels. It also holds the member’s ID and, when available, email address, the app they used, and the conversation ID that the app sent.
File checks are in beta for Claude Enterprise organizations, and some organizations, such as those on a HIPAA-ready Enterprise plan, can’t use them; see [Choose what to check](https://platform.claude.com/docs/en/manage-claude/inference-hooks-configuration#choose-what-to-check).
Security teams can check MIP labels without inspecting the full file. See [Check Microsoft Purview sensitivity labels (MIP labels) without file content](https://platform.claude.com/docs/en/manage-claude/inference-hooks-configuration#check-labels-only).
## How a file check works
With **Check files** and **Enforce verdicts** on, outside shadow mode and inside the rollout percentage, a covered upload goes through these steps:
1. A member attaches a file on claude.ai.
2. If the file is over your organization’s [size limit](https://platform.claude.com/docs/en/manage-claude/inference-hooks-file-checks#what-a-file-check-doesnt-cover), Anthropic refuses it. No frame is sent.
3. Anthropic reads the file’s [sensitivity labels](https://platform.claude.com/docs/en/manage-claude/inference-hooks-configuration#check-labels-only).
4. Anthropic sends a [file frame](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#the-file-frame) to your AI security server. The frame holds the whole file only if **Send file content** is on. The upload waits.
5. Your server returns a verdict within the **File verdict timeout (ms)** that you set.
6. On `allow`, the file proceeds as usual. On `deny`, that upload is refused: Anthropic doesn’t store the file or pass that upload to Claude.
```mermaid
---
config:
flowchart:
nodeSpacing: 20
rankSpacing: 22
wrappingWidth: 100
padding: 10
---
flowchart LR
accTitle: How a file check works
accDescr: A member attaches a file. A file over the size limit is refused. Otherwise Anthropic reads its labels and sends a file frame to your server, which returns a verdict that allows or denies the upload.
s1["1. A member attaches a file"] --> s2["2. Anthropic checks the size limit"]
s2 --> s3["3. Anthropic reads the labels"]
s3 --> s4["4. Anthropic sends a file frame, with content only if configured"]
s4 --> s5["5. Your server returns a verdict"]
s5 --> s6["6. Allow: proceeds. Deny: refused"]
s2 --> refused["Over the limit: refused, no frame sent"]
```
These steps show what happens when your server answers. If it doesn’t, **Failure handling** determines what happens; see [Set up Inference hooks](https://platform.claude.com/docs/en/manage-claude/inference-hooks-configuration#set-up-inference-hooks). File checks use the same endpoint, signing secret, and **Failure handling** setting as prompt checks. [Shadow mode](https://platform.claude.com/docs/en/manage-claude/inference-hooks-configuration#shadow-mode), the rollout percentage, and **Limit by role** apply to them too.
When a file is refused, the member usually sees a message, and the file isn’t sent. They might need to remove it before they can send what they typed. After a deny, the message is usually your server’s `deny_reason` followed by your [custom blocked prompt message](https://platform.claude.com/docs/en/manage-claude/inference-hooks-configuration#custom-blocked-prompt-message). Some screens and older versions of the apps can show a general error or no text instead.
Tell your members that a file’s details go to your server when they attach it, not when they send the message.
## What a file check covers
A file check covers these uploads, including in Claude Desktop and the mobile apps, apart from the cases under [What a file check doesn’t cover](https://platform.claude.com/docs/en/manage-claude/inference-hooks-file-checks#what-a-file-check-doesnt-cover):
* Files that a member attaches in a chat, including a chat in the [unified Claude experience](https://support.claude.com/en/articles/17444462-set-up-and-manage-the-new-unified-claude-experience-for-your-enterprise-organization), or in a project. A plain text or code file that the app reads itself is an exception. For the new version of projects, see the next section.
* Files that a member attaches from a connector and that are stored as files, such as images.
* Project documents that a member saves, or that Claude Code or Cowork on a member’s computer writes while it’s signed in with the member’s account.
* Files, such as a spreadsheet, that Claude saves to a project from the environment where it runs code. This doesn’t include project documents that Claude writes there.
An upload that this page doesn’t list might not be checked. Zero data retention and customer-managed keys don’t change how file checks work.
## What a file check doesn’t cover
A file check covers some uploads on claude.ai, and it’s not a hard boundary. It doesn’t cover every Claude product or every way that content reaches Claude. These aren’t checked, or aren’t always checked:
* **Products and screens other than chats and projects.** Claude Code, Cowork, cloud sessions (including a chat that continues as one), [the new version of projects](https://support.claude.com/en/articles/9517075), the Files API, Claude Tag, and Claude in Chrome.
* **Large files.** In shadow mode or outside the rollout percentage, a covered file over your size limit isn’t refused, and your server gets no frame for it.
* **Content that a member doesn’t upload on claude.ai.** Files that Claude fetches or sends through a connector, or moves from a linked computer. Text that syncs from a connected source, such as Google Drive. Files from Slack, Microsoft Teams, Discord, or email, and meeting content.
* **Files that the app sends as text.** The app can read a plain text or code file itself and send its text with the message, as it usually does in the unified Claude experience. Pasted text and voice text go the same way. This text gets no file check, and it can be stored before your server answers. Only a prompt check can see it, and of a long text it might see only part, or nothing, so keep **Check prompts and tool calls** on. If the app also uploads a copy, a deny of the copy might not stop the text.
A member who sets out to get around the check can do so.
No line in this hunk matches that.