curl https://api.getagentdrive.com/v0/files/file_xyz789/download \
-H "Authorization: Bearer YOUR_API_KEY" \
-o report.pdf
Files
Download File
Download the raw content of a file.
GET
/
v0
/
files
/
{id}
/
download
curl https://api.getagentdrive.com/v0/files/file_xyz789/download \
-H "Authorization: Bearer YOUR_API_KEY" \
-o report.pdf
Path Parameters
string
required
The unique identifier of the file.
curl https://api.getagentdrive.com/v0/files/file_xyz789/download \
-H "Authorization: Bearer YOUR_API_KEY" \
-o report.pdf
Response
Returns the raw file content with the appropriateContent-Type header matching the file’s MIME type. The Content-Disposition header is set to indicate the original filename.