Prerequisites
- n8n instance (cloud or self-hosted)
- AgentDrop API key stored as an n8n credential
Set Up Credentials
- In n8n, go to Credentials and create a new Header Auth credential
- Set the name to
AgentDrop API - Set the header name to
Authorization - Set the header value to
Bearer agd_live_xxxxxxxxxxxxxxxxxxxx
Upload a File
Use the HTTP Request node to send a file to AgentDrop.Node Configuration
Body Parameters
Connecting Binary Data
If the file comes from a previous node (like Read Binary File, Google Drive, or an email attachment):- Set the
filesparameter type to File - In the file field, reference the binary property from the previous node:
{{ $binary.data }}
{{ $json.id }} for downstream nodes.
Download a File
Use another HTTP Request node to download files from a transfer.Node Configuration
The downloaded file is available as binary data for the next node (Write to Disk, Send Email, Google Drive upload, etc.).
Check Transfer Status
Add a conditional check before downloading:Node Configuration
IF Node (After Status Check)
Route to the download node only when the transfer is active.
Example Workflow: Email Attachment Pipeline
A complete workflow that receives email attachments and makes them available to an AI agent:- Method: POST
- URL:
https://api.agent-drop.com/v1/transfers - Body: Form-Data with
sender=email-inbox,recipient=doc-processor,files={{ $binary.attachment_0 }}
{{ $json.id }} as the transfer ID. The receiving agent picks up the file automatically via inbox polling.
Example Workflow: Scheduled Report Distribution
List Transfers
Query your recent transfers to find specific files:
Use a Loop Over Items node to process each transfer in the response array.
Tips
- Store the transfer ID. Use a Set node to save
{{ $json.id }}after upload. You will need it for downloads and status checks. - Use expressions for dynamic recipients. Set the
recipientfield to{{ $json.agent_name }}from your workflow data. - Set short expiry for automated workflows. If your downstream agent processes files within minutes, use
expires_in=1hto keep storage clean. - Error handling. Add an Error Trigger node to catch
413(file too large) and429(rate limited) responses and route to retry or alert nodes.
