Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

files changedbuild-with-claude/files

Nearest release: v2.1.330, 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+29added
Lines−29removed
From line 408 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits35to this page, all time

The whole hunk

from line 408, old and new numbered
/
lines
from line 408
408408 
409409The Files API supports different file types that correspond to different content block types:
410410 
411| File type | MIME type | Content block type | Use case |
412| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- | ------------------ | ---------------------------------- |
413| PDF | `application/pdf` | `document` | Text analysis, document processing |
414| Plain text | `text/plain` | `document` | Text analysis, processing |
415| Images | `image/jpeg`, `image/png`, `image/gif`, `image/webp` | `image` | Image analysis, visual tasks |
416| Datasets, others (see [Upload and analyze your own files](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool#upload-and-analyze-your-own-files)) | Varies | `container_upload` | Data analysis, visualization |
411| File type | MIME type | Content block type | Use case |
412| ----- | ----- | ----- | ----- |
413| PDF | `application/pdf` | `document` | Text analysis, document processing |
414| Plain text | `text/plain` | `document` | Text analysis, processing |
415| Images | `image/jpeg`, `image/png`, `image/gif`, `image/webp` | `image` | Image analysis, visual tasks |
416| Datasets, others (see [Upload and analyze your own files](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool#upload-and-analyze-your-own-files)) | Varies | `container_upload` | Data analysis, visualization |
417417 
418418#### Document blocks
419419 
from line 1034
10341034 
10351035The Files API is out of beta and needs no beta header. Migrating off `files-api-2025-04-14` is optional: requests that send it keep working and keep returning the beta response shapes, so an existing integration keeps working until you change it. Removing the header switches those requests to the shapes documented on this page:
10361036 
1037| | With `files-api-2025-04-14` | Without the header |
1038| ---------------------------------------- | --------------------------------------- | ---------------------------------------------------------------------------- |
1039| List response | `{ data, has_more, first_id, last_id }` | `{ data, next_page }`; pass `next_page` back as the `page` query parameter |
1040| List cursors | `before_id`, `after_id` | `page`, or up to 100 `ids[]` (`before_id` and `after_id` return a 400 error) |
1041| `expires_at` on file objects | Not returned | Always present; `null` when the file has no expiration |
1042| `Content-Type` on the uploaded file part | Required | Optional; the type is detected when omitted |
1037| | With `files-api-2025-04-14` | Without the header |
1038| ----- | ----- | ----- |
1039| List response | `{ data, has_more, first_id, last_id }` | `{ data, next_page }`; pass `next_page` back as the `page` query parameter |
1040| List cursors | `before_id`, `after_id` | `page`, or up to 100 `ids[]` (`before_id` and `after_id` return a 400 error) |
1041| `expires_at` on file objects | Not returned | Always present; `null` when the file has no expiration |
1042| `Content-Type` on the uploaded file part | Required | Optional; the type is detected when omitted |
10431043 
10441044To migrate:
10451045 
from line 1058
10581058 
10591059The table also gives each SDK’s namespace names and where the beta namespace takes `anthropic-beta` values:
10601060 
1061| SDK | Stable namespace | Beta namespace | Beta namespace changed in | `anthropic-beta` values go in |
1062| ---------- | ---------------- | ---------------------------------------------------- | ------------------------- | ----------------------------- |
1063| Python | `client.files` | `client.beta.files` | 1.2.0 | `betas` |
1064| TypeScript | `client.files` | `client.beta.files` | 0.122.0 | `betas` |
1065| C# | `client.Files` | `client.Beta.Files` | 12.44.0 | `Betas` |
1066| Go | `client.Files` | `client.Beta.Files` | 1.68.0 | `Betas` |
1067| Java | `client.files()` | `client.beta().files()` | 2.59.0 | `.addBeta()` |
1068| PHP | `$client->files` | `$client->beta->files` (classes in `Anthropic\Beta`) | 0.45.0 | `betas` |
1069| Ruby | `client.files` | `client.beta.files` | 1.67.0 | `betas` |
1061| SDK | Stable namespace | Beta namespace | Beta namespace changed in | `anthropic-beta` values go in |
1062| ----- | ----- | ----- | ----- | ----- |
1063| Python | `client.files` | `client.beta.files` | 1.2.0 | `betas` |
1064| TypeScript | `client.files` | `client.beta.files` | 0.122.0 | `betas` |
1065| C# | `client.Files` | `client.Beta.Files` | 12.44.0 | `Betas` |
1066| Go | `client.Files` | `client.Beta.Files` | 1.68.0 | `Betas` |
1067| Java | `client.files()` | `client.beta().files()` | 2.59.0 | `.addBeta()` |
1068| PHP | `$client->files` | `$client->beta->files` (classes in `Anthropic\Beta`) | 0.45.0 | `betas` |
1069| Ruby | `client.files` | `client.beta.files` | 1.67.0 | `betas` |
10701070 
10711071For a Files feature that’s in beta, use the beta namespace and pass the feature’s `anthropic-beta` value as the table shows. For example, under a Managed Agents beta header, `scope_id` limits a file list to the files of one session. To use `scope_id`, see [Listing and downloading session files](https://platform.claude.com/docs/en/managed-agents/files#listing-and-downloading-session-files).
10721072 
from line 1140
11401140* Availability: Available
11411141* Usage: Refer to an uploaded file by its `file_id` in a `document`, `image` or `container_upload` block.
11421142 
1143| Status | Cloud platforms |
1144| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1143| Status | Cloud platforms |
1144| ----- | ----- |
11451145| Available | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed), [Microsoft Foundry (hosted on Anthropic)](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
11461146 
11471147#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
from line 1149
11491149* Availability: Available
11501150* Usage: Mount uploaded files in the session’s sandbox as session resources (read-only, under `/mnt/session/uploads`), or refer to a `file_id` in an `image` or `document` block of a `user.message` event. Files the agent writes to `/mnt/session/outputs/` can be downloaded with the Files API.
11511151 
1152| Status | Cloud platforms |
1153| --------- | ----------------------- |
1152| Status | Cloud platforms |
1153| ----- | ----- |
11541154| Available | All supported platforms |
11551155 
11561156### Data handling
from line 1157
11571157 
11581158[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
11591159 
1160| Item | Zero data retention | HIPAA |
1161| ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
1162| Status | Not eligible | Not eligible |
1163| Details | Files retained until explicitly deleted or they reach their configured expiration. [Learn more](https://platform.claude.com/docs/en/build-with-claude/files#data-retention) | — |
1160| Item | Zero data retention | HIPAA |
1161| ----- | ----- | ----- |
1162| Status | Not eligible | Not eligible |
1163| Details | Files retained until explicitly deleted or they reach their configured expiration. [Learn more](https://platform.claude.com/docs/en/build-with-claude/files#data-retention) | — |
11641164 
11651165Applicable endpoints:
11661166 
Feedback