Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Files changedapi/files

Nearest release: v2.1.309, published 2 hours after 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+10added
Lines−10removed
From line 96 where the diff opens
First seen 20 Aug 2026 this site's first read of the page
Recorded edits8to this page, all time

The whole hunk

from line 96, old and new numbered
/
lines
from line 96
9696```bash
9797curl https://api.anthropic.com/v1/files \
9898 -H 'Content-Type: multipart/form-data' \
99 -H 'anthropic-version: 2023-06-01' \
100 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
99 -H 'anthropic-version: 2026-10-21' \
100 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
101101 -F 'file=@/path/to/file'
102102```
103103 
from line 216
216216 
217217```bash
218218curl https://api.anthropic.com/v1/files \
219 -H 'anthropic-version: 2023-06-01' \
220 -H "X-Api-Key: $ANTHROPIC_API_KEY"
219 -H 'anthropic-version: 2026-10-21' \
220 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
221221```
222222 
223223#### Response (200)
from line 270
270270 
271271```bash
272272curl https://api.anthropic.com/v1/files/$FILE_ID/content \
273 -H 'anthropic-version: 2023-06-01' \
274 -H "X-Api-Key: $ANTHROPIC_API_KEY"
273 -H 'anthropic-version: 2026-10-21' \
274 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
275275```
276276 
277277## Get File Metadata
from line 356
356356 
357357```bash
358358curl https://api.anthropic.com/v1/files/$FILE_ID \
359 -H 'anthropic-version: 2023-06-01' \
360 -H "X-Api-Key: $ANTHROPIC_API_KEY"
359 -H 'anthropic-version: 2026-10-21' \
360 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
361361```
362362 
363363#### Response (200)
from line 422
422422```bash
423423curl https://api.anthropic.com/v1/files/$FILE_ID \
424424 -X DELETE \
425 -H 'anthropic-version: 2023-06-01' \
426 -H "X-Api-Key: $ANTHROPIC_API_KEY"
425 -H 'anthropic-version: 2026-10-21' \
426 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
427427```
428428 
429429#### Response (200)
Feedback