Skip to main content

I cant seem to post from n8n to a community space

Hopefully one of you has done this and can help.
I am attempting to create community posts using the Fluent Community REST API via n8n. I am authenticating using a WordPress Application Password.

I am hitting the endpoint: POST https://hubco.au/wp-json/fluent-community/v2/feeds

The Problem: Despite the target Space existing (ID: 7), the API returns a 422 Unprocessed Entity error with the message: "Please select a valid space to post in.".

My Current JSON Payload:

{

"title": "New Listing Alert",

"message": "Content here...",

"space_id": "7",
"type": "text",

"content_type": "text",

"status": "published"

}

Can anyone here see where Im going wrong ?

Thanks in advance...!

Shahjahan Jewel

You have to give `space` as slug like

"space":"space_slug_here"

Luke Nova

Shahjahan JewelΒ thank you so much

Luke Nova

it went through, thank you very much Shahjahan JewelΒ 

Luke Nova

Hi Shahjahan Jewel,

I am using the REST API (v2/feeds) to programmatically create posts in the community.

I have successfully authenticated as an Admin (using Application Passwords) and can create posts fine. However, all posts are being attributed to the Admin user who owns the API key.

I need to create these posts on behalf of other users (e.g. creating a "Welcome" post attributed to a specific Agency owner).

I checked the documentation here: https://dev.fluentcommunity.co/rest-api/#create-a-post, but the example only shows title, message, and space_id.

My Question: Is there a specific JSON parameter I can pass in the POST body to set the author of the feed?

I have tried the following with no luck:

  • "user_id": 123
  • "author": 123
  • "author_id": 123
  • "post_author": 123

Does the API support setting the author explicitly, or is there a different method (like an "impersonation" header) required to post as a specific user?

Thanks!

Luke Nova

Hey Shahjahan JewelΒ , if you can help on this it would solve my full workflow that I have worked on for just over a month now... (am new to n8n!) Ive been using user_id integer ID of the user who created the feed like it says on the API but cant seem to get it posting as anyone else but the api connected user rather than the user_id that Ive set.

Help me, Obi-Wan Kenobi; you're my only hope.