GET
/v1/agent/{id}/files/{file_id}/contentDownload Agent Response FileDownload the raw bytes of a file the response delivered with the share_file tool. The file_id comes from the file list endpoint and is distinct from the response id. The response streams raw bytes, not JSON, with a Content-Type matching the file and a Content-Disposition: attachment header carrying the original filename.
Parameters
idstringpathrequiredResponse id (`resp_<...>`)
file_idstringpathrequiredFile id from the file list endpoint
Responses
string · binary
"binary"object
errorobjectError information returned when a request fails
Show child attributes
codestringError code
messagestringrequiredHuman-readable error message
typestringError type category
{
"error": {
"code": "string",
"message": "string",
"type": "string"
}
}