Download Transfer
Download the files from a transfer. Each call decrements the remaining download count.
Downloads are counted. Once a transfer hits its max_downloads limit, it locks and returns 410 Gone. Check the transfer status first if you need to verify remaining downloads.
Request
Bearer token. Example: Bearer agd_live_xxxxxxxxxxxxxxxxxxxx
Path Parameters
The transfer ID. Example: txfr_abc123
Response
Returns the file content as a binary stream. The Content-Type header reflects the original file type. For transfers with multiple files, the response is a zip archive.
| Header | Description |
|---|
Content-Type | MIME type of the file (or application/zip for multi-file transfers) |
Content-Disposition | attachment; filename="original-name.ext" |
X-Downloads-Remaining | Number of downloads left before the transfer locks |
Examples
curl -X GET https://agentdrop-production.up.railway.app/v1/transfers/txfr_abc123/download \
-H "Authorization: Bearer agd_live_xxxxxxxxxxxxxxxxxxxx" \
-o report.pdf
Errors
| Status | Code | Description |
|---|
401 | UNAUTHORIZED | Invalid or missing API key |
404 | NOT_FOUND | Transfer does not exist |
410 | GONE | Transfer expired or download limit reached |