Skip to main content

Conventions

These rules apply to every endpoint of the Connect API, reads and writes alike.

Requests​

  • Send every request over HTTPS to https://connect.octopuscommunity.com/v1/..., with your key in the Authorization header (see Authentication). Calls over plain HTTP fail.

  • Reads are GET requests that take query parameters:

    curl "https://connect.octopuscommunity.com/v1/users/profile?octopusId=<OCTOPUS_ID>" \
    --header "Authorization: Bearer $CONNECT_API_KEY"
  • Writes use POST, PUT, PATCH or DELETE with a JSON body, sent with Content-Type: application/json:

    curl --request PUT "https://connect.octopuscommunity.com/v1/messages/<MESSAGE_ID>/reaction" \
    --header "Authorization: Bearer $CONNECT_API_KEY" \
    --header "Content-Type: application/json" \
    --data '{"userId": "<USER_ID>", "reaction": "❤️"}'

Ids and words​

  • Ids are opaque strings. Store them as they are, and never build or parse them.
  • A topic is a top-level container that posts live in. The Dashboard and the SDKs call it a group: it is the same thing, and the API always says topic (topicId, /v1/messages/topics).
  • A message is any piece of content: a post, a comment or a reply. Most endpoints that act on an existing message take its id and work out its type themselves.
  • A member (or user) is a person of your community.

Dates​

  • Dates in message and profile responses (createdAt, updatedAt) are Unix timestamps in milliseconds.
  • Dates you send (publishAt on a scheduled post, rankAsIfPostedAt and endDate on a boost) are ISO-8601 instants with seconds, such as 2026-12-01T09:30:00Z. An offset is accepted instead of Z (2026-12-01T09:30:00+02:00), and the instant is stored in UTC. 2026-12-01T09:30Z, without seconds, is rejected.
  • Scheduled posts answer with ISO-8601 instants too.

Pagination​

Every list is cursor-based:

  1. Ask for the first page without pageCursor.
  2. Read nextPageCursor from the response and pass it as pageCursor to get the next page.
  3. A null nextPageCursor means you reached the last page.

pageSize has a default and a ceiling that depend on the endpoint, both returned by GET /v1/config: 5 and 20 for the feeds, 20 and 100 for scheduled posts. A pageSize above the ceiling is capped, and a pageSize of 0 answers 400.

A cursor belongs to the list that issued it: passing it to another endpoint answers 400. The cursor field inside a single post, comment or profile response pages that object's nested list (the post's comments, the comment's replies, the member's posts): pass it as pageCursor to the matching /v1/feeds endpoint.

note

Older names keep working and always carry the same value: the feeds also return pageCursor next to nextPageCursor, and GET /v1/scheduled-posts still accepts cursor and returns nextCursor. Use pageCursor and nextPageCursor in new code.

Responses and errors​

HTTP status codes​

Successful requests

Status codeDescription
200 OKThe request succeeded. For a bridge post, the post already existed and is returned unchanged.
201 CreatedThe resource was created: a member, a message, a scheduled post or a notification.
204 No ContentThe deletion or cancellation succeeded. The body is empty.

Failed requests

Status codeDescriptionPossible causes and solutions
400 Bad RequestThe request is malformed or breaks a documented limit.Check the parameters and the limits of your key. The message names the faulty field, for example imageIds[3].
401 UnauthorizedNo Connect API key was sent.Set the Authorization header with a Bearer token. See Authentication.
403 ForbiddenThe key is not allowed to do this.See 403 Forbidden below.
404 Not FoundThe resource does not exist in your community.Check the id. An id that exists in another community also answers 404.
409 ConflictThe resource is not in a state that allows the operation.For example a nickname already taken, a scheduled post that already published, or a post-only operation called on a comment.
410 GoneThe message exists but was moderated, or deleted.You cannot react, vote, comment, boost or notify on it any more. A hidden message does not answer 410.
429 Too Many RequestsYour key reached its rate limit.Wait for retryAfterSeconds. See Rate limiting.
500 Internal Server ErrorSomething unexpected happened on our side.Retry later. If the issue persists, contact the Octopus team.
502 Bad GatewayAn Octopus service the API depends on failed or did not answer in time.The write may or may not have been applied. Check the result before you retry a write that is not safe to repeat (see Retries and idempotency).

Error body​

A failed write, and most failed reads, answer with a JSON body:

{
"error": "MISSING_PERMISSION",
"message": "This API key is not allowed to perform this operation (missing permission: SCHEDULING)"
}
  • error is a short code, such as INVALID_ARGUMENT, MISSING_PERMISSION, NOT_FOUND, CONFLICT or RATE_LIMIT_EXCEEDED. The 401 of a missing key and the 403 of an unknown key carry a message only.
  • message explains the error for a human. Its wording can change, so never parse it: branch on the status code, and log the message to investigate.

