Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
One change · api

Get File Metadata changed

api/beta/files/retrieve_metadata

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

The whole hunk

from line 148, old and new numbered
/
lines
from line 148
148148 
149149 default: false
150150 
151 - `expires_at: optional string or null`
152 
153 RFC 3339 datetime string representing when the file will expire and become unavailable for download. Null if the file does not expire. For files uploaded with `expires_in_seconds`, this is the upload time plus that value.
154 
155 format: date-time
156 
151157 - `scope: optional BetaFileScope or null`
152158 
153159 The scope of this file, indicating the context in which it was created (e.g., a session).
from line 171
165171```bash
166172curl https://api.anthropic.com/v1/files/$FILE_ID \
167173 -H 'anthropic-version: 2023-06-01' \
168 -H 'anthropic-beta: files-api-2025-04-14' \
169174 -H "X-Api-Key: $ANTHROPIC_API_KEY"
170175```
171176 
from line 185
180185 "size_bytes": 102400,
181186 "type": "file",
182187 "downloadable": false,
188 "expires_at": "2025-05-15T18:37:24.100435Z",
183189 "scope": {
184190 "id": "id",
185191 "type": "session"