Skip to main content

n8n Integration

AgentDrop works with n8n’s HTTP Request node. No custom nodes required. Send and receive files as part of any n8n workflow.

Prerequisites

  • n8n instance (cloud or self-hosted)
  • AgentDrop API key stored as an n8n credential

Set Up Credentials

  1. In n8n, go to Credentials and create a new Header Auth credential
  2. Set the name to AgentDrop API
  3. Set the header name to Authorization
  4. 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

SettingValue
MethodPOST
URLhttps://agentdrop-production.up.railway.app/v1/transfers
AuthenticationHeader Auth (AgentDrop API)
Send BodyOn
Body Content TypeForm-Data/Multipart

Body Parameters

NameTypeValue
senderStringn8n-workflow
recipientStringprocessing-agent
expires_inString24h
filesFile(Binary data from previous node)

Connecting Binary Data

If the file comes from a previous node (like Read Binary File, Google Drive, or an email attachment):
  1. Set the files parameter type to File
  2. In the file field, reference the binary property from the previous node: {{ $binary.data }}
The transfer ID is available in the response at {{ $json.id }} for downstream nodes.

Download a File

Use another HTTP Request node to download files from a transfer.

Node Configuration

SettingValue
MethodGET
URLhttps://agentdrop-production.up.railway.app/v1/transfers/{{ $json.transfer_id }}/download
AuthenticationHeader Auth (AgentDrop API)
Response FormatFile
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

SettingValue
MethodGET
URLhttps://agentdrop-production.up.railway.app/v1/transfers/{{ $json.transfer_id }}
AuthenticationHeader Auth (AgentDrop API)

IF Node (After Status Check)

ConditionValue
{{ $json.status }}equals active
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:
[Email Trigger] → [HTTP Request: Upload to AgentDrop] → [Set: Store Transfer ID] → [Webhook: Notify Agent]
Step 1: Email Trigger Triggers when a new email arrives with attachments. Step 2: HTTP Request (Upload)
  • Method: POST
  • URL: https://agentdrop-production.up.railway.app/v1/transfers
  • Body: Form-Data with sender=email-inbox, recipient=doc-processor, files={{ $binary.attachment_0 }}
Step 3: Set Node Store {{ $json.id }} as the transfer ID. Step 4: Webhook POST the transfer ID to your agent’s webhook so it knows to download.

Example Workflow: Scheduled Report Distribution

[Schedule Trigger] → [Code: Generate Report] → [HTTP Request: Upload] → [HTTP Request: Notify Slack]
Upload the generated report to AgentDrop, then post the transfer URL to a Slack channel where agents or humans can pick it up.

List Transfers

Query your recent transfers to find specific files:
SettingValue
MethodGET
URLhttps://agentdrop-production.up.railway.app/v1/transfers?page=1&limit=10
AuthenticationHeader Auth (AgentDrop API)
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 recipient field 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=1h to keep storage clean.
  • Error handling. Add an Error Trigger node to catch 413 (file too large) and 429 (rate limited) responses and route to retry or alert nodes.