n8n Integration
Upload-Post provides seamless integration with n8n for automated video publishing workflows. This guide walks you through connecting your Upload-Post account with n8n.
Getting Started with Upload-Post
- Create an account or log in to your existing Upload-Post account
- Navigate to the "API Keys" section
- Generate an API key for your n8n integration
API Configuration
For n8n integration, you'll need to configure an HTTP Request node with the following parameters:
Endpoint: https://api.upload-post.com/api/upload
Method: POST
Headers: Authorization: Apikey your-api-key-here
n8n Workflow Configuration
Configure your n8n HTTP Request node with these parameters:
Field | Value | Required |
---|---|---|
title | Your video title | Optional |
user | Your username | Required |
platform[] | tiktok | Required |
video | Binary file | Required |
Node Configuration Steps:
- Add an HTTP Request Node to your workflow
- Configure the node settings:
- Method: POST
- URL:
https://api.upload-post.com/api/upload
- Headers:
Authorization: Apikey [YOUR_API_KEY]
- Body: Set to
multipart/form-data
and add the required fields
Complete JSON Node Configuration
Below is the complete JSON configuration for the HTTP Request node in n8n:
{
"parameters": {
"method": "POST",
"url": "https://api.upload-post.com/api/upload",
"authentication": "none",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Apikey YOUR_API_KEY_HERE"
}
]
},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "user",
"value": "YOUR_USERNAME"
},
{
"name": "title",
"value": "= $input.item.title ? $input.item.title : 'My awesome video'"
},
{
"name": "platform[]",
"value": "tiktok"
}
]
},
"options": {
"redirect": {
"redirect": true
},
"proxy": {
"proxy": false
},
"timeout": 10000
},
"sendQuery": false,
"contentType": "multipart-form-data",
"queryParameterArrays": "indices",
"bodyContentType": "multipart-form-data",
"bodyParameterArrays": "indices",
"formBinaryData": {
"video": "={{$binary.data}}"
}
},
"name": "Upload Video to TikTok",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4,
"position": [
860,
300
],
"id": "98a25a44-b7fb-41e3-8b8b-3d33c5c6ea65"
}
For Instagram Uploads
To upload to Instagram instead, change the platform value:
"bodyParameters": {
"parameters": [
{
"name": "user",
"value": "YOUR_USERNAME"
},
{
"name": "title",
"value": "= $input.item.title ? $input.item.title : 'My awesome video'"
},
{
"name": "platform[]",
"value": "instagram"
}
]
}
Uploading to Multiple Platforms
To upload to both TikTok and Instagram simultaneously:
"bodyParameters": {
"parameters": [
{
"name": "user",
"value": "YOUR_USERNAME"
},
{
"name": "title",
"value": "= $input.item.title ? $input.item.title : 'My awesome video'"
},
{
"name": "platform[]",
"value": "tiktok"
},
{
"name": "platform[]",
"value": "instagram"
}
]
}
Security Best Practices
- Never hardcode your API key directly in the workflow
- Create a Credentials entry in n8n for your Upload-Post API key
- Reference the credential in your HTTP Request node
- For workflows that will be shared, export without credentials
- Consider using environment variables or n8n's credential store
Example Workflow: AI-powered Social Media Publisher
This workflow automates video publishing with AI-generated descriptions:
- Google Drive Trigger: Monitors a folder for new videos
- OpenAI Transcription: Extracts audio and converts to text
- OpenAI Description Generator: Creates engaging descriptions
- Upload-Post HTTP Request: Uploads to multiple platforms
- Error Handling: Sends notifications on completion/errors
This workflow is available as a template: View template on n8n.io
Need Assistance?
For additional help with your n8n integration, contact our support team.