Anthropic
Download file content
Return the content of a file.
Upload a file first, then replace the example file ID with its returned ID.
GET
/anthropic/v1/files/{file_id}/content● SupportedRequest parameters
file_idstring必填path:
Returns
400
Only files produced by the code execution tool can be downloaded; downloading a file you uploaded yourself (purpose user_data) returns 400 invalid_request_error, the same as Anthropic's own API.
Errors follow the Anthropic format — see error codes
Response
HTTP 200
Binary content
No response body is declared.