Skip to main content
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

id
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 appropriate Content-Type header matching the file’s MIME type. The Content-Disposition header is set to indicate the original filename.