Skip to main content

Connect API (REST)

The Octopus Connect API is a server-to-server REST API. Your backend uses it to read your community's content and, when your API key has the right permissions, to write to it: publish posts, comments and replies in the name of your community team, create and edit the profiles your team publishes with (profiles linked to your Dashboard), schedule posts, moderate and curate content, and notify the community about a post.

warning

The Connect API key is a secret: anyone who holds it can act on your community. Call the Connect API from your server-side code only, never from a browser, a mobile app or any other client where the key would be exposed.

What you can do​

You want to…Permission neededGuide
Read feeds, posts, comments, replies, profiles, topics and translationsnone, any valid keyRead content
Create and edit the profiles linked to your Dashboard (your team, brand accounts), set their admin tagPROFILE_MANAGEMENTManage team profiles
Publish posts, bridge posts, comments and replies, react, vote, delete, in the name of a Dashboard-linked profileCONTENT_WRITEPublish content
Queue posts for a later date in the name of a Dashboard-linked profile, then edit or cancel themSCHEDULINGSchedule posts
Hide or moderate any content, ban or hide any memberMODERATIONModerate and curate
Rank or pin a post, or move it to another topicCURATIONModerate and curate
Notify the whole community about a postNOTIFYModerate and curate

Reading only needs a valid key. Each write endpoint also needs a permission on the key: see Authentication and permissions.

Base URL and versioning​

All requests go to:

https://connect.octopuscommunity.com/v1

The major version is part of the path. It only changes for a breaking redesign, and the following versions are available:

VersionStatus
v1available

Within v1, the API grows by backward-compatible additions (new endpoints, new optional fields). The Changelog lists them, with the release number shown on the API reference.

Quickstart​

  1. Get a key. In your Octopus Community Dashboard, open Community settings > Keys & secrets: your Connect API keys are listed there. If you have none yet, or need different permissions, send a request from the same card. See Get a Connect API key.

  2. Check what the key can do. Every key can call GET /v1/config, which returns its write permissions and the limits the endpoints enforce:

    export CONNECT_API_KEY="<YOUR_CONNECT_API_KEY>"

    curl https://connect.octopuscommunity.com/v1/config \
    --header "Authorization: Bearer $CONNECT_API_KEY"
  3. Read something. List the topics of your community, then the latest posts of one of them:

    curl https://connect.octopuscommunity.com/v1/messages/topics \
    --header "Authorization: Bearer $CONNECT_API_KEY"

    curl "https://connect.octopuscommunity.com/v1/feeds/posts?topicId=<TOPIC_ID>&pageSize=5" \
    --header "Authorization: Bearer $CONNECT_API_KEY"
  4. Write something (needs PROFILE_MANAGEMENT and CONTENT_WRITE). Create a Dashboard-linked profile for your community team, then publish a post as that profile:

    curl https://connect.octopuscommunity.com/v1/users \
    --header "Authorization: Bearer $CONNECT_API_KEY" \
    --header "Content-Type: application/json" \
    --data '{"nickname": "The Recipe Team", "adminTag": true}'
    # → 201 {"userId": "<USER_ID>", "nickname": "The Recipe Team", "adminTag": true, ...}

    curl https://connect.octopuscommunity.com/v1/messages/posts \
    --header "Authorization: Bearer $CONNECT_API_KEY" \
    --header "Content-Type: application/json" \
    --data '{"userId": "<USER_ID>", "topicId": "<TOPIC_ID>", "text": "Welcome to the community!"}'

    A profile created with POST /v1/users is linked to your Dashboard, which every write in a member's name requires: see Linked profiles.

Reference and tooling​

These guides explain how the API works and how its endpoints fit together. For every field, parameter and response of every endpoint, use the API reference (ReDoc), or import the Postman collection.

Where to go next​