[TUTORIAL] Auto-Posting Threads to XenForo 2.x via REST API & n8n

[TUTORIAL] Auto-Posting Threads to XenForo 2.x via REST API & n8n

Welcome to Criminalz!

Join our global tech community to discuss cybersecurity, artificial intelligence, and code development. Register with us to connect, share insights, and private message with other developers and researchers.

SignUp Now!

JackaL

友一人
Joined
Sep 3, 2026
Messages
341
Reaction score
61
[TUTORIAL] Auto-Posting Threads to XenForo 2.x via REST API & n8n

You do not need to buy expensive XenForo auto-poster add-ons. XenForo 2.x has a built-in REST API that allows you to automatically create threads, post replies, and manage users using free workflow tools like n8n or Make.com.



Step 1: Enabling the XenForo API
  1. Go to your XenForo Admin Control Panel.
  2. Navigate to Setup > API keys.
  3. Create a new Super User API key. Check the scopes for node:read and thread:write.
  4. Copy the generated API Key. Keep it secret.

Step 2: The HTTP Request in n8n
In your n8n workflow, add an "HTTP Request" node. Configure it to send a POST request to your forum to create a new thread.

JSON:
// n8n HTTP Request Configuration
{
  "Method": "POST",
  "URL": "https://yourforum.com/api/threads/",
  "Authentication": "Header Auth",
  "Headers": {
    "XF-Api-Key": "YOUR_API_KEY",
    "Content-Type": "application/x-www-form-urlencoded"
  },
  "Body": {
    "node_id": 12, // The ID of the category you want to post in
    "title": "Automated Daily Crypto Update",
    "message": "Here is the parsed data for today..."
  }
}

Pro Tip: You can connect an RSS Feed node before this HTTP Request node to automatically pull news from other sites and publish them instantly to your XenForo nodes.
 
Back
Top