n8n
Automate social media posting with the official RelayAPI node for n8n. Post to 21 platforms with visual workflows.
Automate social media publishing across 21 platforms using the official RelayAPI node for n8n. Build visual workflows with dedicated operations for posts, accounts, media, and webhooks.
Quick Reference
| Detail | Value |
|---|---|
| Node Package | n8n-nodes-relayapi |
| npm | npmjs.com/package/n8n-nodes-relayapi |
| Auth Method | API Key (Bearer token) |
| Works On | n8n Cloud and self-hosted |
Available Operations
| Resource | Operations |
|---|---|
| Posts | Create, Get, List, Update, Delete |
| Accounts | List, Get, Health Check |
| Media | Presign URL, List |
| Usage | Get plan and usage stats |
| Triggers | Post Published, Post Failed, Post Scheduled, Post Recycled, Comment Received, Message Received |
Setup
Install the Node
In n8n, go to Settings > Community Nodes > Install and enter:
n8n-nodes-relayapiFor self-hosted instances, install via npm:
npm install n8n-nodes-relayapiRestart n8n after installation.
Add Your API Key
When you first add a RelayAPI node to a workflow, n8n will prompt you to create a credential.
- Click Create New Credential
- Paste your API key from relayapi.dev under Settings > API Keys
- Click Save
Test the Connection
Add a RelayAPI node, select Usage > Get Usage, and click Execute Node. You should see your plan and usage stats.
Create a Post
- Add a RelayAPI node to your workflow
- Set Resource to Posts, Operation to Create
- Select your Target Accounts from the dropdown
- Enter your post Content
- Set Schedule to
now(publish immediately) or a future timestamp
Webhook Triggers
The RelayAPI Trigger node receives real-time events:
- Add a RelayAPI Trigger node
- Select the events you want (e.g., Post Published, Post Failed)
- Activate the workflow — n8n automatically registers a webhook with RelayAPI
When a matching event fires, the trigger starts your workflow with the event data.
Workflow Examples
Google Sheets Content Calendar
- Schedule Trigger > Run daily at 9am
- Google Sheets > Read next row
- RelayAPI > Create Post with the row's content
RSS Feed to Social Media
- RSS Feed Read > Your blog feed
- Code > Format the post text
- RelayAPI > Create Post to Twitter + LinkedIn
Failed Post Recovery
- RelayAPI Trigger > Post Failed event
- Wait > 5 minutes
- RelayAPI > Retry the failed post
Links
Found something wrong? Help us improve this page.