Upload File changedapi/beta/files/upload
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+2added
Lines−2removed
From line
216
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits19to this page, all time
The whole hunk
from line 216, old and new numbered
/
from line 216
216216```bash
217217curl https://api.anthropic.com/v1/files \
218218 -H 'Content-Type: multipart/form-data' \
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 -F 'file=@/path/to/file'
222222```
223223
No line in this hunk matches that.