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 theAuthorizationheader (see Authentication). Calls over plain HTTP fail. -
Reads are
GETrequests 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,PATCHorDELETEwith a JSON body, sent withContent-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 (
publishAton a scheduled post,rankAsIfPostedAtandendDateon a boost) are ISO-8601 instants with seconds, such as2026-12-01T09:30:00Z. An offset is accepted instead ofZ(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:
- Ask for the first page without
pageCursor. - Read
nextPageCursorfrom the response and pass it aspageCursorto get the next page. - A
nullnextPageCursormeans 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.
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 code | Description |
|---|---|
200 OK | The request succeeded. For a bridge post, the post already existed and is returned unchanged. |
201 Created | The resource was created: a member, a message, a scheduled post or a notification. |
204 No Content | The deletion or cancellation succeeded. The body is empty. |
Failed requests
| Status code | Description | Possible causes and solutions |
|---|---|---|
400 Bad Request | The 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 Unauthorized | No Connect API key was sent. | Set the Authorization header with a Bearer token. See Authentication. |
403 Forbidden | The key is not allowed to do this. | See 403 Forbidden below. |
404 Not Found | The resource does not exist in your community. | Check the id. An id that exists in another community also answers 404. |
409 Conflict | The 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 Gone | The 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 Requests | Your key reached its rate limit. | Wait for retryAfterSeconds. See Rate limiting. |
500 Internal Server Error | Something unexpected happened on our side. | Retry later. If the issue persists, contact the Octopus team. |
502 Bad Gateway | An 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)"
}
erroris a short code, such asINVALID_ARGUMENT,MISSING_PERMISSION,NOT_FOUND,CONFLICTorRATE_LIMIT_EXCEEDED. The401of a missing key and the403of an unknown key carry amessageonly.messageexplains the error for a human. Its wording can change, so never parse it: branch on the status code, and log themessageto 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:
| Cause | Body | What to do |
|---|---|---|
| The key does not exist | message: Wrong API key | Check the key in the Dashboard. |
| The key lacks the permission of the endpoint | error: MISSING_PERMISSION | Check 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 Dashboard | message says the profile is not linked | Use 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 closing | error: READ_ONLY | Until the closing date, the key can still read but not write. |
| The community is closed | error: COMMUNITY_CLOSED | The 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 keyRateLimit-Remaining: an estimate of the credit units left in the current minuteRateLimit-Reset: the number of seconds until the current minute ends and your credit units are refilled
- If your key is configured as unlimited, these headers are not returned.
- Calls are counted across several servers, so
RateLimit-Remainingcan be higher than your actual balance, and a429can come before it reaches0. Use it to slow down, and rely on the429and itsRetry-Afterto 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:
| Endpoint | Safe to retry? |
|---|---|
POST /v1/messages/posts, /comments, /replies | No. If the first call went through, a retry publishes the content twice. Read the feed back before retrying. |
POST /v1/messages/bridge-posts | Yes. A repeat with the same clientObjectId returns the existing post with 200. |
POST /v1/users | No. 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-posts | No. 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}/notify | No, and it cannot be undone. Every call notifies every member again. |
PUT /v1/messages/{id}/vote | Yes. 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}/reaction | Yes. 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, /hide | Yes. They set a state, so repeating them changes nothing. |
PUT /v1/messages/{id}/topic | Yes. Moving a post to the topic it is already in answers 200 with moved: false. |
POST /v1/media/images, /videos | Yes. 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
201right 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 andavatarUrlURLs are plain CDN URLs too, andavatarUrlchanges 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,
avatarUrlkeeps returning the previous picture until the new one is processed. A removal is immediate.