Download file content.
Supports two authentication modes:
Returns: File content with appropriate content-type header.
Raises: HTTPException: 401 if authentication fails. HTTPException: 404 if file not found.
cURL
curl --request GET \ --url https://api.example.com/files/{name}/download
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>", "input": "<unknown>", "ctx": {} } ] }
Successful Response