Moderate and curate
These endpoints act as your integration, not in the name of a member: they need no linked profile, only the permission of each section.
Hide or show a message
POST /v1/messages/{id}/hide (MODERATION) hides a post, comment or reply, or shows it again: the Dashboard's Hide and Show actions. It works on any member's content.
A hidden message leaves other members' feeds, but nothing is deleted:
- Its author is not told. They still see it, on their profile too.
- Anyone who opens it directly, by its id or a link, still sees it.
- The API returns it with
hidden: true, and the feeds return it only when you passincludeHidden=true. - It can still be commented on, reacted to, voted on, boosted or notified about.
Parameters
id(path): the message's id.hidden(required):truehides the message,falseshows it again.
curl "https://connect.octopuscommunity.com/v1/messages/<MESSAGE_ID>/hide" \
--header "Authorization: Bearer $CONNECT_API_KEY" \
--header "Content-Type: application/json" \
--data '{"hidden": true}'
{"id": "<MESSAGE_ID>", "applied": true}
- Hiding a moderated message lifts its moderation: the latest decision wins, and the message ends up hidden.
hidden: falsenever lifts a moderation: use/moderatefor that.- A message its author deleted stays deleted.
Moderate a message
POST /v1/messages/{id}/moderate (MODERATION) removes a post, comment or reply from the community, or restores it: the Dashboard's Moderate action and its Unban content undo. It works on any member's content.
A moderated message is recorded with a generic reason, "Against Community Rules":
- Other members no longer see it, even by its id or a link.
- Its author sees it replaced by a moderation notice with that reason, and loses the points it earned.
- It can no longer be commented on, reacted to, voted on, boosted or notified about: those calls answer
410 Gone.
Parameters
id(path): the message's id.moderated(required):truemoderates the message,falselifts the moderation.
curl "https://connect.octopuscommunity.com/v1/messages/<MESSAGE_ID>/moderate" \
--header "Authorization: Bearer $CONNECT_API_KEY" \
--header "Content-Type: application/json" \
--data '{"moderated": true}'
{"id": "<MESSAGE_ID>", "applied": true}
moderated: false restores the message and gives its author back the points. It returns the message to its earlier state: a message that was hidden before being moderated is hidden again. A message its author deleted stays deleted.
Ban or unban a member
POST /v1/users/{id}/ban (MODERATION) bans a member or lifts the ban: the Dashboard's Ban user and Unban user actions. A banned member can no longer sign in. The content they already published stays visible, without its author information: createdBy becomes null.
curl "https://connect.octopuscommunity.com/v1/users/<USER_ID>/ban" \
--header "Authorization: Bearer $CONNECT_API_KEY" \
--header "Content-Type: application/json" \
--data '{"ban": true}'
{"id": "<USER_ID>", "applied": true}
Send {"ban": false} to lift the ban.
Hide or show a member
POST /v1/users/{id}/hide (MODERATION) hides a member, or shows them again: the Dashboard's Hide user and Show user actions. It applies to what the member publishes from now on:
hidden: true: the member can still sign in and post, and still sees their own posts, comments and replies, on their profile too. Other members no longer see them in their feeds, and the API returns each of those messages withhidden: true. Content they published before the call is not affected.hidden: false: what they publish from then on appears in the feeds again. The content they published while hidden stays hidden: show each message again withPOST /v1/messages/{id}/hideandhidden: false.
curl "https://connect.octopuscommunity.com/v1/users/<USER_ID>/hide" \
--header "Authorization: Bearer $CONNECT_API_KEY" \
--header "Content-Type: application/json" \
--data '{"hidden": true}'
{"id": "<USER_ID>", "applied": true}
Boost a post
POST /v1/messages/{id}/boost (CURATION) boosts a post in one of two ways, never both in the same call:
- Rank it with
rankAsIfPostedAt: the post ranks in the feed as if it had been posted at that instant. A recent or future instant moves it up, an older one moves it down. - Pin it with end rules, as the Dashboard's Pin does: the post stays at the top of the feeds until it reaches the first of its rules.
Only posts can be boosted (409 otherwise). Each call replaces the previous boost, rules included, whether it was set through the API or from the Dashboard. Send none of the four fields to clear the boost and rank the post by its creation date again.
Parameters
id(path): the post's id.rankAsIfPostedAt(optional): an ISO-8601 instant with seconds (see Dates), between2001-09-09T01:46:40Zand2286-11-20T17:46:39Z. It cannot be combined with the pin rules.endDate(optional, pin rule): when the pin ends for every member, as an ISO-8601 instant with seconds, in the future and no later than2286-11-20T17:46:39Z. After it, newer activity overtakes the post.maxViewsPerUser(optional, pin rule): a whole number from 1 to 50. The pin ends for a member once they have seen the post that many times, counted from the pin onwards. A view is one load of a feed that contains the post.visibleDaysAfterFirstView(optional, pin rule): a whole number, at least 1. The pin ends for a member that many days after they first see the post.
The pin rules can be combined. maxViewsPerUser and visibleDaysAfterFirstView count per member: once a member reaches one, the post leaves that member's feeds (For You and the community feeds) while other members keep it pinned. That member can still open it by link, on its author's profile or in its topic. Views of members who are not logged in are not counted.
curl "https://connect.octopuscommunity.com/v1/messages/<POST_ID>/boost" \
--header "Authorization: Bearer $CONNECT_API_KEY" \
--header "Content-Type: application/json" \
--data '{"endDate": "2026-12-04T18:00:00+01:00", "maxViewsPerUser": 3}'
The response returns the boost as stored, with endDate in UTC. All four fields are null once the boost is cleared:
{
"id": "<POST_ID>",
"rankAsIfPostedAt": null,
"endDate": "2026-12-04T17:00:00Z",
"maxViewsPerUser": 3,
"visibleDaysAfterFirstView": null
}
An invalid value answers 400, with the reason in message, and leaves the post unchanged.
Move a post to another topic
PUT /v1/messages/{id}/topic (CURATION) moves a post, with every comment and reply under it, to another topic of your community. Only posts can be moved (409 otherwise).
curl --request PUT "https://connect.octopuscommunity.com/v1/messages/<POST_ID>/topic" \
--header "Authorization: Bearer $CONNECT_API_KEY" \
--header "Content-Type: application/json" \
--data '{"topicId": "<DESTINATION_TOPIC_ID>"}'
{"id": "<POST_ID>", "topicId": "<DESTINATION_TOPIC_ID>", "moved": true, "commentsAndRepliesMoved": 14}
- The post takes on the commenting rules of its new topic. A post whose comments were closed, moved into a topic that allows comments, has its comments re-opened, and the other way round.
- Moving a post to the topic it is already in answers
200withmoved: falseand changes nothing, so a call that timed out is safe to repeat. - A post with more than 2,000 comments and replies is refused with
409. - A
500means the move may be partly applied, while the post itself is still in its original topic: repeat the same call to complete it.
Notify the community about a post
POST /v1/messages/{id}/notify (NOTIFY) adds an entry pointing at a post to the notification centre of every member of the community, the in-app list members open from the bell icon. Tapping it opens the post. Only posts can be notified about (409 otherwise).
- No push notification is sent and nothing is emailed: members see the entry the next time they open the app.
- It cannot be undone, and it is not idempotent. Every call creates a new notification, so calling twice notifies every member twice. There is no cooldown beyond your key's rate limit.
Parameters
id(path): the post's id.notifications(required): the text to show, by language. Each text is plain text of at most 256 characters (about 115 read comfortably in the list); one overlong text rejects the whole call.- Keys are bare lowercase language codes:
en,fr,pt,de. A regional code such asen-USorpt-BRmatches no member and is ignored. undis required: it is the text shown to every member whose language you did not provide. To publish a single language, send it underund.
- Keys are bare lowercase language codes:
curl "https://connect.octopuscommunity.com/v1/messages/<POST_ID>/notify" \
--header "Authorization: Bearer $CONNECT_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"notifications": {
"und": {"body": "Ask our nutritionist anything, today only"},
"fr": {"body": "Posez vos questions à notre nutritionniste, ce jour seulement"}
}
}'
{"notificationId": "<NOTIFICATION_ID>"}
The notificationId is for your own records and for support requests: no endpoint reads, changes or deletes a notification. Notifications expire after 6 months, and a member's notification centre shows the 100 most recent entries.