n8n
Build automated workflows with distribute and n8n.
Setup
Use the HTTP Request node in n8n to call the distribute REST API:
- Add an HTTP Request node
- Set the base URL to
https://api.distribute.you/v1 - Add a header:
X-API-Key: dist_YOUR_KEY
Example: Create Campaign on Schedule
Method: POST
URL: https://api.distribute.you/v1/campaigns
Headers:
X-API-Key: dist_YOUR_KEY
Content-Type: application/json
Body:
{
"name": "Weekly Outreach",
"workflowSlug": "sales-email-cold-outreach-apex-v4",
"brandUrls": ["https://acme.com"],
"maxBudgetDailyUsd": "10"
}Webhook Trigger
Use the distribute webhook to trigger n8n workflows when events occur (replies received, campaigns completed, etc.). See Webhooks.
API Reference
See the full API Reference for all available endpoints.