Some read errors answer with a plain-text body instead (Content-Type: text/plain), for example a feed called without its topicId, or a post that does not exist or was moderated (404). Branch on the status code first, and decode the body as JSON only when its Content-Type is application/json.

403 Forbidden​

A 403 has one of these causes, and the body tells them apart:

CauseBodyWhat to do
The key does not existmessage: Wrong API keyCheck the key in the Dashboard.
The key lacks the permission of the endpointerror: MISSING_PERMISSIONCheck writePermissions in GET /v1/config, and request the permission from the Dashboard.
The member you write in the name of is not linked to your Dashboardmessage says the profile is not linkedUse a profile created with POST /v1/users or from the Dashboard, or ask the Octopus team to link the existing profile. See Linked profiles.
The community is closingerror: READ_ONLYUntil the closing date, the key can still read but not write.
The community is closederror: COMMUNITY_CLOSEDThe key can no longer be used.

Rate limiting​

Each Connect API key has its own maximum number of calls per minute, set by Octopus. The minute is a fixed clock minute (from :00 to :59 seconds), not a rolling 60 seconds. Reads and writes count against the same quota, and each call accepted with a valid key consumes one credit unit, even when it then fails with a 4xx or 5xx status. Calls refused before that, without a valid key (401, 403 Wrong API key) or because the community is closing or closed (403 READ_ONLY, COMMUNITY_CLOSED), are not counted.

Every counted call that stays within the limit returns these headers, whatever its response status:

  • RateLimit-Limit: the maximum number of credit units allowed per minute for your key
  • RateLimit-Remaining: an estimate of the credit units left in the current minute
  • RateLimit-Reset: the number of seconds until the current minute ends and your credit units are refilled
note
  • If your key is configured as unlimited, these headers are not returned.
  • Calls are counted across several servers, so RateLimit-Remaining can be higher than your actual balance, and a 429 can come before it reaches 0. Use it to slow down, and rely on the 429 and its Retry-After to know when to wait.

If you exceed the limit, you get 429 Too Many Requests, with a Retry-After header and this body, both giving the number of seconds until your credit units are refilled:

{
"error": "RATE_LIMIT_EXCEEDED",
"retryAfterSeconds": 12
}

Retries and idempotency​

The Connect API has no idempotency key. Before you retry a write that timed out or failed with a 5xx status, check whether it is safe to repeat:

EndpointSafe to retry?
POST /v1/messages/posts, /comments, /repliesNo. If the first call went through, a retry publishes the content twice. Read the feed back before retrying.
POST /v1/messages/bridge-postsYes. A repeat with the same clientObjectId returns the existing post with 200.
POST /v1/usersNo. If the first call went through, the retry answers 409 because the nickname is taken. After a 502, Octopus removes the member it started to create, so a retry usually works. If the retry answers 409, that removal failed: contact the Octopus team.
POST /v1/scheduled-postsNo. A retry can queue the post twice, even after a 502: the post may have been queued before the error. List the member's scheduled posts before retrying.
POST /v1/messages/{id}/notifyNo, and it cannot be undone. Every call notifies every member again.
PUT /v1/messages/{id}/voteYes. Voting is one-shot: a repeat returns the member's original answer and changes nothing. alreadyVoted is true only when that answer differs from the one you sent, so a repeat of the same vote returns false.
PUT and DELETE /v1/messages/{id}/reactionYes. A member has one reaction per message, and removing a missing reaction still answers 204.
PATCH /v1/users/{id}, PUT /v1/users/{id}/admin-tag, PATCH /v1/scheduled-posts/{id}Yes. They set values.
POST /v1/messages/{id}/hide, /moderate, /boost, POST /v1/users/{id}/ban, /hideYes. They set a state, so repeating them changes nothing.
PUT /v1/messages/{id}/topicYes. Moving a post to the topic it is already in answers 200 with moved: false.
POST /v1/media/images, /videosYes. Each call issues new upload URLs and ids. Ids you never attach are simply unused.

Asynchronous processing​

A write answers as soon as it is accepted, but some of its effects follow a moment later:

  • Counters: reaction counts, poll results and comment counts aggregate asynchronously. Read them back a moment later.
  • Images: a message created with images answers 201 right away, but the images become visible to other members only once processed.
  • Image URLs: once an image is processed, its URL is a plain public CDN URL (https://media-content.octocdn.net/...) with no signature and no expiry. Until then, mostly in the response to the call that created the message, the URL is a signed link to the original file that expires after 24 hours. A processed URL is stable enough to store, but it stops working when the message is deleted or moderated: read the message again when a stored URL fails. Video, thumbnail and avatarUrl URLs are plain CDN URLs too, and avatarUrl changes when the member gets a new picture.
  • Videos are transcoded after the upload: a post with a video is visible to other members once the video is READY. See Add a video.
  • Profile pictures: after you set one, avatarUrl keeps returning the previous picture until the new one is processed. A removal is immediate.