files changedbuild-with-claude/files
Nearest release: v2.1.318, published 4 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+8added
Lines−8removed
From line
68
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits30to this page, all time
The whole hunk
from line 68, old and new numbered
/
from line 68
6868 ```bash cURL
6969 curl -X POST https://api.anthropic.com/v1/files \
7070 -H "x-api-key: $ANTHROPIC_API_KEY" \
71 -H "anthropic-version: 2023-06-01" \
71 -H "anthropic-version: 2026-10-21" \
7272 -F "file=@/path/to/document.pdf"
7373 ```
7474
from line 194
194194 ```bash cURL
195195 curl -X POST https://api.anthropic.com/v1/messages \
196196 -H "x-api-key: $ANTHROPIC_API_KEY" \
197 -H "anthropic-version: 2023-06-01" \
197 -H "anthropic-version: 2026-10-21" \
198198 -H "content-type: application/json" \
199199 -d '{
200200 "model": "claude-opus-5-5",
from line 467
467467 curl https://api.anthropic.com/v1/messages \
468468 -H "content-type: application/json" \
469469 -H "x-api-key: $ANTHROPIC_API_KEY" \
470 -H "anthropic-version: 2023-06-01" \
470 -H "anthropic-version: 2026-10-21" \
471471 -d @- <<EOF
472472 {
473473 "model": "claude-opus-5-5",
from line 702
702702 ```bash cURL
703703 curl https://api.anthropic.com/v1/files \
704704 -H "x-api-key: $ANTHROPIC_API_KEY" \
705 -H "anthropic-version: 2023-06-01"
705 -H "anthropic-version: 2026-10-21"
706706 ```
707707
708708 ```bash CLI
from line 775
775775 ```bash cURL
776776 curl "https://api.anthropic.com/v1/files/$FILE_ID" \
777777 -H "x-api-key: $ANTHROPIC_API_KEY" \
778 -H "anthropic-version: 2023-06-01"
778 -H "anthropic-version: 2026-10-21"
779779 ```
780780
781781 ```bash CLI
from line 831
831831 ```bash cURL
832832 curl -X DELETE "https://api.anthropic.com/v1/files/$FILE_ID" \
833833 -H "x-api-key: $ANTHROPIC_API_KEY" \
834 -H "anthropic-version: 2023-06-01"
834 -H "anthropic-version: 2026-10-21"
835835 ```
836836
837837 ```bash CLI
from line 878
878878 ```bash cURL
879879 curl -X GET "https://api.anthropic.com/v1/files/$FILE_ID/content" \
880880 -H "x-api-key: $ANTHROPIC_API_KEY" \
881 -H "anthropic-version: 2023-06-01" \
881 -H "anthropic-version: 2026-10-21" \
882882 -o downloaded_file.txt
883883 ```
884884
from line 992
992992
993993## Migrate from `files-api-2025-04-14`
994994
995The Files API is out of beta and needs no beta header. Migrating off `files-api-2025-04-14` is optional: requests that still 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:
995The 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:
996996
997997| | With `files-api-2025-04-14` | Without the header |
998998| ---------------------------------------- | --------------------------------------- | ---------------------------------------------------------------------------- |
No line in this hunk matches that.