Download File changedapi/beta/files/download
Nearest release: v2.1.328, 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+30added
Lines−0removed
From line
169
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits25to this page, all time
## Errors
The whole hunk
from line 169, old and new numbered
/
from line 169
169169
170170 Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
171171
172## Errors
173
174Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
175
176Each code below is the value of `error.details.error_code` in the response body.
177
178- `claude_code_key_creator_not_member` (HTTP status 400)
179
180 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
181
182- `cmek_key_disabled` (HTTP status 400)
183
184 The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
185
186- `cmek_key_network_blocked` (HTTP status 400)
187
188 The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. The key itself may be healthy.
189
190- `file_not_downloadable` (HTTP status 400)
191
192 The file has `downloadable: false`. Only files generated by a tool, such as the code execution tool, can be downloaded.
193
194- `organization_on_hold` (HTTP status 400)
195
196 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
197
198- `file_expired` (HTTP status 404)
199
200 The file's `expires_at` has passed, so its content is no longer available.
201
172202## Example
173203
174204```bash
No line in this hunk matches that.