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.
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 needed | Guide |
|---|---|---|
| Read feeds, posts, comments, replies, profiles, topics and translations | none, any valid key | Read content |
| Create and edit the profiles linked to your Dashboard (your team, brand accounts), set their admin tag | PROFILE_MANAGEMENT | Manage team profiles |
| Publish posts, bridge posts, comments and replies, react, vote, delete, in the name of a Dashboard-linked profile | CONTENT_WRITE | Publish content |
| Queue posts for a later date in the name of a Dashboard-linked profile, then edit or cancel them | SCHEDULING | Schedule posts |
| Hide or moderate any content, ban or hide any member | MODERATION | Moderate and curate |
| Rank or pin a post, or move it to another topic | CURATION | Moderate and curate |
| Notify the whole community about a post | NOTIFY | Moderate 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:
| Version | Status |
|---|---|
v1 | available |
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
-
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.
-
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" -
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" -
Write something (needs
PROFILE_MANAGEMENTandCONTENT_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/usersis 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
- Authentication and permissions: keys, write permissions,
GET /v1/config, linked profiles. - Conventions: requests, pagination, errors, rate limiting, retries.
- Read content: feeds, messages, profiles, with worked examples.
- Write: Manage team profiles, Publish content, Schedule posts, Moderate and curate.